From 5707c7746e9406f217c2a7cfee51715af7f15f5a Mon Sep 17 00:00:00 2001 From: Hane Date: Sun, 2 Jul 2023 16:08:42 +0200 Subject: [PATCH] mausuHoldo & piusareLite: slight cleanup / title added --- .gitignore | 4 ++++ mausuHoldo.ahk | 18 ++++++++++-------- piusareLite.ahk | 11 ++++++----- runscript.bat | 4 ++-- 4 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fa9b16f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.exe +temp* +*.lnk +build/ \ No newline at end of file diff --git a/mausuHoldo.ahk b/mausuHoldo.ahk index 4a1d640..40bdcb5 100644 --- a/mausuHoldo.ahk +++ b/mausuHoldo.ahk @@ -1,7 +1,7 @@ -;;TODO: comprobar puntero en local -;; ugly af lo de flagear para compartir un sincro sin sincro, bro. no creo que lo cambie xddd -;; -;;eveentos down del teclado no paraban de joder porque paraban el unico hilo, so _h it was, its threading time +;;KBD D events stop execution, so _H it is. + +Menu, Tray, Tip, Mouse On Keyboard + #MaxThreadsPerHotkey 2 #HotkeyInterval 10000 #MaxHotkeysPerInterval 9999 @@ -16,7 +16,7 @@ screenXExtraFactor := 1.02 screenYExtraFactor := 0.10 ;;DllCall("mouse_event", "UInt", 1, "UInt", (rightMov + lefMov) , "UInt", upMov + downMov ) -;;WINDOOOOOOOOOOOOOOOOOOOOOOOOOOOOOWS y ahk unaware del futuro de los escritorios +;;AHK unaware del futuro de los escritorios. ;;https://www.autohotkey.com/boards/viewtopic.php?t=97706 DllCall("SetThreadDpiAwarenessContext", "ptr", -3, "ptr") @@ -102,7 +102,8 @@ RAlt & LAlt:: updateRate := Floor(updateRate / ticksPerSecond) currentTime := currentTime ;;/ 1.0 baseTime := baseTime ;;/ 1.0 - + + ;;This do be Ugly AF. Probably gonna stay this way. obj := CriticalObject(A_Args[1]) lefMov := obj.lefMov @@ -157,8 +158,9 @@ h:: ;;SendInput, {RCtrl Down} return -;;tuckaway -;;targeting 1080p displays with taskbar on top. Should adapt to any single monitor setup. +;;Tuck away +;;TODO: comprobar puntero en local +;;Targeting 1080p displays with taskbar on top. Should adapt to any single monitor setup. sc01A:: ;;y:: ;;DllCall("ShowCursor", "Int", slowDown ) diff --git a/piusareLite.ahk b/piusareLite.ahk index 6e97b4c..fbad003 100644 --- a/piusareLite.ahk +++ b/piusareLite.ahk @@ -1,7 +1,8 @@ -;;TODO: GAMER MODE (lctrl toggle) -;; alt+spacebar liandola -;; -;;Use on admin windows without admin rights: https://www.autohotkey.com/docs/v1/Program.htm#Installer_uiAccess +;;Use on admin windows without admin rights: +;;https://www.autohotkey.com/docs/v1/Program.htm#Installer_uiAccess +;;https://www.autohotkey.com/board/topic/70449-enable-interaction-with-administrative-programs/ + +Menu, Tray, Tip, Keyboard Remappings #SingleInstance Force #MaxHotkeysPerInterval 9999 hotkeyLock := 0 @@ -25,7 +26,7 @@ sendCheckCapsLock(command, clCommand) CapsLock::LControl RShift & LShift::CapsLock LShift & RShift::CapsLock -LCtrl::AppsKey +;;LCtrl::AppsKey ;;*CapsLock::return return diff --git a/runscript.bat b/runscript.bat index d0bd29e..f2594a8 100644 --- a/runscript.bat +++ b/runscript.bat @@ -1,2 +1,2 @@ -START /B "C:\Program Files\AutoHotkey\AutoHotkey.exe" "D:\Contenido\Capybara\Cositas\piusare\mausu.ahk" -START /B "C:\Program Files\AutoHotkey\AutoHotkey.exe" "D:\Contenido\Capybara\Cositas\piusare\piusareLite.ahk" +START /B /D "." MouseOnKeyboard.exe +START /B "." KeyboardRemappings.exe