Search found 176 matches

by haomingchen1998
16 May 2024, 12:55
Forum: Ask for Help (v1)
Topic: Incorrect usage of NotifyTrayClick?
Replies: 1
Views: 303

Incorrect usage of NotifyTrayClick?

Hi, I came across SKAN 's NotifyTrayClick function from here: https://www.autohotkey.com/boards/viewtopic.php?style=17&f=6&t=81157 It doesn't seem like MButton is working, am I doing anything wrong? Thanks! #NoEnv #SingleInstance, Force NotifyTrayClick(P*) { ; v0.41 by SKAN on D39E/D39N @ tiny.cc/no...
by haomingchen1998
13 May 2024, 22:18
Forum: Scripts and Functions (v1)
Topic: NotifyTrayClick() : Notifies when AHK tray icon is clicked
Replies: 13
Views: 4118

Re: NotifyTrayClick() : Notifies when AHK tray icon is clicked

Hi SKAN , thank you for the script as I find it extremely useful. I'm having some issues when defining actions using both Left Click and Middle Click, it works great if I define only 1 out of the 3 types of clicks (either left click, middle click, right click), but the moment I define more than 1 li...
by haomingchen1998
09 May 2024, 20:18
Forum: Ask for Help (v1)
Topic: Break chained Scripts' tray icon - UngruppingTrayIcon doesn't work consistently.
Replies: 2
Views: 413

Re: Break chained Scripts' tray icon - UngruppingTrayIcon doesn't work consistently.

teadrinker wrote:
09 May 2024, 19:30
This approach only separates the icons of such scripts from the rest of the scripts where this method is not applied. However, the icons of scripts where this method is used remain linked. There is currently no known way to separate them other than renaming the exe file.
Thanks for explaining!
by haomingchen1998
09 May 2024, 11:15
Forum: Ask for Help (v1)
Topic: Break chained Scripts' tray icon - UngruppingTrayIcon doesn't work consistently.
Replies: 2
Views: 413

Break chained Scripts' tray icon - UngruppingTrayIcon doesn't work consistently.

Hi, I want to ungroup or break the chain of 2 scripts in windows 11 tray icon. I have 2 scripts, one scripts is located at "C:\Ahk" and another script is located at "C:\Ahk\Completed". So far, I saw below scripts from teadrinker which doesn't work under certain situations, and I'm not sure why. I'm ...
by haomingchen1998
01 May 2024, 12:37
Forum: Ask for Help (v1)
Topic: WatchFolder.ahk question Topic is solved
Replies: 2
Views: 324

Re: WatchFolder.ahk question Topic is solved

At least one issue is variable scope. Your AutoHotkeySyncTest() function is referencing global variables without them having been declared as global anywhere. Or like you said, you could pass them as parameters, but then you need to have that function define some parameters, then you need to bind t...
by haomingchen1998
30 Apr 2024, 17:22
Forum: Ask for Help (v1)
Topic: WatchFolder.ahk question Topic is solved
Replies: 2
Views: 324

WatchFolder.ahk question Topic is solved

I'm using WatchFolder.ahk from https://www.autohotkey.com/boards/viewtopic.php?f=6&t=8384 I want to watch below actions for 2 predefined paths: ; FILE_ACTION_ADDED = 1 (0x00000001) : The file was added to the directory. ; FILE_ACTION_REMOVED = 2 (0x00000002) : The file was removed from the directory...
by haomingchen1998
24 Apr 2024, 20:52
Forum: Ask for Help (v1)
Topic: Dynamic way to find a program and run it Topic is solved
Replies: 2
Views: 199

Re: Dynamic way to find a program and run it Topic is solved

I've went through some post on the forum, and it seems like they require the folder window to be active to do the search, is there a way to search for a specific .exe file and run it without requiring a window to be active? I don’t know what you saw that made you think a folder window had to be act...
by haomingchen1998
24 Apr 2024, 20:08
Forum: Ask for Help (v1)
Topic: Dynamic way to find a program and run it Topic is solved
Replies: 2
Views: 199

Dynamic way to find a program and run it Topic is solved

Hi, my end goal is to run a program like this Run, "C:\Program Files\VEGAS\VEGAS Pro 20.0\vegas200.exe" I'm just wondering if there are ways to take it a step further where I can search within a specific drive, say like C drive. Assuming this vegas200.exe file is located somewhere in C drive, and yo...
by haomingchen1998
14 Apr 2024, 21:09
Forum: Ask for Help (v1)
Topic: Tray Icon Right Click for Windows 11
Replies: 0
Views: 76

Tray Icon Right Click for Windows 11

Hi, I'm trying to right click a program in hidden tray icon, and click on the last option from below: https://i.imgur.com/Av2iunD.png I tried TrayIcon library from Sean below, but it no longer works with windows 11: https://www.autohotkey.com/boards/viewtopic.php?p=9186#p9186 I then try the wmic app...
by haomingchen1998
12 Apr 2024, 13:22
Forum: Ask for Help (v1)
Topic: Volume Dial to switch between tabs Topic is solved
Replies: 2
Views: 80

Re: Volume Dial to switch between tabs Topic is solved

This may give you some ideas. :arrow: Alt-Tab hotkeys It turns out the issue was with DisplayFusion software, I need to disable their alt tab setting and instead, use windows 11's native alt tab. But still appreciate the link, it cleans up my code with AutoHotkey's built in Alt-Tab Hotkeys. Thanks!
by haomingchen1998
12 Apr 2024, 09:23
Forum: Ask for Help (v1)
Topic: Volume Dial to switch between tabs Topic is solved
Replies: 2
Views: 80

Volume Dial to switch between tabs Topic is solved

Hi, I want to repurpose volume dial on my keyboard to switch tabs/applications instead, but couldn't make it work, please see my idea below: When I'm in the window switching overlay (referring to the window when you alt tab), since I'm using DisplayFusion the window information are below: ahk_class ...
by haomingchen1998
12 Apr 2024, 08:27
Forum: Ask for Help (v1)
Topic: Turn off all SetTimers at once Topic is solved
Replies: 2
Views: 114

Re: Turn off all SetTimers at once Topic is solved

I don't think so, but you can use a single line to enable or disable the timers if you wish. #Requires AutoHotkey v1.1.33.11 timer := [["A", 400], ["B", 700]] F2:: For each, part in timer SetTimer % part[1], % part[2] SoundBeep 1500 Return F3:: For each, part in timer SetTimer % part[1], Off SoundB...
by haomingchen1998
11 Apr 2024, 16:19
Forum: Ask for Help (v1)
Topic: Turn off all SetTimers at once Topic is solved
Replies: 2
Views: 114

Turn off all SetTimers at once Topic is solved

SetTimer, DefaultActions, 50 SetTimer, FirefoxResizer, 100 SetTimer, CloudEdgeTimer, 1000 SetTimer, FolderSorter, 1200 SetTimer, MicrophoneDefaultSwitch, 2500 SetTimer, CheckGPUUsage, 3000 So I have above timers, and I want to toggle them on and off using F1 and F2 like below: F1:: SetTimer, Defaul...
by haomingchen1998
07 Apr 2024, 09:43
Forum: AutoHotkey_H
Topic: Ahk_H doesn't work with FindText.ahk
Replies: 0
Views: 206

Ahk_H doesn't work with FindText.ahk

Hi, I want to use AHK_H to run multiple settimers in parallel, not sure if that's the right word, but it's as if these settimers are launched from multiple new script files. One issue is that I can't launch the script if I include FindText.ahk, if I comment out " #Include FindText.ahk ", then the sc...
by haomingchen1998
23 Mar 2024, 18:27
Forum: Ask for Help (v1)
Topic: 1 SetTimer vs Multiple SetTimers, one better than the other? Topic is solved
Replies: 2
Views: 80

Re: 1 SetTimer vs Multiple SetTimers, one better than the other? Topic is solved

Hello, You can determine elapsed time by having your script use the A_TickCount . The second version ensures that your three commands will execute sequentially-- in the order that you have provided-- in all iterations. You can determine whether the first script also does this by running the script....
by haomingchen1998
23 Mar 2024, 09:47
Forum: Ask for Help (v1)
Topic: 1 SetTimer vs Multiple SetTimers, one better than the other? Topic is solved
Replies: 2
Views: 80

1 SetTimer vs Multiple SetTimers, one better than the other? Topic is solved

Hi, I just wanted to confirm some of my understandings of SetTimers. So from my understanding, setTimers in AutoHotkey 1.0 doesn't support Multi-Threading like AutoHotkey_H, so even if I have multiple settimers, they aren't running faster than having just 1 setTimer? Ex: ; Version 1 : Having each se...
by haomingchen1998
19 Mar 2024, 20:26
Forum: Ask for Help (v1)
Topic: KVM Hotkey Switch using AutoHotInterception.ahk?
Replies: 3
Views: 129

Re: KVM Hotkey Switch using AHK instead

I recall another post about the same issue with a KVM switch. My recollection is that AHK did not resolve the issue, but I do not know whether that library was used. You might want to search the forum for this topic. Hi mikeyww , thanks for the advice. I did research on this topic from the forum be...
by haomingchen1998
19 Mar 2024, 17:50
Forum: Ask for Help (v1)
Topic: KVM Hotkey Switch using AutoHotInterception.ahk?
Replies: 3
Views: 129

KVM Hotkey Switch using AutoHotInterception.ahk?

I have a keyboard that uses 2.4g usb adapter, and it has been plugged into a KVM switch that supports hotkey (press ctrl twice in a row) to switch to another PC. I want to use a different hotkey to trigger the KVM switch, so I tried something like this: F1:: Send {Ctrl Down}{Ctrl Up} Sleep, 500 Send...
by haomingchen1998
14 Mar 2024, 12:43
Forum: Ask for Help (v1)
Topic: Cancel msgbox action with hotkey? Topic is solved
Replies: 4
Views: 120

Re: Cancel msgbox action with hotkey? Topic is solved

RussF wrote:
14 Mar 2024, 12:39
If that is your entire script, then of course it will exit your script. With no hotkeys, timers, GUIs or #persistent statements, then Return will just exit the script.

Russ
I see now! Thanks for the idea, learned something new today :)
by haomingchen1998
14 Mar 2024, 12:32
Forum: Ask for Help (v1)
Topic: Cancel msgbox action with hotkey? Topic is solved
Replies: 4
Views: 120

Re: Cancel msgbox action with hotkey? Topic is solved

You could use MsgBox type 3 (Yes/No/Cancel). Pressing Esc is the same as pressing Cancel - then just test for IfMsgBox Cancel although with a timeout value of 2 seconds, you don't have much time to respond. Russ Hi Russ, interesting idea, I think you are referring to something like this? But when I...

Go to advanced search