Sign in to follow this  
Followers 0
Guest lifefadedmemory@hotmail.com

Can't Get My Script To Stop

13 posts in this topic

I wrote a program that just keeps clicking on different windows. I have it in repeat mode the script is as follow

Sleep, 10000

Repeat, 10000

LeftClick, x, y

LeftClick, x, y

LeftClick, x, y

LeftClick, x, y

EndRepeat

I took out the coorinates just. How can i get this to stop on command. I Try to run it all night but if I run it too long and I wake up I can't stop the program and must restart my computer. Is their a way to place a keycommand in their to shut down the program? Is their another way? Any information anyone could provide would be most helpful. Thanks in advance.

~Andrew

Share this post


Link to post
Share on other sites



how else can you do this without bringing up a window?

Share this post


Link to post
Share on other sites

What about to use a desktop shortcut (with an assigned shortcut key), to run a batch, which creates a stop file :whistle: ?

Stop.bat

Time /T > C:\\Stop.not

Sleep, 10000

Repeat, 10000

LeftClick, x, y

LeftClick, x, y

LeftClick, x, y

LeftClick, x, y

IfExist, C:\\Stop.not, Goto, Stop

EndRepeat

Stop:

Run, %COMSPEC% /C del C:\\Stop.not, , Hide

Exit

Share this post


Link to post
Share on other sites

Anyway to do this without closing the application

Share this post


Link to post
Share on other sites

Start:

Sleep, 10000

Repeat, 10000

LeftClick, x, y

LeftClick, x, y

LeftClick, x, y

LeftClick, x, y

IfExist, C:\\Stop.not, Goto, Stop

EndRepeat

Stop:

Sleep, 1000

IfExist, C:\\Stop.not, Goto, Stop

Goto, Start

Delete the file Stop.not and the script will loop back

Share this post


Link to post
Share on other sites

Or, with the help of the pstools you make a hot key commanded script that fires a

pskill autoit

a little brutal, but it should work...

:whistle: Yeah, I know the Beastmaster idea is better

Share this post


Link to post
Share on other sites

Or, with the help of the pstools you make a hot key commanded script that fires a

HotKey command ??? B) version 2 :whistle:

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I thought a second .aut script that is called bye a hotkey using windows hotkey system... :whistle:

Share this post


Link to post
Share on other sites

how about pausing the process? (i've a command line utility that can pause any process, and can resume it with /r parameter)

i guess only nt based OS support process pausing!

Share this post


Link to post
Share on other sites

Hey rathore, what it needs to get a link to this marvelous tool ?

Share this post


Link to post
Share on other sites

YES! that's it!

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0