Jump to content

Hot Key Start


Abaddon
 Share

Recommended Posts

Sorry, all I got from that was how to end a script via hot key. I am a noob, I was just looking for a simple thing like,

ctr+alt+s to start the script.

Oh and dethredic Im sorry i wasn't more specific. Here is what I want.

To start the script and enter the game.

Then when they want the script to start running press a key. Thanks

Edited by Abaddon
Link to comment
Share on other sites

EDIT: Just read your edit. HotKeySet is what you are looking for.

Example just for informational purposes:

;set the hotkey
HotKeySet("{Enter}", "Start")

;activate the game window
WinActivate("Title of window")

;wait for the hotkey to be pressed
While 1
    Sleep(100)
WEnd

;take this action when the hotkey is pressed
Func Start()
    MouseMove(500, 500, 2)
EndFunc

Something similar to this should do what you are looking for.

Edited by dandymcgee

- Dan [Website]

Link to comment
Share on other sites

If you don't want your script to be running, there obviously is no way for it to interpret the hotkey.

So the only way to do what i think you are asking (Correct me If I'm Wrong) is to have 2 scripts. one containing something like this,

HotkeySet("{HOME}", "Go")

While 1
Sleep(3000)
WEnd

Func go()
 Run("*Your Script*"); see run helpfile for proper syntax
EndFunc

and then have your script in a separate file.

Edited by Paulie
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...