
AchterlijkeVleugel
Active Members-
Posts
41 -
Joined
-
Last visited
Everything posted by AchterlijkeVleugel
-
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Shouldn't that be if $running = 0 ? -
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Ty, i can probably get along from here myself -
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
is there any function that checks if a function is active/executed? If not, how would i go about looping a script for X minutes. -
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Oh i guess i didn't formulate my request properly. Adlibregister ("Function",1000) While 1 Sleep (200) Example () Wend Func Example () ($MB_SYSTEMMODAL, "Title", "This message box will timeout after 10 seconds or select the OK button.", 10) Endfunc Func Function () Consolewrite("Called:"&@Sec) EndfuncWhat im trying to do is, for example. Pause the While loop, when Function starts. i was thinking off Global $example = 0 Then add Global $Example =+ 1 to the example function Then add at the end of example function $Example =-1 Then check in the loop if $example is 1 But this would be devious, and unreliable. -
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Wouldn't that stop calling Function every second? After Sec = 12? -
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
How would i halt the loop for the adlib function? What function would be handy for this Maybe Global $example = 0 Then add Global $Example =+ 1 to the whatever function Then add at the end of whatever function $Example =-1 Then check in the loop if example is 1 -
Help w/ Adlibregister
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Terminology But would that be correct? Or would i have to add adlibregister outside the loop -
Im trying to do a function every x minutes as a part of a whole loop script. The function is not defined in the main loop script but included from somewhere else. I'm having trouble understand the help file for the AdlibRegister function. Do you have to add adlibregister where you define the function, or do you like Adlibregister ("Sleep") To sleep every 250 ms Is unregistering adlib also mandatory? Thank you in advance! Example of what im trying to do, and how i think adlibregister works: #include ("Whatever.au3") While 1 Example () ;;The function i want to loop Adlibregister ("Whatever"[,time=10000]) ;;Do Whatever every 10 seconds Wend
-
sleep(random(350,500,1)) send ("{s down}") Sleep(50) send ("{s up}") sleep(random(350,500,1)) send ("{s down}") Sleep(50) send ("{s up}") sleep(random(350,500,1)) send ("{s down}") Sleep(50) send ("{s up}") sleep(random(350,500,1)) Now i got this, and it only repeats 2 send s rotations(s up and down)
-
sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") sleep(random(350,500,1)) send ("{s down}") So im trying to get this script done, but it only sends s one time. Also how do i terminate a script with a hotkey?
-
Repeat Function/script once
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
uhm my s key doesnt work anymore? i thi cuz of the cript? -
Repeat Function/script once
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
but that doesnt repeat once, that keeps repeating till i press esc right? -
Repeat Function/script once
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Func _Func() For $i = 1 To 2 MsgBox(0, "Title", "Text?") Sleep(Random(300, 500, 1)) send("ssssssssssssssssssssssssssss") Sleep(Random(300, 500, 1)) Send("sssssssssssssssssssssssssssssssssss") Sleep(Random(300, 500, 1)) send("sssssssssssssssssssssssssssssssssssssssss") Sleep(Random(300, 500, 1)) Send("sssssssssssssssssssssssssssssssss") Sleep(Random(300, 500, 1)) Send("sssssssssssssssssssssssssssssssssss") Sleep(Random(300, 500, 1)) Send("ssssssssssssssssssssssssss") Sleep(Random(300, 500, 1)) Send("ssssssssssssssssssssssssssssss") Next EndFunc ;==>_Func This is what i got right now but the script automatically terminates? -
Repeat Function/script once
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Why the mesagebox? -
Hi guys, So basically what im trying to do is to have my script or function(the whole script is a function and a hotkey) repeated once by a hotkey. But i can't figure out how to do this, any help please?
-
Time looping
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
Owh haha that makes sense thanks guys EDIT: ugh i feel like such a noob but, the hotkey doesnt seem to work. is their a certain place im supposed to put it? -
Time looping
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
How do i set a hotkey to exit the loop this doesnt seem to work. HotKeySet ("B", ExitLoop) And how do you set a hotkey to stop the whole script the stop function doesnt work, or is it another function? -
Time looping
AchterlijkeVleugel replied to AchterlijkeVleugel's topic in AutoIt General Help and Support
What i mean is like repeat that script untill 10 minutes are passed.