Update
This commit is contained in:
33
Echo.ahk
33
Echo.ahk
@@ -1,5 +1,4 @@
|
|||||||
#NoEnv
|
#NoEnv
|
||||||
#Warn
|
|
||||||
SendMode Input
|
SendMode Input
|
||||||
SetWorkingDir %A_ScriptDir%
|
SetWorkingDir %A_ScriptDir%
|
||||||
#SingleInstance force
|
#SingleInstance force
|
||||||
@@ -63,6 +62,8 @@ OnKeyDown(InputHook, VK, SC) {
|
|||||||
if (whitelistKeys.HasKey(key)) {
|
if (whitelistKeys.HasKey(key)) {
|
||||||
for k, v in enabledWindows[1] {
|
for k, v in enabledWindows[1] {
|
||||||
; ControlSend,, {%key% down}, ahk_pid %v%
|
; ControlSend,, {%key% down}, ahk_pid %v%
|
||||||
|
; Random, rand, 50, 2000
|
||||||
|
; Sleep %rand%
|
||||||
ControlSend,, {%key% down}, ahk_id %v%
|
ControlSend,, {%key% down}, ahk_id %v%
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -72,6 +73,14 @@ OnKeyDown(InputHook, VK, SC) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
; ~LButton::
|
||||||
|
; MouseGetPos, xpos, ypos
|
||||||
|
; for k, v in enabledWindows[1] {
|
||||||
|
; ControlClick, xpos ypos, ahk_id %v%
|
||||||
|
; ControlClick,, {%key% down}, ahk_id %v%
|
||||||
|
; }
|
||||||
|
; return
|
||||||
|
|
||||||
OnKeyUp(InputHook, VK, SC) {
|
OnKeyUp(InputHook, VK, SC) {
|
||||||
if (!paused) {
|
if (!paused) {
|
||||||
key := GetKeyName(Format("vk{:x}sc{:x}", VK, SC))
|
key := GetKeyName(Format("vk{:x}sc{:x}", VK, SC))
|
||||||
@@ -327,12 +336,12 @@ F4::
|
|||||||
removeNext := 1
|
removeNext := 1
|
||||||
return
|
return
|
||||||
|
|
||||||
^!S::
|
^!X::
|
||||||
ShowTooltip("Adding window")
|
ShowTooltip("Adding window")
|
||||||
AddCurrentWindow()
|
AddCurrentWindow()
|
||||||
return
|
return
|
||||||
|
|
||||||
^!D::
|
^!C::
|
||||||
ShowTooltip("Removing window")
|
ShowTooltip("Removing window")
|
||||||
RemoveCurrentWindow()
|
RemoveCurrentWindow()
|
||||||
Return
|
Return
|
||||||
@@ -341,24 +350,6 @@ F6::
|
|||||||
TogglePause()
|
TogglePause()
|
||||||
return
|
return
|
||||||
|
|
||||||
F7::
|
|
||||||
whitelistKeys["q"] := 1
|
|
||||||
whitelistKeys["e"] := 1
|
|
||||||
whitelistKeys[1] := 1
|
|
||||||
whitelistKeys[2] := 1
|
|
||||||
whitelistKeys[3] := 1
|
|
||||||
whitelistKeys[4] := 1
|
|
||||||
whitelistKeys[5] := 1
|
|
||||||
whitelistKeys["LShift"] := 1
|
|
||||||
whitelistKeys["LControl"] := 1
|
|
||||||
whitelistKeys["g"] := 1
|
|
||||||
whitelistKeys["v"] := 1
|
|
||||||
whitelistKeys["r"] := 1
|
|
||||||
whitelistKeys["f"] := 1
|
|
||||||
whitelistKeys["c"] := 1
|
|
||||||
whitelistKeys["y"] := 1
|
|
||||||
return
|
|
||||||
|
|
||||||
ButtonSave:
|
ButtonSave:
|
||||||
Gui, Submit
|
Gui, Submit
|
||||||
WhitelistKeys(KeyLogUI)
|
WhitelistKeys(KeyLogUI)
|
||||||
|
9
MouseTest.ahk
Normal file
9
MouseTest.ahk
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#NoEnv
|
||||||
|
SetBatchLines, -1
|
||||||
|
#InstallMouseHook
|
||||||
|
|
||||||
|
; Mouse button event handlers
|
||||||
|
~LButton::
|
||||||
|
MouseGetPos, xpos, ypos
|
||||||
|
ToolTip, %xpos% %ypos%
|
||||||
|
return
|
Reference in New Issue
Block a user