Sign in to follow this  
Followers 0
mixmixd

I'm so clueless

5 posts in this topic

HotKeySet("{END}", "End")
HotKeySet("{DEL}", "Go")

While 1
   Sleep(1)
WEnd

Func End()
   Exit
EndFunc

Func Go()
   While 1
   MouseClick("left", Random(586, 844, 0), Random(305, 577, 1), 0)
   sleep(750)
   MouseClick("left",1307,328, 0)
   sleep(750)
   MouseClick("left",1307,168, 0)
   Sleep(750)
   WEnd
 EndFunc
 

 

So I was using the code above and it was working completely fine. I came back later reopened the script and it just doesnt run... no errors nothing it just doesnt run..

I can seem to run it but it doesnt start the program i can only press END to end the DEL hotkey does nothing..

I also tried to make another script with one simple mouse click and that doesnt work either is there something wrong with my versions???

 

>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\XXX\Desktop\Test - Copy.au3"    

Share this post


Link to post
Share on other sites



Have you tried rebooting your PC?


My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

Yes

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

First thing I see wrong with your script is that
 

Random(586, 844, 0)

Should be

Random(586, 844, 1)

Also, what spudw2k said, because I apparently confused it with speed instead of clicks

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

Your last param in the mouse click is 0, meaning 0 clicks.  Remove it to make it 1 or set it to something > 0

1 person likes this

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  
Followers 0