|
4 | 4 | ; 添加当前状态判断 |
5 | 5 | ; 解决问题:重命名文件夹和输入链接时,←和→被覆盖,导致移动光标出问题 |
6 | 6 |
|
| 7 | +; 无法获取当前的键盘布局,是84键,104键盘,笔记本布局 |
| 8 | +; 根据主机名来判断当前的键盘布局 |
| 9 | +currentComputerName := A_ComputerName |
| 10 | + |
7 | 11 | state := "Normal" |
8 | 12 |
|
9 | 13 | #If WinActive("ahk_exe Q-Dir_x64.exe") and (state = "Normal") |
@@ -98,13 +102,21 @@ Return |
98 | 102 | ; Simulate an event that clicking on the search box of TIM.exe. |
99 | 103 | #If WinActive("ahk_exe TIM.EXE") |
100 | 104 | ^F:: |
101 | | -ControlClick, x200 y80, ahk_exe TIM.EXE,, Left, 1 |
| 105 | + if (currentComputerName = "P14") { |
| 106 | + ControlClick, x200 y80, ahk_exe TIM.EXE,, Left, 1 |
| 107 | + } else { |
| 108 | + ControlClick, x123 y53, ahk_exe TIM.EXE,, Left, 1 |
| 109 | + } |
102 | 110 | Return |
103 | 111 |
|
104 | 112 | ; Simulate an event that clicking on the search box of OneMessage.exe. |
105 | 113 | #If WinActive("ahk_exe OneMessage.exe") |
106 | 114 | ^F:: |
107 | | - ControlClick, x200 y50, ahk_exe OneMessage.exe,, Left, 1 |
| 115 | + if (currentComputerName = "P14") { |
| 116 | + ControlClick, x200 y50, ahk_exe OneMessage.exe,, Left, 1 |
| 117 | + } else { |
| 118 | + ControlClick, x100 y45, ahk_exe OneMessage.exe,, Left, 1 |
| 119 | + } |
108 | 120 | Return |
109 | 121 |
|
110 | 122 | ; Simulate an event that close the window |
|
0 commit comments