phil294 / AHK_X11

AutoHotkey for Linux (X11-based systems)
GNU General Public License v2.0
815 stars 15 forks source link

command '#ifwinactive' not found but its already on script #83

Closed ASERPRO45 closed 2 months ago

ASERPRO45 commented 3 months ago

image

xlscode commented 3 months ago

Let me respond to your report on behalf of the Author (I hope the Author will forgive me for arrogantly throwing my two cents in here, but I think this issue is quite obvious and I hope to be able to save Him a bit of time.)

The directive #IfWinActive does not work (for now, at least) in AHK_X11. In the issue #78 (reported by SN-CH on Apr 11) the Author replies:

What you'd want is the #IfWinActive directive instead: https://www.autohotkey.com/docs/v1/lib/_IfWinActive.htm) However, this link is from Windows AHK docs, the directive doesn't yet exist in AHK_X11 (but still planned some day).

Please, take a look at the rest of the post where you will find a workaround. The link is here:

https://github.com/phil294/AHK_X11/issues/78#issuecomment-2050740989

phil294 commented 2 months ago

thanks @xlscode!

xlscode commented 2 months ago

No problem. Glad I could help a bit.