Tab
Re: Tab
If your goal is to send Tab after Shift+Q, you can do it this way:
Code: Select all
~+q::Send {Tab}
Tab
When I press q(Does not have to be Capitol q) I want it to be Tab but also remain q if I am using it as a regular letter. IE when notepad,word,is open etc. As I said according to documentation if I have the ~ in front of it it should work but it does not. Tk's.
-
- Posts: 144
- Joined: 01 Feb 2017, 22:57
Re: Tab
but how's the computer supposed to tell when you want which to happen?
Code: Select all
#If not NotepadWordEtcIsOpen()
q::Tab
#If
NotepadWordEtcIsOpen(){
for i, e in ["ahk_exe notepad.exe", "ahk_class OpusApp"]
if WinActive(e)
return 1
}
Re: Tab
Code: Select all
GroupAdd, q, ahk_exe notepad.exe
GroupAdd, q, ahk_exe WINWORD.exe
GroupAdd, q, ahk_exe iexplore.exe
GroupAdd, q, ahk_exe chrome.exe
GroupAdd, q, ahk_exe firefox.exe
GroupAdd, q, ahk_exe msedge.exe
#IfWinNotActive ahk_group q
q::Tab
#IfWinNotActive