Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

exceptions for window class bug - breakes hotkeys


  • Please log in to reply
1 reply to this topic
Owyn
  • Members
  • 21 posts
  • Last active: Dec 24 2016 12:22 AM
  • Joined: 14 May 2011
#IfWinNotActive ahk_class myClass

XButton1 UP::
SendInput ^{Tab}
Send {Ctrl Up} ; sometimes it stucks
return
#IfWinActive

#IfWinActive, ahk_class myClass
XButton1::
	Send {PgDn}
	return

When MyClass program is active and i Press XButton1 - just nothing happens, ahk console is empty. 

*If I change XButton1 to XButton2 in both lines - then everything works as expected.

*If I remove first XButton1 UP hotkey - they everything works as expected on myClass app.

 

AHK u 1.1.13.01



Lexikos
  • Administrators
  • 9844 posts
  • AutoHotkey Foundation
  • Last active:
  • Joined: 17 Oct 2006

It works just fine for me if I replace myClass with Notepad.