Issue With Quick Start Tutorial

Report problems with documented functionality
hAirypAulsAck
Posts: 5
Joined: 19 Nov 2017, 01:19
GitHub: hAirypAulsAck

Issue With Quick Start Tutorial

08 Jan 2018, 00:11

REFERENCE:
2 - Hotkeys & Hotstrings
b. Window specific hotkeys/hotstrings

PROBLEMATIC CODE:

Code: Select all

; Notepad
#IfWinActive untitled - Notepad
!q::
   MsgBox, You pressed Alt and Q in Notepad.
Return
#IfWinActive

; Any window that isn't Untitled - Notepad
!q::
   MsgBox, You pressed Alt and Q in any window.
Return
ISSUE:
#IfWinActive untitled - Notepad
Doesn't recognize the window due to the capitalization issue. Tested and confirmed. May be confusing for new comers, assuming they actually read it lol.
Helgef
Posts: 3231
Joined: 17 Jul 2016, 01:02
Contact:

Re: Issue With Quick Start Tutorial

08 Jan 2018, 01:15

It will not work on non English OS anyway. Something like ahk_class Notepad might be more appropriate.

Cheers.
hAirypAulsAck
Posts: 5
Joined: 19 Nov 2017, 01:19
GitHub: hAirypAulsAck

Re: Issue With Quick Start Tutorial

08 Jan 2018, 02:05

Makes since. I presume they didn't use ahk_class because this is very early into the quick-start tutorial.
lexikos
Posts: 6203
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Issue With Quick Start Tutorial

08 Jan 2018, 04:08

It will work just fine with a file named "untitled". ;)

I presume by "they" you mean the author of the tutorial, who is mentioned in its name at the top.

ahk_class is used in the very next example, with no explanation.

Return to “Bug Reports”

Who is online

Users browsing this forum: newtoahk and 5 guests