Search found 85 matches
- 21 Feb 2024, 09:31
- Forum: Off-topic Discussion
- Topic: Google not returning any autohokey(dot)com search results
- Replies: 2
- Views: 287
- 21 Feb 2024, 09:25
- Forum: Off-topic Discussion
- Topic: Google not returning any autohokey(dot)com search results
- Replies: 2
- Views: 287
Google not returning any autohokey(dot)com search results
Anyone else finding this with Google (other search engines seem unaffected), or is it just me?
Search term: "autohotkey some query or other" - returns results from sources like Reddit and Stack Overflow etc, but nothing from autohotkey.com.
Search term: "autohotkey some query or other" - returns results from sources like Reddit and Stack Overflow etc, but nothing from autohotkey.com.
- 09 Dec 2023, 11:27
- Forum: Ask for Help (v1)
- Topic: Converting a .png to a .ico file
- Replies: 28
- Views: 2834
Re: Converting a .png to a .ico file
The & operator creates a VarRef , which is a value representing a reference to a variable (See documentation page). In v1 the same operator passes the address of clrDIBSECTION 's contents in memory. If clrDIBSECTION is a variable containing the address (I can't tell until you show more code), just ...
- 08 Dec 2023, 12:43
- Forum: Ask for Help (v1)
- Topic: Converting a .png to a .ico file
- Replies: 28
- Views: 2834
Re: Converting a .png to a .ico file
Thanks iPhilip , after getting over that hurdle and after converting the HiconToFile function to v2, I get "Expected a Number but got a VarRef" at File.RawWrite(&clrDIBSECTION + szBITMAP, szBITMAPINFOHEADER) . Edit: The error was rectified by changing File.RawWrite(&clrDIBSECTION + szBITMAP, szBITMA...
- 08 Dec 2023, 11:43
- Forum: Ask for Help (v1)
- Topic: Converting a .png to a .ico file
- Replies: 28
- Views: 2834
Re: Converting a .png to a .ico file
Hi, I've been using teadrinker 's code (15 Aug 2021, 01:57 above) in v1 script for a couple of years now, and while I've successfully converted the bulk of my script to v2, I'm stuck with trying to convert the functions of the Png2Icon converter. Running the HIconFromHBitmap function through the AHK...
- 27 Aug 2023, 12:50
- Forum: Ask for Help (v1)
- Topic: Changing Gui example to use named Gui
- Replies: 4
- Views: 261
Re: Changing Gui example to use named Gui
Right, understood, thank you mikey.
- 27 Aug 2023, 12:14
- Forum: Ask for Help (v1)
- Topic: Changing Gui example to use named Gui
- Replies: 4
- Views: 261
Re: Changing Gui example to use named Gui
Hi mikey,
Ok, before I go dumping 2,570 messy and unoptimised lines of code and asking for help with conversion, could you explain where I've gone wrong in my attempt to name the Gui in the above example?
Ok, before I go dumping 2,570 messy and unoptimised lines of code and asking for help with conversion, could you explain where I've gone wrong in my attempt to name the Gui in the above example?
- 27 Aug 2023, 11:51
- Forum: Ask for Help (v1)
- Topic: Hotkey/MouseClick timing issue?
- Replies: 6
- Views: 348
Re: Hotkey/MouseClick timing issue?
Just to wrap this up, it did turn out to be some kind of timing issue, not so much with the hotkey but some kind of lag with the rest of the associated code - I had to abandon it in my use case.
- 27 Aug 2023, 11:39
- Forum: Ask for Help (v1)
- Topic: Changing Gui example to use named Gui
- Replies: 4
- Views: 261
Changing Gui example to use named Gui
I'm having a tough time trying to convert a not so simple v1 Gui to v2, so I thought I'd go back to basics and compare a v1 documentation example with the same in the v2 documentation. In the v2 #4 example , MyGui is used as the name. I tried doing the same with the v1 #4 example , but the OK button...
- 26 Aug 2023, 06:35
- Forum: Ask for Help (v2)
- Topic: To BOM or not to BOM?
- Replies: 12
- Views: 836
Re: To BOM or not to BOM?
kunkel321 Using VSCode I found no difference in using 'UTF-8' or 'UTF-8 with BOM' when pasting the hotkeys and saving the script, both encodings displayed the characters properly, but the editor window receiving the hotkey output had to be encoded as 'UTF-8 with BOM' or the accents wouldn't be disp...
- 26 Aug 2023, 06:11
- Forum: Ask for Help (v2)
- Topic: To BOM or not to BOM?
- Replies: 12
- Views: 836
Re: To BOM or not to BOM?
Are you saying that encoding with UTF-8 uses 'with BOM' by default - is that implied by your editor? I use VSCode and the encoding options, amongst others, are 'UTF-8' or 'UTF-8 with BOM'
- 24 Aug 2023, 15:14
- Forum: Ask for Help (v2)
- Topic: To BOM or not to BOM?
- Replies: 12
- Views: 836
Re: To BOM or not to BOM?
Can't say I've ever encountered the issue outlined in the first link, all scripts I have created using the context menu pre v2 were always encoded UTF-8 (no BOM) - enough to say that most of my scripts are pretty simplistic. I'm happy to leave it that way as a 'safety net' for any future v1 scripts ...
- 24 Aug 2023, 12:35
- Forum: Ask for Help (v2)
- Topic: To BOM or not to BOM?
- Replies: 12
- Views: 836
To BOM or not to BOM?
I notice that when creating a new script using explorer's context menu, whether empty, legacy (v1) or v2, all are created with UTF-8 with BOM encoding.
Is this now preferred for both v1 and v2?
Is this now preferred for both v1 and v2?
- 19 Aug 2023, 17:26
- Forum: Scripts and Functions (v1)
- Topic: AHK Startup (Consolidate AHK Scripts' Tray Icons)
- Replies: 115
- Views: 74592
Re: AHK Startup (Consolidate AHK Scripts' Tray Icons)
Excellent tool, reminiscent of SKAN's HandyTM. This is my attempt to port FanaticGuru 's code, and I think I've manage to replicate the same functionality of the original. Of course, I had to incorporate much of both franklin_clinton 's and Jasonosaj 's code. 👍 Edit: I discovered an oversight in fra...
- 22 Jul 2023, 12:05
- Forum: Ask for Help (v1)
- Topic: Hotkey/MouseClick timing issue?
- Replies: 6
- Views: 348
Re: Hotkey/MouseClick timing issue?
Well, I don't understand what's going on. I am using CoordMode, Mouse, Window , and as I said previously, If I use the mouse to manually click on the desired cell (at X700,Y700), the correct action is performed. If I use the hotkey, Click visually moves the mouse to the correct cell and clicks it, b...
- 22 Jul 2023, 10:41
- Forum: Ask for Help (v1)
- Topic: Hotkey/MouseClick timing issue?
- Replies: 6
- Views: 348
Re: Hotkey/MouseClick timing issue?
Thanks Mikey, but I don't think it has anything to do with the CoordMode. If I position the mouse over the cell I want to click prior to using the hotkey, it sends the correct key sequence. If I position the mouse several cells above the one I want to be clicked, again, it will send the correct sequ...
- 22 Jul 2023, 09:02
- Forum: Ask for Help (v1)
- Topic: Hotkey/MouseClick timing issue?
- Replies: 6
- Views: 348
Hotkey/MouseClick timing issue?
Scenario: Several onscreen positions have the same Y coordinate, the X coordinates are separated at 35px intervals, e.g. a row of ten 35px/35px squares. Clicking on a relevant XY position will send a sequence of keystrokes. The code I have works fine as long as I click on the coords manually, but if...
- 29 Jun 2023, 18:55
- Forum: General Discussion
- Topic: ChatGPT tells porkies
- Replies: 1
- Views: 1038
ChatGPT tells porkies
It suggested installing AutoHotkey to help solve a problem - and then lied to me.
https://chat.openai.com/share/612fa965-2e13-4b89-9b2b-8252e795fe10
https://chat.openai.com/share/612fa965-2e13-4b89-9b2b-8252e795fe10
- 11 Feb 2023, 08:58
- Forum: Ask for Help (v1)
- Topic: Simple change to Gui breaks functionality
- Replies: 2
- Views: 307
Re: Simple change to Gui breaks functionality
Thanks for the feedback swagfag . I came up with a compromise, by superimposing the checkboxes over progress bars, with the progress bars initially set at 0%, then set to 100% when the button is clicked. gui2.png Gui, Add, Tab3, w200, One|Two Gui, Tab, 1 Gui, add, Text,, Some stuff here Gui, Tab, 2 ...
- 10 Feb 2023, 13:39
- Forum: Ask for Help (v1)
- Topic: Distinguish between single and double click
- Replies: 3
- Views: 368
Re: Distinguish between single and double click
I'm guessing you'd need to determine the double click speed setting somehow.