|
You last visited: Today at 17:44
Advertisement
Frage : Funcs ; Inputs
Discussion on Frage : Funcs ; Inputs within the AutoIt forum part of the Coders Den category.
02/11/2011, 09:14
|
#1
|
elite*gold: 0
Join Date: Nov 2010
Posts: 4,728
Received Thanks: 1,243
|
Frage : Funcs ; Inputs
Hey COM.
Ich habe dien Frage:
Wenn ich eine func mache zb:
Func lol ()
Send ("{F1}")
Sleep (1)
Endfunc
Nun möchte ich,
Dass das F1 durch eine inputbox kommt (ich weiß, wie das geht).
Die Sache ist:
Wie lasse ich die Funktion "aus", wenn nichts in input Feld steht?
Sorry, dass es so hibgeklatscht ist, stehe unter zeitdruck.
Gruß
|
|
|
02/11/2011, 09:36
|
#2
|
elite*gold: 20
Join Date: Oct 2010
Posts: 1,303
Received Thanks: 457
|
Wenn ich alles richtig entziffert habe, dann meinst du eine if schleife.
zb:
if $xy = "" then
else
msgbox(blabla)
endif
|
|
|
02/11/2011, 09:51
|
#3
|
elite*gold: 0
Join Date: Nov 2010
Posts: 4,728
Received Thanks: 1,243
|
Oh mein Gott,
da habe ich tatsächlich vergessen, dass es if-schleifen gibt.
Danke.
Also so sollte es funktionieren oder:
$input = Inputbox("bla",bla")
Func lol ()
If $input = "" then endfunc
Else
Send ("{F1}")
Sleep ($input)
Endif
Endfunc
Kann's nicht probieren bin am iPhone
Gruß
|
|
|
02/11/2011, 10:15
|
#4
|
elite*gold: 20
Join Date: Oct 2010
Posts: 1,303
Received Thanks: 457
|
ne, aber so
PHP Code:
$input = Inputbox("bla","bla")
Func lol () If $input = "" then Else Send ("{F1}") Sleep ($input) Endif Endfunc
|
|
|
02/11/2011, 10:33
|
#5
|
elite*gold: 0
Join Date: Nov 2010
Posts: 4,728
Received Thanks: 1,243
|
Ok, danke.
Kann man vor das send und nach dem sleep eine While schleife einsetzen ?
|
|
|
02/11/2011, 10:59
|
#6
|
elite*gold: 0
Join Date: Sep 2010
Posts: 487
Received Thanks: 196
|
wenn du willst das es die ganzezeit ausführt:
PHP Code:
$input = Inputbox("bla","bla")
Func lol () If $input = "" then Else while 1 Send ("{F1}") Sleep ($input) wend Endif Endfunc
|
|
|
02/11/2011, 11:11
|
#7
|
elite*gold: 0
Join Date: Nov 2010
Posts: 4,728
Received Thanks: 1,243
|
So meinte ich das, danke.
btw:
Die letzte zeile in deiner Signatur ist lustig
|
|
|
02/11/2011, 12:19
|
#8
|
elite*gold: 2
Join Date: Mar 2008
Posts: 1,778
Received Thanks: 1,222
|
Code:
$input = Inputbox("bla","bla")
Func lol ()
If Not $input = "" then
while Sleep ($input)
Send ("{F1}")
wend
Endif
Endfunc
So Code optimiert, wozu else? ISt nur unperfomanter.
Btw Sleeps < 10 werden auf 10 aufgerundet.
UND ES GIBT KEINE IF SCHLEIFEN!
|
|
|
02/11/2011, 12:33
|
#9
|
elite*gold: 20
Join Date: Oct 2010
Posts: 1,303
Received Thanks: 457
|
i know,... aber ich schreibs komischerweiße trotzdem immer wieder xD
|
|
|
|
Similar Threads
|
Botting funcs via Client Calls
01/07/2011 - 12Sky2 - 4 Replies
Hello,
I have been wanting to start making a full functional memory bot for a long while. Some months ago I was having a convo with Mega Byte on MSN about my desire to do this and he ended up coming up with the sample posted here:
http://www.elitepvpers.com/forum/12sky2-hacks-bots -cheats-exploits/468692-codesnippet-send-chat-pack et-dll-aeria.html
This inspired me to continue my idea of doing this for other things such as skill useage, looting, item sorting, pill buying and moving to...
|
Need some Help/Inputs
09/18/2009 - SRO Private Server - 3 Replies
i really would want to play a private SRO server long as it has nice rates that woudnt make me feel playing retail.. so just wanna ask what u guys think is the most stable of psro server outhere or atleast what u think is best?
the only easy server i think i can get to is ecsro but seems they disabled account registration atm, and seriously is there any simple guide on how to setup SRO clients? dam i see so many links and i dunno what to do with it
|
Sro Starter (autologin with serverlist, DC Checker, start funcs, gui func)
01/13/2009 - SRO Hacks, Bots, Cheats & Exploits - 235 Replies
Sro Starter -> Autologin with Serverlist , Start functions , Gui Functions
What this program do
-Auto login with Serverlist if slots are free (All Resolutions) (Option PressENTER or Mouseclick)
-Show/Hide SrProxy, nuConnector, agBot, Sro_client
-Auto Drops 1 gold every sec (only Clicking)
-Autostart programs ( SrProxy, nuConnector, agBot, Sro_client) + fill in ID and Pass supports 800*600 and 1024*768 and 1280 * 1024 and 1440*900 and 1680 * 1050
-Dc Checker : on dc : End Sro , End Bot...
|
All times are GMT +2. The time now is 17:44.
|
|