Jump to content

Recommended Posts

Posted

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

Posted

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! :)

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
  • Recently Browsing   0 members

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