XInFisk Posted July 1, 2006 Share Posted July 1, 2006 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 More sharing options...
marfdaman Posted July 1, 2006 Share Posted July 1, 2006 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 Alzo Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
XInFisk Posted July 1, 2006 Author Share Posted July 1, 2006 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 AlzoOh thanks.. Now i understand how it works Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now