I would like to make a gui with varios "textbox" ...
My idea is to assign the key or button pressed to the textbox selected.
Has anyone done something similar ?
Thanks in advance.
How to detect the key or button pressed
How to detect the key or button pressed
Everything is possible!
Re: How to detect the key or button pressed
Not sure exactly what your asking but this should get you started http://auto-hotkey.com/docs/Hotkeys.htm
and http://www.auto-hotkey.com/docs/commands/GuiControl.htm specifically gui, control, focus
and http://www.auto-hotkey.com/docs/commands/GuiControl.htm specifically gui, control, focus
Re: How to detect the key or button pressed
In the games, It's usually to be able to remap keys. If you want to change the upper key, you must press the new key to assign, isn't?
I want to do someting similar.
I have a textbox and I want that my script detect and assign to that textbox, the key or button pressed.
Thanks in advance.
I want to do someting similar.
I have a textbox and I want that my script detect and assign to that textbox, the key or button pressed.
Thanks in advance.
Everything is possible!
Re: How to detect the key or button pressed
I guess you want Hotkey control:
http://auto-hotkey.com/docs/commands/Gu ... htm#Hotkey
http://auto-hotkey.com/docs/commands/Gu ... htm#Hotkey
Re: How to detect the key or button pressed
As tmplinshi said, a simple example : (when the editbox have focus just press a key, that will display what you pressed, as in a game remaping control)
Code: Select all
Gui, Add, Hotkey, vChosenHotkey
Gui, Show
Re: How to detect the key or button pressed
I'll take a look but I think that I only work with keys and not with joystick buttons.
Thanks very much.
Thanks very much.
Everything is possible!