It's similar to #If in AHK v1 - but it's now renamed to #HotIf.
See #HotIf and WinActive().
Also https://www.autohotkey.com/docs/v2/Tutorial.htm#s22
Search found 8864 matches
- 03 May 2024, 17:53
- Forum: Ask for Help (v2)
- Topic: Code should be working only in a window with a specific title Topic is solved
- Replies: 3
- Views: 303
- 03 May 2024, 17:38
- Forum: Ask for Help (v1)
- Topic: HoverScroll and Microsoft Edge
- Replies: 23
- Views: 3251
Re: HoverScroll and Microsoft Edge
If anyone has an exe file of HoverScroll() 1.04, please upload it. Because all the ahk files I found by Googling don't work. The uncompiled v1 script HoverScroll 1.04 can be downloaded from poiuz's post above . If it works, you could easily compile it with the ahk2exe compiler - included with AHK v...
- 03 May 2024, 14:50
- Forum: Ask for Help (v2)
- Topic: Trying to do a image search with V2 scripts - keep getting error
- Replies: 5
- Views: 339
Re: Trying to do a image search with V2 scripts - keep getting error
As a string, the file name should be quoted.
Compare https://www.autohotkey.com/docs/v2/lib/ImageSearch.htm#ExBasic
Or simply use the variable imagePath which you defined earlier (unquoted).
Compare https://www.autohotkey.com/docs/v2/lib/ImageSearch.htm#ExBasic
Or simply use the variable imagePath which you defined earlier (unquoted).
- 02 May 2024, 05:45
- Forum: Forum Issues
- Topic: Can post new topic in this forum
- Replies: 1
- Views: 226
Re: Can post new topic in this forum
Afaik, this is a known forum bug for new user accounts , especially before they even try to submit something (immediately after pushing the 'New Topic' button). For now, the best way to solve it seems to be following the advice in the error message - just submit your post (again). That usually works.
- 01 May 2024, 07:02
- Forum: Ask for Help (v2)
- Topic: Why codes disabled my "6" key..?
- Replies: 4
- Views: 273
Re: Why codes disabled my "6" key..?
Good point, boiler. On my german keyboard layout, ^ has its own key and can be reached without Shift (it's a dead key , though). Here, the hotkey combo ^ & LShift::MsgBox triggers a msgbox - but it has no relation to the 6 key and doesn't disable it. akirofe might have a third layout with different ...
- 01 May 2024, 06:14
- Forum: Ask for Help (v2)
- Topic: Why codes disabled my "6" key..?
- Replies: 4
- Views: 273
Re: Why codes disabled my "6" key..?
I tried the first 700 lines - and it didn't disable 6.
Perhaps there is something in the included media.ahk...
I mean, it's all hotkeys. Should be easy to isolate the part which is creating problems by removing sections iteratively.
Perhaps there is something in the included media.ahk...
I mean, it's all hotkeys. Should be easy to isolate the part which is creating problems by removing sections iteratively.
- 01 May 2024, 05:59
- Forum: Gaming
- Topic: i downloaded script for ahk and its working but
- Replies: 2
- Views: 226
- 30 Apr 2024, 11:15
- Forum: Ask for Help (v1)
- Topic: Send #r sends r in Windows-Hotkey
- Replies: 4
- Views: 499
Re: Send #r sends r in Windows-Hotkey
Both work here with latest v1.
What's the context? When do you press these key combos? Is this the whole code you are running while testing?
I would check the KeyHistory.
What's the context? When do you press these key combos? Is this the whole code you are running while testing?
I would check the KeyHistory.
- 30 Apr 2024, 05:15
- Forum: Ask for Help (v2)
- Topic: Can't get a simple SendInput script to work Topic is solved
- Replies: 2
- Views: 315
Re: Can't get a simple SendInput script to work Topic is solved
Try SendInput("^!{Numpad3}") Afaik, < and > are only supported in hotkey definitions (left side of the :: ), not with Send and its variants. At least, they won't do what you seem to expect - they will send a literal character, though (which might or might not interfere with what you are doing). The ...
- 29 Apr 2024, 16:38
- Forum: Ask for Help (v2)
- Topic: Making mouse wheel click generate left mouse button double-click
- Replies: 4
- Views: 1842
Re: Making mouse wheel click generate left mouse button double-click
Try
Code: Select all
Mbutton::Click 2
- 29 Apr 2024, 10:42
- Forum: Ask for Help (v1)
- Topic: Pixel searching finding incorrect colour Topic is solved
- Replies: 2
- Views: 290
Re: Pixel searching finding incorrect colour Topic is solved
You are not using the correct number format for hex numbers, starting with 0x : ColorID The decimal or hexadecimal color ID to search for, by default in Blue-Green-Red (BGR) format, which can be an expression. Color IDs can be determined using Window Spy (accessible from the tray menu) or via PixelG...
- 26 Apr 2024, 16:43
- Forum: Scripts and Functions (v1)
- Topic: GDI+ standard library 1.45 by tic
- Replies: 441
- Views: 253107
Re: GDI+ standard library 1.45 by tic
Say this 1.96 is not up to speed with the latest AHK 2.0.12 is it? I see byref in there and VarSetCapacity which have been deprecated. But is there a newer port? Or a better up-to-date lib? What should one use nowadays? 🤔 Haven't used GDI+ with AHK v2 yet, but there is eg this: https://github.com/b...
- 26 Apr 2024, 14:22
- Forum: Ich brauche Hilfe
- Topic: Fenstertitel kürzen
- Replies: 6
- Views: 403
Re: Fenstertitel kürzen
Okay... aber das Wort 'Kontoauszug' war aber in dem oben genannten Fenstertitel gar nicht vorhanden .
- 26 Apr 2024, 13:52
- Forum: Ich brauche Hilfe
- Topic: Fenstertitel kürzen
- Replies: 6
- Views: 403
Re: Fenstertitel kürzen
Sollte schon am Anfang des Skripts stehen, also irgendwo im auto-execute-Bereich , sodass das Kommando bei Skriptstart ausgeführt wird.: SetTitleMatchMode, 2 #IfWinActive , Konto_0012345 !c:: ; Firefox Betrag in die Zwischenablage kopieren MouseClick, left, 1546, 967 Return #IfWinActive ; fensterbez...
- 26 Apr 2024, 13:27
- Forum: Ich brauche Hilfe
- Topic: Fenstertitel kürzen
- Replies: 6
- Views: 403
Re: Fenstertitel kürzen
Füge am Anfang des Skripts mal SetTitleMatchMode , 2 hinzu. 1: Standardverhalten. Der Titel eines Fensters muss mit dem angegebenen FensterTitel beginnen, um eine Übereinstimmung zu sein. 2: Der Titel eines Fensters kann den angegebenen FensterTitel an beliebiger Stelle enthalten, um eine Übereinsti...
- 26 Apr 2024, 13:21
- Forum: Forum Issues
- Topic: Chrome block AHK forums with "NOT SECURE" Error
- Replies: 2
- Views: 309
Re: Chrome block AHK forums with "NOT SECURE" Error
Yes - and it's not only Chrome. This shows up since the forum was down yesterday for a few hours. Looks like the correct certificate is missing.
(I Imoved your topic to 'Forum Issues'.)
(I Imoved your topic to 'Forum Issues'.)
- 26 Apr 2024, 07:38
- Forum: Forum Issues
- Topic: Slow forum
- Replies: 111
- Views: 12497
Re: Slow forum
@joedf, now the forum download links and the download page show 2.0.12 as the latest version - although it should be 2.0.13.
https://github.com/AutoHotkey/AutoHotkey/releases
https://github.com/AutoHotkey/AutoHotkey/releases
- 24 Apr 2024, 20:44
- Forum: Ask for Help (v1)
- Topic: Recording Macros for AHK
- Replies: 12
- Views: 5738
Re: Recording Macros for AHK
(The topic was created in 2020, btw, and had some time to collect views. Yet no one posted here for years.) Just realized this. So you can take about 50% of of the spiciness away from my previous statements regarding this post. No worries. As a chili sauce aficionado, I can handle spicy . ;)
- 24 Apr 2024, 20:14
- Forum: Forum Issues
- Topic: Slow forum
- Replies: 111
- Views: 12497
- 24 Apr 2024, 20:06
- Forum: Ask for Help (v1)
- Topic: Recording Macros for AHK
- Replies: 12
- Views: 5738
Re: Recording Macros for AHK
btw, creating subroutines for determining coordinates is certainly no rocket science (and has be done regularly), once you know the AHK basics. But if it seems like rocket science anyway, perhaps PMC prevents people from learning programming. :think: (Of course, not everyone is interested in learni...