diff --git a/Windows/Scripts/ArgMoveTaskbar.ahk b/Windows/Scripts/ArgMoveTaskbar.ahk new file mode 100644 index 0000000..1350fc3 --- /dev/null +++ b/Windows/Scripts/ArgMoveTaskbar.ahk @@ -0,0 +1,43 @@ +; +#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. +SendMode Input ; Recommended for new scripts due to its superior speed and reliability. +SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. +#SingleInstance force + +TaskbarMove(A_Args[1]) + +TaskbarMove(p_pos) { +label:="TaskbarMove_" p_pos + +WinExist("ahk_class Shell_TrayWnd") +SysGet, s, Monitor + +if (IsLabel(label)) { +Goto, %label% +} +return + +TaskbarMove_Top: +TaskbarMove_Bottom: +WinMove(sLeft, s%p_pos%, sRight, 0) +return + +TaskbarMove_Left: +TaskbarMove_Right: +WinMove(s%p_pos%, sTop, 0, sBottom) +return +} + +WinMove(p_x, p_y, p_w="", p_h="", p_hwnd="") { +WM_ENTERSIZEMOVE:=0x0231 +WM_EXITSIZEMOVE :=0x0232 + +if (p_hwnd!="") { +WinExist("ahk_id " p_hwnd) +} + +SendMessage, WM_ENTERSIZEMOVE +;//Tooltip WinMove(%p_x%`, %p_y%`, %p_w%`, %p_h%) +WinMove, , , p_x, p_y, p_w, p_h +SendMessage, WM_EXITSIZEMOVE +} \ No newline at end of file diff --git a/Windows/Scripts/ArgSetTabletMode.ahk b/Windows/Scripts/ArgSetTabletMode.ahk new file mode 100644 index 0000000..7e5ffb5 --- /dev/null +++ b/Windows/Scripts/ArgSetTabletMode.ahk @@ -0,0 +1,16 @@ +#NoEnv +SetBatchLines -1 +ListLines Off +#NoTrayIcon + +TabletModeController_SetMode(TabletModeController, _TABLETMODESTATE, _TMCTRIGGER := 4) { + return DllCall(NumGet(NumGet(TabletModeController+0),4*A_PtrSize), "Ptr", TabletModeController, "UInt", _TABLETMODESTATE, "UInt", _TMCTRIGGER) +} + +ImmersiveShell := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{00000000-0000-0000-C000-000000000046}") +TabletModeController := ComObjQuery(ImmersiveShell, "{4fda780a-acd2-41f7-b4f2-ebe674c9bf2a}", "{4fda780a-acd2-41f7-b4f2-ebe674c9bf2a}") + +TabletModeController_SetMode(TabletModeController, A_Args[1]) + +ObjRelease(TabletModeController), TabletModeController := 0 +ObjRelease(ImmersiveShell), ImmersiveShell := 0 \ No newline at end of file diff --git a/Windows/Scripts/Earnapp via net_updater32.cmd b/Windows/Scripts/Earnapp via net_updater32.cmd new file mode 100644 index 0000000..5c60e9c --- /dev/null +++ b/Windows/Scripts/Earnapp via net_updater32.cmd @@ -0,0 +1 @@ +"C:\Program Files (x86)\EarnApp\net_updater32.exe" --start-service win_earnapp.com \ No newline at end of file diff --git a/Windows/Scripts/KeyToRightClick.ahk b/Windows/Scripts/KeyToRightClick.ahk new file mode 100644 index 0000000..69347c8 --- /dev/null +++ b/Windows/Scripts/KeyToRightClick.ahk @@ -0,0 +1,2 @@ +#Requires AutoHotkey v2.0 +#0:: Send "{Click Right}" \ No newline at end of file diff --git a/Windows/Scripts/LeftToRightMouseClick.ahk b/Windows/Scripts/LeftToRightMouseClick.ahk new file mode 100644 index 0000000..e2bc9b2 --- /dev/null +++ b/Windows/Scripts/LeftToRightMouseClick.ahk @@ -0,0 +1,28 @@ +#Requires AutoHotkey v2.0 +Persistent +; + +HotKey("LButton", LeftClickActions) +LeftClickActions(key) +{ + Send "{Click Right}" + InfoTooltip(false) + HotKey("LButton", "Off") +} +HotKey("LButton", "Off") + +OnMessage(0x404, AHK_NOTIFYICON) +AHK_NOTIFYICON(wParam, lParam, uMsg, hWnd) +{ + if (lParam = 0x201) ; WM_LBUTTONDOWN + { + HotKey("LButton", "On") + InfoTooltip(true) + } +} + +InfoTooltip(status) +{ + ToolTip (status ? "Right click action is temporarily active." : "Right cick action is now disabled.") + SetTimer () => ToolTip(), -1000 +} \ No newline at end of file diff --git a/Windows/Scripts/MoveTaskbar.ps1 b/Windows/Scripts/MoveTaskbar.ps1 new file mode 100644 index 0000000..0b6526d --- /dev/null +++ b/Windows/Scripts/MoveTaskbar.ps1 @@ -0,0 +1,11 @@ +$Positions = New-Object 'system.collections.generic.dictionary[int,int]' +$Positions[0] = 3 # Left to Bottom +$Positions[3] = 0 # Bottom to Left + +$Path = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3" +$Name = "Settings" +$Settings = (Get-ItemProperty -Path $Path -Name $Name).Settings +$Settings[12] = $Positions[$Settings[12]] +Set-ItemProperty -Path $Path -Name $Name -Value $Settings + +Stop-Process -Name "explorer" # Restart explorer \ No newline at end of file diff --git a/Windows/Scripts/RemoteSessionDesktopTweaks.ahk b/Windows/Scripts/RemoteSessionDesktopTweaks.ahk new file mode 100644 index 0000000..7d8ef26 --- /dev/null +++ b/Windows/Scripts/RemoteSessionDesktopTweaks.ahk @@ -0,0 +1,5 @@ +#Requires AutoHotkey v2.0 +ScreenWidth := SysGet(78) +IsCompactDevice := (ScreenWidth < 640) +Run(A_ScriptDir . "\ArgSetTabletMode.ahk " . IsCompactDevice) +Run(A_ScriptDir . "\ArgMoveTaskbar.ahk " . (IsCompactDevice ? "Left" : "Bottom")) \ No newline at end of file diff --git a/Windows/Scripts/SpecialKeysITA.ahk b/Windows/Scripts/SpecialKeysITA.ahk new file mode 100644 index 0000000..d368fc0 --- /dev/null +++ b/Windows/Scripts/SpecialKeysITA.ahk @@ -0,0 +1,3 @@ +#Requires AutoHotkey v2.0 +<^>!'::` +<^>!ì::~ \ No newline at end of file diff --git a/Windows/Scripts/ToggleTabletMode.ahk b/Windows/Scripts/ToggleTabletMode.ahk new file mode 100644 index 0000000..63d9c45 --- /dev/null +++ b/Windows/Scripts/ToggleTabletMode.ahk @@ -0,0 +1,24 @@ +; +#NoEnv +SetBatchLines -1 +ListLines Off +#NoTrayIcon +TABLETMODESTATE_DESKTOPMODE := 0x0 +TABLETMODESTATE_TABLETMODE := 0x1 + +TabletModeController_GetMode(TabletModeController, ByRef mode) { + return DllCall(NumGet(NumGet(TabletModeController+0),3*A_PtrSize), "Ptr", TabletModeController, "UInt*", mode) +} + +TabletModeController_SetMode(TabletModeController, _TABLETMODESTATE, _TMCTRIGGER := 4) { + return DllCall(NumGet(NumGet(TabletModeController+0),4*A_PtrSize), "Ptr", TabletModeController, "UInt", _TABLETMODESTATE, "UInt", _TMCTRIGGER) +} + +ImmersiveShell := ComObjCreate("{C2F03A33-21F5-47FA-B4BB-156362A2F239}", "{00000000-0000-0000-C000-000000000046}") +TabletModeController := ComObjQuery(ImmersiveShell, "{4fda780a-acd2-41f7-b4f2-ebe674c9bf2a}", "{4fda780a-acd2-41f7-b4f2-ebe674c9bf2a}") + +if (TabletModeController_GetMode(TabletModeController, mode) == 0) + TabletModeController_SetMode(TabletModeController, mode == TABLETMODESTATE_DESKTOPMODE ? TABLETMODESTATE_TABLETMODE : TABLETMODESTATE_DESKTOPMODE) + +ObjRelease(TabletModeController), TabletModeController := 0 +ObjRelease(ImmersiveShell), ImmersiveShell := 0 ; Can be freed after TabletModeController is created, instead \ No newline at end of file