Jump to content
Sign in to follow this  
Gallahan

how to set runscript function and set time start

Recommended Posts

Gallahan

Trying to set hotkey Q or whatever to runscript.  Cant find runscript in help file.

Also is there anyway to set script to run at the same time everyday?  If so how would i go about doing that..its a very simple mouseclick script

 

 

 
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
 
 
Global $Paused
 
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
 
$i = 0
While $i <= 10
MouseClick("left",1000,515,1)
Sleep(4000)
MouseClick("left",1017,674,1)
Sleep(5000)
MouseClick("left",1008,336,1)
Sleep(5000)
MouseClick("left",792,660,1)
Sleep(5000)
MouseClick("left",988,641,1)
Sleep(5000)
MouseClick("left",980,613,1)
Sleep(5000)
MouseClick("left",1010,336,1)
Sleep(5000)
MouseClick("left",989,211,1)
Sleep(5000)
MouseClick("left",707,114,1)
Sleep(5000)
MouseClick("left",856,148,1)
Sleep(5000)
MouseClick("left",1000,304,1)
Sleep(3000)
MouseClick("left",936,240,1)
Sleep(5000)
WEnd
 
 
 
Func MyExit()
  Exit 
EndFunc

Share this post


Link to post
Share on other sites
kylomas

Gallahan,

There is no "runscript" anything in AutoIT.

There are several ways to invoke a script, see "Running a Script" in the Help file and the "run", "runwait", "shellexecute" and "shellexecutewait" commands.

Yes you can run a script at the same time every day.  There was a topic about this recently, just search for it.

kylomas

edit: see >this thread for doing something at a certain time each day

Edited by kylomas
  • Like 1

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×