Sign in to follow this  
Followers 0
doomkiller

Hotkey not working?

5 posts in this topic

Something i put together to make some things easier but i can't get it to stop on hotkey press any ideas?

HotKeySet("{ESC}", "quit")
StartGame ()
Func StartGame ()

While WinActivate ( 'GameClient' )
  MouseMove ( 318, 26 )
  MouseClick( "left", 318, 26 )
  MouseClick( "left", 318, 26 )
    Sleep ( 3000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  MouseMove ( 348, 342 )
  MouseClick( "left", 348, 342 )
  MouseClick( "left", 348, 342 )
  MouseClick( "left", 348, 342 )
    Sleep ( 1500 )
  MouseMove ( 402, 344 )
  MouseClick( "left", 402, 344 )
  MouseClick( "left", 402, 344 )
  MouseClick( "left", 402, 344 )
    Sleep ( 1500 )
  MouseMove ( 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
    Sleep ( 1500 )
  MouseMove ( 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
    Sleep ( 1500 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 6000 )
  MouseMove ( 352, 21 )
  MouseClick( "left", 352, 21 )
  MouseClick( "left", 352, 21 )
    Sleep ( 3000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  MouseMove ( 348, 342 )
  MouseClick( "left", 348, 342 )
  MouseClick( "left", 348, 342 )
  MouseClick( "left", 348, 342 )
    Sleep ( 1500 )
  MouseMove ( 402, 344 )
  MouseClick( "left", 402, 344 )
  MouseClick( "left", 402, 344 )
  MouseClick( "left", 402, 344 )
    Sleep ( 1500 )
  MouseMove ( 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
    Sleep ( 1500 )
  MouseMove ( 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
    Sleep ( 1500 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 6000 )
  MouseMove ( 390, 25 )
  MouseClick( "left", 390, 25 )
  MouseClick( "left", 390, 25 )
    Sleep ( 3000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  MouseMove ( 348, 342 )
  MouseClick( "left", 348, 342 )
  MouseClick( "left", 348, 342 )
  MouseClick( "left", 348, 342 )
    Sleep ( 1500 )
  MouseMove ( 402, 344 )
  MouseClick( "left", 402, 344 )
  MouseClick( "left", 402, 344 )
  MouseClick( "left", 402, 344 )
    Sleep ( 1500 )
  MouseMove ( 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
    Sleep ( 1500 )
  MouseMove ( 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
  MouseClick( "left", 348, 412 )
    Sleep ( 1500 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 2000 )
  Send ( '{ENTER}' )
    Sleep ( 6000 )
WEnd

EndFunc

Func quit 
()
    Exit
EndFunc

Share this post


Link to post
Share on other sites



I have tried that also no results

Share this post


Link to post
Share on other sites

I tried it and i think your right i had it do Shift-Alt-d instead and no go until i alt-tab it and it worked.

Since that did not work how could i make it so a dialog box opens up on alt-tab temp quiting the while statement and asking me if i want to stop the script or go back to it.

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