I use a lot of open source applications that happen to be written in java (freemind, VUE, etc.). I like to write AHK scripts that will give me keyboard shortcuts that work only in those applications, but am having a hard time getting #IfWinActive to recognize them by their titles. For example, the following does not work (I don't think AHK recognizes the freemind window by its title):
Code:
SetTitleMatchMode 2
#IfWinActive FreeMind
F1:: ;Node bgcolor prompt
{
SendInput {ALTDOWN}o
Sleep 30
SendInput n{ALTUP}
return
}
#IfWinActive
The only way I've found to get it to recognize FreeMind is using
Code:
#IfWinActive ahk_class SunAwtFrame
, but this is giving me trouble when I need different shortcuts to do different things in the various applications. When I do something like
Code:
#IfWinActive FreeMind ahk_class SunAwtFrame
it stops working.
Has anyone else had this problem? If so, do you know of any workarounds? Is this a bug in AHK? Any help would be greatly appreciated; this is driving me crazy.