KoZuEst Posted July 6, 2007 Share Posted July 6, 2007 Well, I searched the net for a free macro making program with which you can make a standalone exe file and failed. So I tried to make my own. I'm using the "HotKeySet" function to run a "Send" command with my macro. The problem is that the keys never make it to my game client. I'm playing WarRock, a free online fps and was trying to make gameplay more comfortable. The hotkeys work for sure, the problem is the "Send" function. is there some sort of a problem sending keys to a full screen program and is there a workaround to it? Thanks for your attention. Link to comment Share on other sites More sharing options...
poisonkiller Posted July 6, 2007 Share Posted July 6, 2007 (edited) Try using ControlSend. EDIT: About vintorecavaj's post(below mine): HotKeySet("a", "Func1") ;Executes Func1 when you press "a" While 1 Sleep(100) WEnd Func Func1() HotKeySet("a") ;Disables hotkey, so when you send "a" it won't call function Func1 again Send("a") HotKeySet("a", "Func1") ;Enables hotkey again EndFunc Edited July 6, 2007 by poisonkiller Link to comment Share on other sites More sharing options...
Astormooke Posted July 6, 2007 Share Posted July 6, 2007 (edited) I once was trying to make something using this same thing and the reason it isnt working is because when you set a hotkey it looks for that key so if you have a send function to send the same key as the hot key then it will just redo the function with the hotkey if that makes sense..... ok that should work for you.. but if you want to do it another way you could use _ispressed..... if you want to look in the help contents. Edited July 6, 2007 by vintorecavaj Link to comment Share on other sites More sharing options...
KoZuEst Posted July 6, 2007 Author Share Posted July 6, 2007 (edited) I once was trying to make something using this same thing and the reason it isnt working is because when you set a hotkey it looks for that key so if you have a send function to send the same key as the hot key then it will just redo the function with the hotkey if that makes sense.....ok that should work for you.. but if you want to do it another way you could use _ispressed..... if you want to look in the help contents.no.. I'm using F1 to send Tab, 1, Enter and tab again. F2 to do the same thing with number two and so on up till 5 then F6 to close the thing and F11 to send the key combination without the number.It seems like the game isn't recieving the send commands because I've also tried to use a hotkey to automatically type my username it the game. Its as if the game captures keypresses straight from the keyboard. Also if I used "p" as a hotkey, typing "p" in the username box didn't type the small letter p in the box which I believe indicates that the script is in fact working. @poisonkillerI've also tried ControlSend. It's the same. I figure the problem lies within the game.is there any other way of sending keypresses to the game? Edited July 6, 2007 by KoZuEst 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