Jump to content
Sign in to follow this  
gregerish

quick question

Recommended Posts

Ok so I'm new to this and I'm sure this has been asked a billion times.

I need a hot key to be able to start my script like crt+alt+z

Just to start my script is all I need I have figured out how to exit it but not to start it.

Any help and input would be appreciated and Thanks all!

Share this post


Link to post
Share on other sites

Global $Start=False

HotKeySet("^!z","start")

While Not $Start
    Sleep(50)
WEnd

;Your script starts from here:

MsgBox(0,"","It started!")

;-----------------------------
Func start()
    $Start=True
EndFunc

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  

×
×
  • Create New...