Search found 86 matches

by llinfeng
09 Oct 2023, 08:57
Forum: Ask for Help (v1)
Topic: Any idea why this script launches two instances of Paint?
Replies: 2
Views: 407

Re: Any idea why this script launches two instances of Paint?

try making the hotkey $^v:: func() Adding the dollar sign didn't work in my case. Instead, changing IfWinExist (deprecated) into function calls of WinExist helped. The problem : I had similar issues with the following code snippet, where a new TOTALCMD.EXE process would get started although there a...
by llinfeng
22 Jun 2022, 12:52
Forum: Ask for Help (v1)
Topic: Refresh System tray Icons Topic is solved
Replies: 25
Views: 14536

Re: Refresh System tray Icons Topic is solved

Building on what has been said in this thread, the following function works on Win 10 Pro (Version 21H2; OS build 19044.1766). ; Source: https://www.autohotkey.com/boards/viewtopic.php?t=19832 Tray_Refresh() { WM_MOUSEMOVE := 0x200 HiddenWindows := A_DetectHiddenWindows DetectHiddenWindows, On TrayT...
by llinfeng
27 Feb 2022, 09:12
Forum: Ask for Help (v1)
Topic: MsgBox and WinMove
Replies: 29
Views: 6078

Re: MsgBox and WinMove

Thanks to teadrinker's CBTProc function, here is a quick demo to summon a message box roughly at the center of the active window. (The Round function is needed, in short.) ; Assign to 1 for testing. 1:: WinGetPos, X, Y, Width, Height, A ; "A" to get the active window's pos. x_center := Round(X + Wid...
by llinfeng
18 Jan 2022, 21:43
Forum: Ask for Help (v1)
Topic: Remap Ctrl+W for Amazon Chime Topic is solved
Replies: 4
Views: 367

Re: Remap Ctrl+W for Amazon Chime Topic is solved

Exactly. Here is what I end up using: #IfWinActive ahk_exe Chime.exe ^w:: send {blind}^{bs} ^w up:: return #IfWinActive With the "up" portion on the third line, AHK blocks Amazon Chime from realizing what actually happened - the release of w-key with Ctrl held down is now tasked to do exactly nothing.
by llinfeng
18 Jan 2022, 20:16
Forum: Ask for Help (v1)
Topic: Respond to Taps on Tablet? Topic is solved
Replies: 2
Views: 297

Re: Respond to Taps on Tablet? Topic is solved

I am not sure if AHK has native support for finger tapping/swiping events. Though, you may consider installing https://www.microsoft.com/en-us/p/touchme-gesture-studio/9wzdncrdg0l8#activetab=pivot:overviewtab With the touchme engine, the tablet can detect all sorts of gesture events. For each gestur...
by llinfeng
18 Jan 2022, 20:11
Forum: Ask for Help (v1)
Topic: Problem when activating Autohotkey
Replies: 5
Views: 556

Re: Problem when activating Autohotkey

@Dr. H, I don't think there is anything special about the "long" script you shared. Have you tried running the script on a different computer? My main AHK script has some 6000 lines of stuff accumulated since 2012 or so, and I kept it running 24/7 (or as long as my workstation is running). I haven't...
by llinfeng
18 Jan 2022, 19:59
Forum: Ask for Help (v1)
Topic: Remap Ctrl+W for Amazon Chime Topic is solved
Replies: 4
Views: 367

Re: Remap Ctrl+W for Amazon Chime Topic is solved

Yes, I agree that Autohotkey usually wins. Actually, with this Amazon Chime application, what was scheduled to be sent actually gets delivered. Suppose that I keep holding the w-key, well, multiple words gets deleted. Specifically, Amazon Chime is monitoring for the release of the w-key. I wonder if...
by llinfeng
18 Jan 2022, 19:36
Forum: Ask for Help (v1)
Topic: Remap Ctrl+W for Amazon Chime Topic is solved
Replies: 4
Views: 367

Remap Ctrl+W for Amazon Chime Topic is solved

Please advise what I am missing with the specification below. The goal is to trigger a word-deletion event when Ctrl+W is pressed. Unexpectedly, upon releasing the w-key, Amazon Chime window should get dismissed to the system tray. And, per its settings, there is no such a section for configuring th...
by llinfeng
22 Sep 2021, 08:46
Forum: Ask for Help (v1)
Topic: Can't open OBS
Replies: 5
Views: 2051

Re: Can't open OBS

It helps to know that working directories ought to be specified without quote. Just to add that, one can feed the numerous OBS launch parameters as well. Here is one example: Run, "C:\Program Files\obs-studio\bin\64bit\obs64.exe" --profile "StudyCam" --collection "LL" --scene "Zoom-MainCam" --startv...
by llinfeng
09 Jun 2021, 22:13
Forum: Ask for Help (v1)
Topic: Sharemouse and AHK: how to repeat Ctrl+W keypresses? Topic is solved
Replies: 1
Views: 846

Re: Sharemouse and AHK: how to repeat Ctrl+W keypresses? Topic is solved

Thanks to user @ShambleS1980 on the AutoHotkey discord channel , a quick solution is revealed. ^w:: send {blind}^{bs} Here, the {blind} prefix makes sure the modifier key (Ctrl) is held down until it is released deliberately. This helped to restore the "normal" behavior on the remote machine control...
by llinfeng
25 Feb 2021, 08:45
Forum: Ask for Help (v1)
Topic: groupactivate ahk_group for Firefox windows should summon a black window
Replies: 3
Views: 350

Re: groupactivate ahk_group for Firefox windows should summon a black window

I am inclined to believe it is now a buggy Windows problem: the OneNote UWP app is turning completely white, and resizing it with an AHK WinMove function won't restore it. Closing and reopening helped.
by llinfeng
24 Feb 2021, 16:33
Forum: 请求帮助
Topic: 请教双屏幕操作 Topic is solved
Replies: 2
Views: 3237

Re: 请教双屏幕操作 Topic is solved

我发现Windows自带的快捷键, Shift + Win + left ,就能完美实现。用AHK也可以自己映射成其他的快捷键,比如Ctrl+Win+Left,如下(我的Ctrl键在Capslock的位置,这仨按起来更顺手一点儿) #SingleInstance ; Allow only one instance of this script to be running. #Persistent ; To stop the script from exiting. return ; 这里是正经的映射部分;前面,在return前面,是设置环境的 ^#h:: send #+{left} ^#l::...
by llinfeng
24 Feb 2021, 14:13
Forum: 请求帮助
Topic: 如何解决热键冲突?
Replies: 5
Views: 12357

Re: 如何解决热键冲突?

@Edifier 感谢,我这儿也能用。谢谢!
by llinfeng
24 Feb 2021, 14:10
Forum: Ask for Help (v1)
Topic: groupactivate ahk_group for Firefox windows should summon a black window
Replies: 3
Views: 350

Re: groupactivate ahk_group for Firefox windows should summon a black window

Totally agree with your comment on DisplayFusion. Though, I find their monitor-profile tool helpful. It is a good idea to take it out of the way. I'll try over the weekend.
by llinfeng
24 Feb 2021, 14:05
Forum: 请求帮助
Topic: 窗口系列操作
Replies: 2
Views: 3326

Re: 窗口系列操作

Also, you may find this post helpful: https://www.autohotkey.com/boards/viewtopic.php?t=68535
by llinfeng
24 Feb 2021, 13:47
Forum: 请求帮助
Topic: 哪个命令可以把chrome 网页拉到外接的多个显示器?
Replies: 2
Views: 2416

Re: 哪个命令可以把chrome 网页拉到外接的多个显示器?

有个笨办法,要调WinMove的具体参数。下面是一个例子,把当前的活动窗口放大到指定大小并移动 max_to_two_monitors: ; Left-X, Height-Upper, Width, Height-Bottom WinMove, A, , 1192, -35, 2415, 1958 ;Now with no Windows task bar return 多窗口和多显示器的话,可以多写几个这样的 label,按顺序激活指定的窗口并移动。 可以是这样的结构:可能该用另一种 IfWin 的 function,这里的例子,IfWinExist 该是错的。 move_8_monitor...
by llinfeng
24 Feb 2021, 12:04
Forum: 请求帮助
Topic: 窗口系列操作
Replies: 2
Views: 3326

Re: 窗口系列操作

1. WinMove可以调整窗口的大小和位置 2. 窗口置顶(一直显示在前面):https://gist.github.com/gustavosotnas/46f4b4615eeabb2089478cbcc83cda76 3. 隐藏窗口的蓝条(有Tab的浏览器不管用) ; Key-F11: For toggling "real" full-screen.; {{{ #f11:: WinSet, Style, ^0xC00000, A WinSet, Style, ^0脳40000, A return 4. 拖动两个窗口——别用AHK?用鼠标把窗口拽到屏幕一边,再点一点,中间的分割线就能重新...
by llinfeng
24 Feb 2021, 11:57
Forum: 请求帮助
Topic: fn键变成Ctrl Topic is solved
Replies: 1
Views: 2642

Re: fn键变成Ctrl Topic is solved

你可以试试用mac上面的软件,比如Karabiner,直接修改Fn键的映射?

在Autohotkey里面,判定Fn键单独按下,是挺难搞定的一件事;同时,要想恢复Ctrl键的组合键,又该是一整套新的映射。
by llinfeng
24 Feb 2021, 11:54
Forum: 请求帮助
Topic: typora下ahk失效 Topic is solved
Replies: 2
Views: 1973

Re: typora下ahk失效 Topic is solved

有可能是你启动AHK的时候,没有给他最高权限?

出问题的时候,你试试Task Manager能不能用?
by llinfeng
24 Feb 2021, 11:30
Forum: Ask for Help (v1)
Topic: groupactivate ahk_group for Firefox windows should summon a black window
Replies: 3
Views: 350

groupactivate ahk_group for Firefox windows should summon a black window

I use AHK to minimize and restore multiple Firefox windows. The restoring part is done by first creating a FireFox group (with groupadd) and calling groupactivate to loop through the multiple Firefox windows in the group. Starting from a recent Windows update, I find the Firefox windows I activate m...

Go to advanced search