hi,
what i mean by this strange title is :
is there a simple way to get in a variable an hotkey in windows style ( like ctrl + shift + A ) instead of the ahk style ( ^+A)
so i can use it in a gui to show the user the chosen hotkey
i'm not asking for a full code, but just where to look or if there is a really simple way to do that that i don't know about.
get the windows hotkey instead of the ahk one Topic is solved
Re: get the windows hotkey instead of the ahk one Topic is solved
Code: Select all
keyCombi := "^!Delete"
Gui, Add, Hotkey, vChosenHotkey
Gui, Show, AutoSize
return
q::GuiControl, , ChosenHotkey, % keyCombi
Code: Select all
keyCombi := "^!Delete"
MsgBox, % RegExReplace(SubStr(str := StrReplace(StrReplace(StrReplace(keyCombi, "^", " Ctrl "), "!", " Alt "), "+", " Shift "), 2, StrLen(str) - 1), "\s+", " + ")
Please excuse my spelling I am dyslexic.
Re: get the windows hotkey instead of the ahk one
thanks ! the strReplace function is exactly what i need.
Who is online
Users browsing this forum: No registered users and 181 guests