Jump to content

Rubbadubbadoo

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

49 profile views

Rubbadubbadoo's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you spudw2k! Both of those examples are exactly what I was looking for. I am new to this forum and do not know how to post my script but.... What I was after looks something like this: Global $Paused, $Runner HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{ESC}", "Terminate") While 1 For $iX = 1 to 20 msgbox(1,"Title","1") ; This is an inline comment Next For $iX = 1 to 20 msgbox(1,"Title","2") ; This is an inline comment Next Wend Exit Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100) ToolTip('Script is "Paused"', 0, 0) WEnd ToolTip("") EndFunc ;==>TogglePause Func Terminate() Exit 0 EndFunc ;==>Terminate
  2. I am trying to write a script that will run two loops consecutively. Example would be something like: While1 repeat 20x Goto While2 While2 repeat 20x Goto While1 Any advice is appreciated.
  3. I am attempting to write script to launch a program with autoIT. What I have so far is working but I am having trouble figuring out how to make autoit pause until updates are finished loading before it hits the Enter key to start the program. Load times for updates vary from day to day so I want the script to pause until the OK button is lit up. Here is what I have so far. Any advise would be greatly appriciated. I am hoping there is a simple solution to this. Run("C:Program.exe") Executes the program. WinWaitActive("Program") Waits until the program's window is active. Sleep(1000) MouseClick("left", 970, 390, 1, 0) Insures the program window is in foreground. Send("{Tab}") Toggles from title to user name input box. Send("{Tab}") Skips user name entry as it will already be there. Send("password") Enters my password. Sleep(500) Send("{Tab}") Selects next data entry box. Sleep(500) Send({Enter}) Executes the entered information and opens the next window for starting the program. runwait??("here is where I do not know how to get autoit to wait for the program to download updates before hitting ({Enter}) key to start the program. The OK button is not active until updates are complete.) Send({Enter}) Starts the program. Exit
  4. I am attempting to write script to launch an online game. What I have so far is working but I am having trouble figuring out how to make autoit pause until updates are finished loading before it hits the Enter key to start the game. Load times for updates vary from day to day so I want the script to pause until the play button is lit up. Here is what I have so far. Any advise would be greatly appriciated. I am hoping there is a simple solution to this. Run("C:Game.exe") Executes game launcher. WinWaitActive("Game") Waits until game window is active. Sleep(1000) MouseClick("left", 970, 390, 1, 0) Insures the window is in forground. Send("{Tab}") Toggles from title to user name input box. Send("{Tab}") Skips user name entry as it will already be there. Send("password") Enters my password. Sleep(500) Send("{Tab}") Selects next data entry box. Sleep(500) Send({Enter}) Executes the entered information and opens the next window for starting the game. runwait??("here is where I do not know how to get autoit to wait for the game to download updates before hitting ({Enter}) key to start the game. The play button is not active until updates are complete.) Send({Enter}) Starts the game. Exit
×
×
  • Create New...