Search found 8670 matches

by gregster
Today, 16:51
Forum: Ask for Help (v2)
Topic: Longpress detect at AutoHotkey v2
Replies: 6
Views: 1374

Re: Longpress detect at AutoHotkey v2

@asdc, I guess your uploaded screenshot is broken. If it is supposed to show the keyhistory, why not simply copy-paste its contents ?
But uploading a valid picture (eg png format) should also work.
by gregster
Today, 16:15
Forum: Ask for Help (v1)
Topic: is there a way to put all this on 1 line?
Replies: 2
Views: 35

Re: is there a way to put all this on 1 line?

You can put commas between these assignments and place them on the same line: https://www.autohotkey.com/docs/v1/Variables.htm#comma
The %s are already redundant in your current code and can be removed.
by gregster
Today, 16:04
Forum: Off-topic Discussion
Topic: Windows View
Replies: 7
Views: 87

Re: Windows View

@Moderators. Apologize for stepping on any toes. I initially started out looking for a little script to have all my files open medium icon. I did not know it could be done without having to use AHK. Once again sorry for putting a request in a wrong place. No problem, I saw the topic early on and un...
by gregster
Today, 14:58
Forum: Scripts and Functions (v1)
Topic: forecast and weather GUI
Replies: 2
Views: 62

Re: forecast and weather GUI

Yes, welcome to the AHK forums! Thank you for the contribution - but some feedback might be appropriate. I didn't try to run it yet, but it should be added that the png weather images are also not included, and that a JSON library will be needed (it's a good custom to at least link to all needed lib...
by gregster
Today, 08:53
Forum: Ask for Help (v1)
Topic: global open new tab in chrome
Replies: 6
Views: 90

Re: global open new tab in chrome

Copy and use the complete code from the codebox in mikeyww's post, eg by pressing 'Select All' (or expanding/scrolling the codebox and selecting the whole code manually) before copying it.
by gregster
Yesterday, 15:09
Forum: Bug Reports
Topic: [2.0.11] Error 87 by ControlGetFocus("A") when cmd.exe active
Replies: 2
Views: 129

Re: [2.0.11] Error 87 by ControlGetFocus("A") when cmd.exe active

On my Win11 version (Version 10.0.22621.3296), WindowSpy shows ahk_exe WindowsTerminal.exe for the cmd.exe window. Did you check? With ControlGetFocus("A") I get no error message - it works like expected. But when I look at your error message above, the double quotes look wrong - too slanted. quotes...
by gregster
Yesterday, 03:06
Forum: Bug Reports
Topic: SysGetIPAddresses() causes Invalid memory read/write.
Replies: 1
Views: 36

Re: SysGetIPAddresses() causes Invalid memory read/write.

No problem here - with v2 on Win11.
by gregster
15 Mar 2024, 17:49
Forum: Ask for Help (v2)
Topic: Assigned Hotkey is still appearing even after remapped
Replies: 4
Views: 87

Re: Assigned Hotkey is still appearing even after remapped

No, I don't use AHI currently - it's not installed on this computer. I don't know if it's a driver issue, but #HotIf gets used a lot and this doesn't seem to be a common problem. When I run the following code and scroll with it in my editors, neither w and s shows up (I used AHK v2.0.11): #HotIf tru...
by gregster
15 Mar 2024, 16:54
Forum: Ask for Help (v2)
Topic: Assigned Hotkey is still appearing even after remapped
Replies: 4
Views: 87

Re: Assigned Hotkey is still appearing even after remapped

Since this problem is probably rather AutoHotInterception -specific, involving a third-party driver and likely not very well-known to most forum users, I would consider mentioning evilC (the library's creator) and/or contacting him via his Discord channel (see https://github.com/evilC/AutoHotInterce...
by gregster
15 Mar 2024, 14:22
Forum: Ask for Help (v2)
Topic: Beginner: Getting Error on Script Initialization
Replies: 2
Views: 64

Re: Beginner: Getting Error on Script Initialization

The error message looks like a AHK v2 error, while your code is clearly v1 code. No idea what Macro Deck 2 is but you probably haven't AHK v1 installed.
Or you simply translate your code to v2 syntax - shouldn't be too hard.
by gregster
15 Mar 2024, 06:33
Forum: Ask for Help (v2)
Topic: Does the interpreter named 'AutoHotkey.exe' now have unicode support? Topic is solved
Replies: 4
Views: 97

Re: Does the interpreter named 'AutoHotkey.exe' now have unicode support? Topic is solved

coming from V1, I had to use the interpreter named AutoHotkeyU64.exe for unicode support rather than the one named AutoHotkey.exe . Is this still the case with V2? Afaik, the file AutoHotkey.exe was never a specific version but a copy of one of the other available exe-files. It all depended on what...
by gregster
14 Mar 2024, 20:25
Forum: Ask for Help (v1)
Topic: AHK Help in Dark Mode
Replies: 9
Views: 171

Re: AHK Help in Dark Mode

Currently, for me, the online help seems to remember the dark mode when I go into the 'help settings' and choose to save it.
I never use the offline help - so I can't comment on that.
by gregster
14 Mar 2024, 14:04
Forum: Ask for Help (v1)
Topic: Open a new tab of Chrome, in an active window
Replies: 4
Views: 77

Re: Open a new tab of Chrome, in an active window

Ah okay... but please note for future requests that questions about AI-generated code are currently not allowed on these forums (see forum rules) since the AI results for AHK code are often nonsense and just waste everyone's time.
(Your original post might confirm this suspicion.)
by gregster
14 Mar 2024, 13:48
Forum: Ask for Help (v1)
Topic: Open a new tab of Chrome, in an active window
Replies: 4
Views: 77

Re: Open a new tab of Chrome, in an active window

WinExist() is a function , and would need function syntax with parentheses and quotes for literal strings (see docs for examples). This would make sense with a regular If . But you are checking the same anyway on the next line with the (deprecated) command IfWinExist . But the opening brace { shoul...
by gregster
14 Mar 2024, 10:54
Forum: Ask for Help (v2)
Topic: how to make a script a .exe file
Replies: 6
Views: 96

Re: how to make a script a .exe file

Basically the same like in v1, but make sure to choose the right base file if you have both v1 and v2 installed.
For that, use the GUI of ahk2exe (if you don't prefer the command line) - where you can also define a default.
by gregster
14 Mar 2024, 05:11
Forum: Ask for Help (v1)
Topic: Automated deletion of folder stopped working
Replies: 3
Views: 52

Re: Automated deletion of folder stopped working

Also, I doubt that you can use OTB style for blocks with IfExist.
by gregster
13 Mar 2024, 14:10
Forum: Ask for Help (v2)
Topic: LButton & RButton
Replies: 5
Views: 120

Re: LButton & RButton

Btw, your v2 code above is missing a second : in the hotkey definition line - which would throw an error.
LButton & RButton: should be

Code: Select all

LButton & RButton::

PS: Please read also the moderator's annotations to your original post.
by gregster
13 Mar 2024, 14:06
Forum: Ask for Help (v2)
Topic: LButton & RButton
Replies: 5
Views: 120

Re: LButton & RButton

It's documented. There are certain constraints for prefix keys in custom combos: A custom combination of two keys (including mouse but not controller buttons) can be defined by using " & " between them. Because they are intended for use with prefix keys that are not normally used as such, custom com...

Go to advanced search