Search found 1131 matches
- Yesterday, 20:12
- Forum: Other Utilities & Resources
- Topic: Main v2 errors that ChatGPT makes?
- Replies: 2
- Views: 122
Re: Main v2 errors that ChatGPT makes?
Well.... I repurposed the first menu item in the menu... The updated parts of the code are below. First I had only the prompt text from my above post, then I gave the ai some instructions for a simple ahk v2 gui. And (of course) there were have a dozen errors. Everytime I fixed an error, I added it ...
- Yesterday, 15:24
- Forum: Other Utilities & Resources
- Topic: Main v2 errors that ChatGPT makes?
- Replies: 2
- Views: 122
Main v2 errors that ChatGPT makes?
I've started using the awesome ChatGPT AutoHotkey Utility script. Since there are several common errors that GPT makes with AHK v2 code, I thought I'd preemptively correct some of them by embedding the corrections in the prompt. Almost always, the problems are because GPT inserts AHK v1 code and syn...
- Yesterday, 15:16
- Forum: Ask for Help (v2)
- Topic: CoordMode confusion... Topic is solved
- Replies: 2
- Views: 173
Re: CoordMode confusion... Topic is solved
Yes, of course. It's Caret not CaretGetPos.
- Yesterday, 14:43
- Forum: Ask for Help (v2)
- Topic: CoordMode confusion... Topic is solved
- Replies: 2
- Views: 173
CoordMode confusion... Topic is solved
This code #SingleInstance #Requires AutoHotkey v2+ CoordMode 'CaretGetPos', 'Screen' !^q:: { If CaretGetPos(&mbx, &mby) msgbox 'caret Pos ' mbx 'x, ' mby 'y' else MsgBox 'no caret 4 U' } Yields this error: Error: Parameter #1 of CoordMode is invalid. Specifically: CaretGetPos 004: CoordMode('ToolTip...
- Yesterday, 07:50
- Forum: Ask for Help (v2)
- Topic: Troubleshooting location of ToolTip...
- Replies: 3
- Views: 259
Re: Troubleshooting location of ToolTip...
Just wondering, could it be that the tool tip is hitting the edges of the screen or taskbar, causing the position to shift? It's a good thought, but no, I'm typically working in about the middle of my screen when it happens. I typically use my secondary monitor for typing, because the lower DPI mak...
- 19 May 2024, 11:52
- Forum: Ask for Help (v2)
- Topic: Troubleshooting location of ToolTip...
- Replies: 3
- Views: 259
Troubleshooting location of ToolTip...
I have this bit of code: If CaretGetPos(&mcx, &mcy) ToolTip "::" newTrig "::" newRepl, mcx-15, mcy+140, 6 ; <--- LOCATION of tooltip is set here. Else ToolTip "::" newTrig "::" newRepl,,, 6 It's about line 207 of the code here . The tooltip is designed to occasionally appear as I'm typing, so I don'...
- 18 May 2024, 11:39
- Forum: Scripts and Functions (v2)
- Topic: Simple tool for putting [URL] tags in AHK Forum posts..
- Replies: 7
- Views: 473
Re: Simple tool for putting [URL] tags in AHK Forum posts..
Interesting side note: At first, I had the code "typing out" the result, but it would occasionally trigger the Windows Notification Pane on the right of the screen. That's why I changed it to save to the clipboard, then type/send ^v. Seems to have fixed the glitch.
- 18 May 2024, 11:34
- Forum: Scripts and Functions (v2)
- Topic: Simple tool for putting [URL] tags in AHK Forum posts..
- Replies: 7
- Views: 473
Re: Simple tool for putting [URL] tags in AHK Forum posts..
Cool tip with embedding the chr(93) !! I've updated the top post. Thanks for the tip! I added a couple more image hosting sites too. I guess those could be made into a single RegExMatch . Also the big regex for matching urls might be overkill... We don't really need to ensure that the url is valid,...
- 18 May 2024, 08:20
- Forum: Scripts and Functions (v2)
- Topic: Simple tool for putting [URL] tags in AHK Forum posts..
- Replies: 7
- Views: 473
Simple tool for putting [URL] tags in AHK Forum posts..
Super simple, but I thought I'd share. This was inspired by the discussion with Andymbody , in the post here . EDIT: Might as well add support for ahk code blocks too... EDIT 3: The chr(93) allows us to share the below code block, but also will paste the tag appropriately. Cool tip Andy! ;==========...
- 17 May 2024, 12:29
- Forum: Ask for Help (v2)
- Topic: Making Gui Pic not visible leaves white rectange... Topic is solved
- Replies: 2
- Views: 167
Re: Making Gui Pic not visible leaves white rectange... Topic is solved
Yep, that was it. Thanks.
- 17 May 2024, 11:05
- Forum: Ask for Help (v2)
- Topic: Making Gui Pic not visible leaves white rectange... Topic is solved
- Replies: 2
- Views: 167
Making Gui Pic not visible leaves white rectange... Topic is solved
The finger image follows the cursor. Pressing Shift toggles between the left/right images. As seen in the screencast at the bottom, the code works well, except that when Visible := False , there is a white rectangle... Any ideas how to fix? #SingleInstance force #Requires Autohotkey v2.0-beta.1+ ; S...
- 17 May 2024, 07:37
- Forum: Ask for Help (v2)
- Topic: Read, write and alert script
- Replies: 5
- Views: 285
Re: Read, write and alert script
Removed by author due to concerns indicated in next reply.
- 16 May 2024, 07:24
- Forum: Ask for Help (v2)
- Topic: Read, write and alert script
- Replies: 5
- Views: 285
Re: Read, write and alert script
Welcome to the forums!
When you say, "2 parts of the screen" what do you mean? Is it like 2 parts of the same webpage? If the text that is being read can be copied to variables, it will probably be easier.
When you say, "2 parts of the screen" what do you mean? Is it like 2 parts of the same webpage? If the text that is being read can be copied to variables, it will probably be easier.
- 15 May 2024, 13:36
- Forum: Ask for Help (v2)
- Topic: Assign a function to a double middle click press? Topic is solved
- Replies: 19
- Views: 749
Re: Assign a function to a double middle click press? Topic is solved
Argh... but using this script disables my StrokeIt mouse gestures software, which uses the middle mouse button for drawing (dragging) the gestures... 😔🤦🏻 That was the problem that I found as well. I think that putting a dollar sign before the hotkey $MButton:: is "supposed" to prevent the script fr...
- 15 May 2024, 10:12
- Forum: Ask for Help (v2)
- Topic: Assign a function to a double middle click press? Topic is solved
- Replies: 19
- Views: 749
Re: Assign a function to a double middle click press? Topic is solved
I was going to suggest this:
I think Seven's is probably better though. Mine prevents the MButton from being used for normal actions.
Code: Select all
#SingleInstance
#Requires AutoHotkey v2+
MButton::
{ IF (A_PriorHotkey = "MButton") and (A_TimeSincePriorHotkey < 200)
msgbox 'mbutton double click detected'
}
- 14 May 2024, 17:51
- Forum: Scripts and Functions (v2)
- Topic: Simple Default Printer Viewer/Changer
- Replies: 2
- Views: 368
- 14 May 2024, 17:45
- Forum: Scripts and Functions (v1)
- Topic: Default Printer Viewer/Changer -- Feedback welcome
- Replies: 9
- Views: 1040
Re: Default Printer Viewer/Changer -- Feedback welcome
A version of this printer tool, for AHKv2, is here:
viewtopic.php?f=83&p=571743#p571743
viewtopic.php?f=83&p=571743#p571743
- 14 May 2024, 17:26
- Forum: Scripts and Functions (v2)
- Topic: Simple Default Printer Viewer/Changer
- Replies: 2
- Views: 368
Simple Default Printer Viewer/Changer
This is nothing groundbreaking. It's just a simple gui to list your installed printers as a radio group. The one that is selected by default is the current Default Printer. Select another and press the button to Change Default. Select a printer and right-click for the context menu of additional opti...
- 14 May 2024, 15:01
- Forum: Ask for Help (v2)
- Topic: Send menu item to other function?
- Replies: 5
- Views: 241
Re: Send menu item to other function?
Thanks Russ!
- 14 May 2024, 13:34
- Forum: Ask for Help (v2)
- Topic: Send menu item to other function?
- Replies: 5
- Views: 241
Re: Send menu item to other function?
Strange... The code that you (Boiler) just posted works, but when it's with the rest of the code, I get Error: Too many parameters passed to function. Specifically: chosenSwitch 065: Loop Parse Switches, " " 066: dfm.Add(A_Loopfield, chosenSwitch.Bind(A_Loopfield )) ▶ 067: dfm.Show() 068: } 071: { H...