Jump to content

AchterlijkeVleugel

Active Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by AchterlijkeVleugel

  1. Shouldn't that be if $running = 0 ?
  2. Ty, i can probably get along from here myself
  3. 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.
  4. 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.
  5. Wouldn't that stop calling Function every second? After Sec = 12?
  6. 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
  7. Terminology But would that be correct? Or would i have to add adlibregister outside the loop
  8. 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
  9. It still doesnt work, does the position of the hotkeyset matter? Also i got the while loop in the function, is that bad?
  10. Okay so i got these hotkeys atm HotKeySet("z", "Main") HotKeySet("PAUSE", "TogglePause") HotKeySet("ESC", "Terminate") But only z works, Main is the function for the script. But only z works, Main is the function for the script. Nothing happens when i press pause or esc
  11. Lol, if u look at it that way i understand it too. Well the code has 3 excuting lines right? all of them got the variable for winwait in them. Lmfao
  12. Oh you guys think im trying to bot, haha now Jos' comment makes sense to me. Well im really not trying to bot a game. What is the difference between winwait/winactive/winwaitactive Also doesnt the repeating of winwait cause the script to be slower? Why didnt u make a variable for controlgettext?
  13. Honestly im just trying to understand the au3 language better, im sending to a word document atm. But i would also like to navigate in map folders, with arrow keys for example.
  14. 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)
  15. 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?
  16. uhm my s key doesnt work anymore? i thi cuz of the cript?
  17. but that doesnt repeat once, that keeps repeating till i press esc right?
  18. 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?
  19. 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?
  20. 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?
  21. 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?
  22. What i mean is like repeat that script untill 10 minutes are passed.
×
×
  • Create New...