Skip to content

Commit 722cdd8

Browse files
committed
Fix Hotkey Conflict
Fixed: Scroll Wheel Added: New Mouse Gestures
1 parent 7c34763 commit 722cdd8

File tree

3 files changed

+40
-9
lines changed

3 files changed

+40
-9
lines changed

HeyQuickKeyboard.exe

0 Bytes
Binary file not shown.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To run this script, you just need to execute the "HeyQuickKeyboard.exe". If you
2525

2626
You can find all the shortcuts that this script provides in the [Shortcuts](#shortcuts) section below. You can also quickize or change any of these shortcuts by editing the script file with a text editor and compile with [Ahk2Exe](https://github.com/AutoHotkey/Ahk2Exe).
2727

28-
## Shortcuts
28+
## Hotkeys
2929

3030
| Key Combination | Function | Action |
3131
| --------------- | -------- | ------ |
@@ -65,7 +65,7 @@ You can find all the shortcuts that this script provides in the [Shortcuts](#sho
6565
| RCtrl + Z | Left Click | Perform a mouse left click |
6666
| RCtrl + Y / Menu Key | Middle Click | Perform a mouse middle click |
6767
| RCtrl + C | Right Click | Perform a mouse right click |
68-
| Alt + Up/Down Arrow | Scroll Wheel | Scroll up or down |
68+
| Ctrl + Alt + Up/Down Arrow | Scroll Wheel | Scroll up or down |
6969

7070
## Contact
7171

@@ -81,4 +81,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
8181

8282
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8383

84-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
84+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

script/HeyQuickKeyboard.ahk

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
; Right Ctrl + Z = Left Click
4141
; Right Ctrl + Y = Middle Click
4242
; Right Ctrl + C = Right Click
43-
; Left Alt + Up/Down Arrow = Scroll Wheel
43+
; Ctrl + Left Alt + Up/Down Arrow = Scroll Wheel
4444

4545
; ==============================================================================================================================================================================================
4646
#NoEnv
@@ -60,15 +60,13 @@ update_traytip()
6060
if (A_IsSuspended)
6161
{
6262
Menu, Tray, Icon, Icon-disabled.ico, , 1
63-
SoundPlay, *16
6463
SplashImage,, M1 b fs12 cteb2a2a cwWhite x25 y25 w200, Disabled, Hey Quick Keyboard
6564
sleep, 1000
6665
Splashimage, off
6766
}
6867
else
6968
{
7069
Menu, Tray, Icon, Icon.ico, , 1
71-
SoundPlay, *48
7270
SplashImage,, M1 b fs12 ct009c1c cwWhite x25 y25 w200, Enabled, Hey Quick Keyboard
7371
sleep, 1000
7472
Splashimage, off
@@ -78,6 +76,7 @@ update_traytip()
7876
Return
7977
}
8078
update_traytip()
79+
get_mouse_position()
8180

8281
Menu, Tray, Add, Run on Startup, TrayRunStartup
8382
Menu, Tray, Default, Run on Startup
@@ -498,8 +497,8 @@ Send {MButton Up}
498497
return
499498
AppsKey::MButton
500499

501-
!Up::Send {WheelUp}
502-
!Down::Send {WheelDown}
500+
^!Up::Send {WheelUp}
501+
^!Down::Send {WheelDown}
503502

504503
RCtrl & Up::
505504
MouseSpeed += 3
@@ -540,6 +539,38 @@ RCtrl & M::
540539
MouseMove, (A_ScreenWidth // 2), (A_ScreenHeight // 2)
541540
Return
542541

542+
; If mouse position is on bottom left, simulate LWin
543+
get_mouse_position(){
544+
CoordMode, Mouse, Screen
545+
MouseGetPos, x, y
546+
if (x < 10) ; x >= A_ScreenWidth
547+
{
548+
if (y >= A_ScreenHeight)
549+
{
550+
Send, {LWin}
551+
sleep, 1000
552+
}
553+
}
554+
sleep, 50
555+
Return
556+
}
557+
; If left button clicked and mouse position is on bottom right, simulate LWin+M. If else left button clicked and mouse position is on top left, simulate LWin+Tab.
558+
~RButton::
559+
{
560+
CoordMode, Mouse, Screen
561+
MouseGetPos, x, y
562+
if (x >= A_ScreenWidth && y >= A_ScreenHeight)
563+
{
564+
Send {LWin Down}m{LWin Up}
565+
}
566+
else if (x < 10 && y < 10)
567+
{
568+
Send {LWin Down}{Tab}{LWin Up}
569+
}
570+
sleep, 50
571+
Return
572+
}
573+
543574
; Show the shortcuts --------------------------------------------------
544575
HelpLabel:
545576
hotkeyInfo := "Win + CapsLock to toggle it on or off`n`n"
@@ -585,7 +616,7 @@ hotkeyInfo .= "Right Ctrl + M = Move cursor in the middle`n"
585616
hotkeyInfo .= "Right Ctrl + Z = Left Click`n"
586617
hotkeyInfo .= "Right Ctrl + Y = Middle Click`n"
587618
hotkeyInfo .= "Right Ctrl + C = Right Click`n"
588-
hotkeyInfo .= "Left Alt + Up/Down Arrow = Scroll Wheel`n"
619+
hotkeyInfo .= "Ctrl + Left Alt + Up/Down Arrow = Scroll Wheel`n"
589620
MsgBox, 64, Hey Quick Keyboard v1.1, %hotkeyInfo%`nDeveloped by Halil Emre Yildiz`nGithub: @JahnStar, 20
590621
Run, https://github.com/JahnStar/Hey-Quick-Keyboard/
591622
return

0 commit comments

Comments
 (0)