OK I use a simple script from a GUI (similar to the example below) to send strings of letters to whatever I am working on. I use this as a shortcut to send whatever things I happen to need to type multiple times a day like my name. I have this HotKeySet to my F6 key and it works great.
What I want to do is use a ComboBox to indicate what the hotkey is set to. So I could have a list of keys rather then it set to just F6.
I can’t seem to find anything in the help files under ComboBox or HotKeySet or on the Forums. Am I blind? Or does anyone have somewhere else I can look or the answer to my dilemma?
This example is what I am trying to get working.
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("$HotKey", "OutPut")
$Form1 = GUICreate("Test", 288, 215, 519, 347)
$HotKey = GUICtrlCreateCombo(" set hotkey ", 128, 64, 121, 25)
GUICtrlSetData(-1, "F2|F3|F4|F5|F6") ;have tried {F2}|{F3}...
GUISetState()
$Label1 = GUICtrlCreateLabel("UserName", 16, 64, 36, 17)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func OutPut()
Send("The Text or Name Here")
Send("{ENTER}")
EndFunc ;==>OutPut
My heart is not set on a combo box if anyone has another idea. It would be cool to have a button to push to map the next key hit but that seems overly complicated for what I need.
Thanks In advance for any advice!