Smiley357 Posted July 31, 2008 Share Posted July 31, 2008 Is there anyway to send all keys (F1-F9, Home, Insert, End, Esc) to a input box (InputBox or GuiCtrlCreateInput)? I have can do it with setting them as hotkey and using send(key,1) to my input box but was wondering if there is a better way. Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2008 Share Posted July 31, 2008 If you can get the ID of it (ie. you made it) then you can do "ControlSend()" Link to comment Share on other sites More sharing options...
Smiley357 Posted July 31, 2008 Author Share Posted July 31, 2008 Thx for the reply Paulie. Yeah I can send it. Thats not really what im trying to do. I guess I should explain what I want a little better. Basicly im trying to capture the key that is pressed and then display it. That key will then become my hotkey. But with inputbox the keys I would use for hotkeys are not captured. I can do a work around by using send or controlsend but I was wondering if there was a better way to capture the F1 keystroke? Link to comment Share on other sites More sharing options...
Paulie Posted July 31, 2008 Share Posted July 31, 2008 (edited) Thx for the reply Paulie. Yeah I can send it. That’s not really what im trying to do. I guess I should explain what I want a little better. Basicly im trying to capture the key that is pressed and then display it. That key will then become my hotkey. But with inputbox the keys I would use for hotkey’s are not captured. I can do a work around by using send or controlsend but I was wondering if there was a better way to capture the F1 keystroke?Ahh OKWell, Achilles has already taken the liberty of making a functional Hotkey-Input control. See Here Edited July 31, 2008 by Paulie Link to comment Share on other sites More sharing options...
Smiley357 Posted July 31, 2008 Author Share Posted July 31, 2008 Thx! Looks like you just saved me alot of time. 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