Jump to content

Help with HotKeySet ..


Recommended Posts

Hi, i am trying to make a little script that can help me in a game.. Here is the code:

$bohaxx = Send("F8" , 0)
$right = MouseClick("right")
$switch = Send("w" , 0)
$bohaxx2 = Send("f7" ,0)


HotKeySet("{HOME}" , "$switch $bohaxx + $right + $bohaxx2 + $right + $switch")

i dont know what the problem is.. but it dosnt work. and i am not sure about what i did is right.. can anyone help me fixing that? And yes i have looked in the FAQ file but it didnt helped me mutch.

But i have a questing more.. When i have used this script one time will it close then? i want it to run alltime.. so i dont have to open it every time have used it.. Sry for my bad english:(

Link to comment
Share on other sites

HotKeySet mustn't be used like that:

HotKeySet ( "key" [, "function"])

So something like this:

HotKeySet("{HOME}" , "_test")

While 1
    GUIGetMsg()
WEnd


Func _test()
    Send("w" , 0)
    Send("F8" , 0)
    MouseClick("right")
    Send("f7" ,0)
    MouseClick("right")
    Send("w" , 0)
EndFunc

Alter this towards your own preference, and take a look at how it is done, so you know how to do it the next time :D

Alzo

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Link to comment
Share on other sites

HotKeySet mustn't be used like that:

So something like this:

HotKeySet("{HOME}" , "_test")

While 1
    GUIGetMsg()
WEnd
Func _test()
    Send("w" , 0)
    Send("F8" , 0)
    MouseClick("right")
    Send("f7" ,0)
    MouseClick("right")
    Send("w" , 0)
EndFunc

Alter this towards your own preference, and take a look at how it is done, so you know how to do it the next time :wacko:

Alzo

Oh thanks.. Now i understand how it works :D
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...