Sign in to follow this  
Followers 0
kript

Loop Click Help

6 posts in this topic

Hi im trying to make this script but it keeps giving me errors any help would be awsome.

heres what i need it to do

mouse click left 306,448 (sleep) 3000

mouse click left 306,448 (sleep) 3000

(sleep) 1200000 (20 mins i think?)

mouse click left 306,448 (sleep) 3000

mouse click left 306,448 (sleep) 3000

(sleep) 1200000

and have an unlimited loop till i shut it off with a hotkey (shift)

Share this post


Link to post
Share on other sites



ok well thanks for that heres what i came up with testing now...

Opt("SendKeyDownDelay",10)

Sleep(10000)

While 1;infinite loop

if _IsPressed("1B") Then;This checks to see if a key is pressed, 1B is the hex code for the ESC key

ExitLoop;

EndIf

Sleep(3000)

MouseClick("left", 306, 448 )

Sleep(3000)

MouseClick("left", 306, 448 )

Sleep(1200000)

WEnd

Share this post


Link to post
Share on other sites

why is there a sleep before the While loop? It looks like an unnecessary wait

Share this post


Link to post
Share on other sites

Seems to me that meathod may not Catch the Escape kep presses every time , with all those sleeps.

HotKeySet('{ESC}', '_Exit')
Opt("SendKeyDownDelay",10)

Sleep(10000)
While 1;infinite loop
    Sleep(3000)
    MouseClick("left", 306, 448 )
    Sleep(3000)
    MouseClick("left", 306, 448 )
    Sleep(1200000)
WEnd

Func _Exit()
    Exit
EndFunc

There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly

Share this post


Link to post
Share on other sites

why is there a sleep before the While loop? It looks like an unnecessary wait

Indeed, it is unecessary. That's something the last guy specifically wanted.

Seems to me that meathod may not Catch the Escape kep presses every time , with all those sleeps.

HotKeySet('{ESC}', '_Exit')
Opt("SendKeyDownDelay",10)

Sleep(10000)
While 1;infinite loop
    Sleep(3000)
    MouseClick("left", 306, 448 )
    Sleep(3000)
    MouseClick("left", 306, 448 )
    Sleep(1200000)
WEnd

Func _Exit()
    Exit
EndFunc
Yeah, I would test it and make sure. The one I used for the other guy seemed to work fine, but he only had Sleep(100) in his script. I wasn't so much suggesting to just copy the script as look up each function, see what it does, and then make something from there.

I'd tool around with it a bit and figure out what might work, but I'm at work right now <_<

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