Jump to content
Sign in to follow this  
zappiezap

Need help

Recommended Posts

zappiezap

Hi, i am in a time crounch and i cant spen the next 4 hours trying to figure this out, so i was hoping someone could help me. Heres what i need, i need to have 2 hotkeys 1 to stop the script, and the other one i want it to send:

{ENTER} PlAyEr KilLeD{!}{!}{!}{ENTER}

Thanks.

-Zap

Share this post


Link to post
Share on other sites
LxP

Hi, i am in a time crounch and i cant spen the next 4 hours trying to figure this out, so i was hoping someone could help me. Heres what i need, i need to have 2 hotkeys 1 to stop the script, and the other one i want it to send:

{ENTER} PlAyEr KilLeD{!}{!}{!}{ENTER}

Put your Send() command into a function (look up Func...EndFunc in the help file index), create a function that quits the script and then attach hotkeys to them via HotKeySet().

After you set the hot keys in your code, create a loop that does absolutely nothing (which prevents the script from finishing so that it can act upon the hotkeys):

while (1)
    sleep(1000)
wEnd

I promise it won't take you four hours to do this, even if you type with your feet! :)

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  

×