Search found 16846 matches

by boiler
41 minutes ago
Forum: Ask for Help (v2)
Topic: Double click when hold down LButton long enough?
Replies: 4
Views: 51

Re: Double click when hold down LButton long enough?

Try this:

Code: Select all

#Requires AutoHotkey v2.0

LButton:: {
	start := A_TickCount
	KeyWait 'LButton'
	if (A_TickCount - start) > 500
		Click
	Click
}

Note that this precludes the ability to drag things with the mouse. That could probably be added if necessary.
by boiler
Today, 05:31
Forum: Ask for Help (v2)
Topic: Double click when hold down LButton long enough?
Replies: 4
Views: 51

Re: Double click when hold down LButton long enough?

You need to be more specific on how you want it to work. Do you want the first click to occur immediately upon clicking down then send another click if it’s held down for at least 500 ms? Or do you want it to wait until you release the mouse button before sending anything, then click once if held fo...
by boiler
Today, 04:56
Forum: Ask for Help (v1)
Topic: PixelGetColor search in a specified region relative to cursor
Replies: 3
Views: 218

Re: PixelGetColor search in a specified region relative to cursor

Imagine a small 10x10 cube centered under and following the mouse cursor and whenever it detects the color in *all* 100 pixels (or is it 104, I don't know) within that cube, it sends a messagebox or something. Just to clarify the terminology: It’s not a 10x10 cube. It’s an 11x11 square. Cubes are 3...
by boiler
Yesterday, 21:41
Forum: Ask for Help (v2)
Topic: Cubase 13 screen focus key assign
Replies: 7
Views: 309

Re: Cubase 13 screen focus key assign

magicmore wrote: I will attempt to run winspy, but clicking anywhere on the page will cause it to be active.
If you enable the “Follow Mouse” option of Window Spy, there is no need to click on a window in order to see its info.
by boiler
Yesterday, 20:19
Forum: Ask for Help (v2)
Topic: Open 2 File Explorer windows side by side
Replies: 4
Views: 230

Re: Open 2 File Explorer windows side by side

@w_i_k_i_d — Apparently you haven’t been seeing or have been ignoring the several emails notifying you of disapproved posts because you keep posting duplicates. Posts by new members must be approved before they appear. Please be patient and don’t post the same content again! Thank you!
by boiler
27 Apr 2024, 19:09
Forum: Ask for Help (v2)
Topic: Detect and Respond to a Tradestation Alert Popup
Replies: 3
Views: 138

Re: Detect and Respond to a Tradestation Alert Popup

Then it’s not really a window per se. It’s just rendered by he application on its main window, so you have to identify it by other means such as ImageSearch.
by boiler
27 Apr 2024, 14:56
Forum: Ask for Help (v2)
Topic: Detect and Respond to a Tradestation Alert Popup
Replies: 3
Views: 138

Re: Detect and Respond to a Tradestation Alert Popup

What do you mean Window Spy is unable to detect anything about its content? I really doubt that every field in it is blank. Do you mean it’s the same info as the main Tradestation window? You should post a screenshot of this supposedly empty Window Spy window.
by boiler
27 Apr 2024, 09:59
Forum: Ask for Help (v2)
Topic: I want to open in VSCODE any file I copied. Code doesn't work: Run("C:\Users\jethr\...\Code.exe" "%A_Clipboard%") Topic is solved
Replies: 4
Views: 207

Re: I want to open in VSCODE any file I copied. Code doesn't work: Run("C:\Users\jethr\...\Code.exe" "%A_Clipboard%") Topic is solved

@alawsareps — To make it crystal clear, replace your Run line with this one:

Code: Select all

Run '"C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "' A_Clipboard '"'
by boiler
27 Apr 2024, 09:40
Forum: Ask for Help (v2)
Topic: I want to open in VSCODE any file I copied. Code doesn't work: Run("C:\Users\jethr\...\Code.exe" "%A_Clipboard%") Topic is solved
Replies: 4
Views: 207

Re: I want to open in VSCODE any file I copied. Code doesn't work: Run("C:\Users\jethr\...\Code.exe" "%A_Clipboard%") Topic is solved

Well, when you make no attempt to implement what I showed you regarding quotes around it, are you surprised that it didn’t help?

Did you see where I said “Should be:”? Is there a reason you ignored it? I showed you the exact line to use and you did something else.
by boiler
27 Apr 2024, 08:18
Forum: Ask for Help (v2)
Topic: AHK can't recognize paths with space properly. Run("C:\Users\..\code.exe" "C:\Users\hello world.ahk) will open two files
Replies: 3
Views: 131

Re: AHK can't recognize paths with space properly. Run("C:\Users\..\code.exe" "C:\Users\hello world.ahk) will open two f

alawsareps — You already asked and got an answer to basically the same question a little earlier here . Why are creating multiple threads asking the same questions? If you didn’t understand the answer in the earlier thread, follow up with another question in that thread. Don’t create a whole new th...
by boiler
27 Apr 2024, 08:03
Forum: Ask for Help (v2)
Topic: Generating part of a variable Topic is solved
Replies: 1
Views: 68

Re: Generating part of a variable Topic is solved

#Requires AutoHotkey v2.0 FFB := [ {var1: "65", var2: "100", var3: "100", var4: "100", var5: "100", var6: "900"}, {var1: "75", var2: "100", var3: "100", var4: "0", var5: "0", var6: "900"}, {var1: "75", var2: "100", var3: "100", var4: "0", var5: "0", var6: "900"}, {var1: "75", var2: "100", var3: "10...
by boiler
27 Apr 2024, 06:13
Forum: Ask for Help (v2)
Topic: Copy predefined text to Win 11 copy history. Topic is solved
Replies: 2
Views: 79

Re: Copy predefined text to Win 11 copy history. Topic is solved

There are ways to achieve your goal of not having to remember a bunch of hotkeys in AHK without bothering with the clipboard history. It would be very straightforward to have a script produce a menu of your 10 items when you press a hotkey, and you would click on any of them to send that text. Or ma...
by boiler
27 Apr 2024, 00:25
Forum: Ask for Help (v2)
Topic: I want to open in VSCODE any file I copied. Code doesn't work: Run("C:\Users\jethr\...\Code.exe" "%A_Clipboard%") Topic is solved
Replies: 4
Views: 207

Re: I want to open in VSCODE any file I copied. Code doesn't work: Run("C:\Users\jethr\...\Code.exe" "%A_Clipboard%") Topic is solved

You’re not using expression syntax correctly. First, you don’t put % around variables. And you don’t put variables inside quotes. And unlike legacy syntax in v1, you have not put quotes in the strings themselves and separated them with a space; you have concatenated two strings (that don’t contain a...
by boiler
26 Apr 2024, 21:56
Forum: Ask for Help (v2)
Topic: Dock/Attach window function for AHK v2 Topic is solved
Replies: 5
Views: 402

Re: Dock/Attach window function for AHK v2 Topic is solved

Since everyone seems to be ignoring me. :cry: Well, the thread’s subject and first post is mainly about seeing who might want to translate a relatively involved script to v2, so most would probably stop reading there, and each lengthy post after that tends to turn away pretty much everyone else who...
by boiler
26 Apr 2024, 21:23
Forum: Ask for Help (v2)
Topic: How to make AutoHotkey wait for a page to load?
Replies: 4
Views: 195

Re: How to make AutoHotkey wait for a page to load?

Note that your short AHK script is v1 but you posted in the v2 section. I’ll move the thread if you’re looking to use v1.
by boiler
26 Apr 2024, 16:00
Forum: Ask for Help (v2)
Topic: Help with making manual hotkey for CTRL+C Topic is solved
Replies: 2
Views: 132

Re: Help with making manual hotkey for CTRL+C Topic is solved

Try this, assuming the "Copy" menu item is the second item starting with a "C" (with "Cut" being the first):

Code: Select all

#Requires AutoHotkey v2.0

SetKeyDelay 20

#HotIf WinActive('ahk_exe MyPhoneExplorer.exe') ; assuming that's the actual process name
^c::SendEvent '{Click R}cc{Enter}'
by boiler
26 Apr 2024, 15:35
Forum: Gaming Help (v1)
Topic: Help with dual boxing script...
Replies: 9
Views: 307

Re: Help with dual boxing script...

I have no idea why adding the quotes breaks the CoordMode, but it works this way so I don't care LoL Well, I'll explain it anyway so hopefully you don't have to ask again to fix similar issues in the future: You don't quote literal strings in legacy/command syntax. That's only in expressions. If yo...
by boiler
25 Apr 2024, 07:56
Forum: Gaming Help (v1)
Topic: Problem with a WinActive and WinNotExist loop script
Replies: 9
Views: 153

Re: Problem with a WinActive and WinNotExist loop script

That's really it. It's not an AHK limitation. No other tool would be able to send keystrokes in a way that will get it to accept them, if that's really the issue here. It's the way the app works. I could easily write a little app that will only respond to keystrokes when its window is active and the...

Go to advanced search