AHK_X11 icon indicating copy to clipboard operation
AHK_X11 copied to clipboard

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

Open ASERPRO45 opened this issue 1 year ago • 1 comments

image

ASERPRO45 avatar Jun 19 '24 07:06 ASERPRO45

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

xlscode avatar Jul 01 '24 16:07 xlscode

thanks @xlscode!

phil294 avatar Aug 03 '24 17:08 phil294

No problem. Glad I could help a bit.

xlscode avatar Aug 04 '24 12:08 xlscode