Code: Select all
#IfWinActive, ahk_class ChitinClass
Right::ControlSend, , {Right}, ahk_class COWON Jet-Audio MainWnd Class
Left::ControlSendRaw, , {Left}, ahk_class COWON Jet-Audio MainWnd Class
#IfWinActive
return
Code: Select all
#IfWinActive, ahk_class ChitinClass
Right::ControlSend, , {Right}, ahk_class COWON Jet-Audio MainWnd Class
Left::ControlSendRaw, , {Left}, ahk_class COWON Jet-Audio MainWnd Class
#IfWinActive
return
Code: Select all
#IfWinActive, ahk_class ChitinClass
Right::ControlSend, , {Right}, ahk_class COWON Jet-Audio MainWnd Class
Left::ControlSendRaw, , {Left}, ahk_class COWON Jet-Audio MainWnd Class
#IfWinActive
evilC, sorry for being away ... , I'm still interested in getting 'ControlSend' work. Why are you saying the hotkeys will not trigger?evilC wrote: ... the hotkeys will not trigger while in notepad.
The program, which should receive the key commands, is Jet-Audio, its ahk_class is: COWON Jet-Audio MainWnd Class and WinActivate does activate it, when sent from Notepad:evilC wrote: Are you 100% sure your window titles are correctly formed? Try using the same window title with a winactivate or similar command to make sure it is operating on the correct window.
Code: Select all
#IfWinActive, ahk_class Notepad++
!Right::
WinActivate, ahk_class COWON Jet-Audio MainWnd Class
#IfWinActive
return
I think I was referring to the hotkeys wrapped in #IfWinActive, ahk_class ChitinClass - obviously, Notepad is not of class ChitinClassAquinax wrote:evilC, sorry for being away ... , I'm still interested in getting 'ControlSend' work. Why are you saying the hotkeys will not trigger?
Yeah, I had a similar problem myself today with a browser window, couldn't work it out either. In the end, I just got the hwnd of the active window, activated the window to send to, sent the keys, then switched back to the window that I stored the hwnd of at the beginning.Aquinax wrote: The program, which should receive the key commands, is Jet-Audio, its ahk_class is: COWON Jet-Audio MainWnd Class and WinActivate does activate it, when sent from Notepad:but ControlSend does NOT work. Any idea why?Code: Select all
#IfWinActive, ahk_class Notepad++ !Right:: WinActivate, ahk_class COWON Jet-Audio MainWnd Class #IfWinActive return
Users browsing this forum: DianeWREWS and 67 guests