diff --git a/AutoHotkey_2.0.0/AutoHotkey.chm b/AutoHotkey.chm similarity index 100% rename from AutoHotkey_2.0.0/AutoHotkey.chm rename to AutoHotkey.chm diff --git a/AutoHotkey_2.0.0/AutoHotkey64.ahk b/AutoHotkey64.ahk similarity index 100% rename from AutoHotkey_2.0.0/AutoHotkey64.ahk rename to AutoHotkey64.ahk diff --git a/AutoHotkey_2.0.0/AutoHotkey64.exe b/AutoHotkey64.exe similarity index 100% rename from AutoHotkey_2.0.0/AutoHotkey64.exe rename to AutoHotkey64.exe diff --git a/AutoHotkeyU64.ahk b/AutoHotkeyU64.ahk deleted file mode 100644 index 7f82871..0000000 --- a/AutoHotkeyU64.ahk +++ /dev/null @@ -1,29 +0,0 @@ -#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 -#MaxHotkeysPerInterval 200 -#WinActivateForce -#InstallKeybdHook -#InstallMouseHook -; these 2 settings are killing the telegram starter, since the telegram process exists, -; just that it is hidden in the tray, instead of taskbar -; DetectHiddenWindows, On -; SetTitleMatchMode, 2 - -#MenuMaskKey vk07 - -; Change the icon in taskbar -; Ref: https://github.com/TaranVH/2nd-keyboard/blob/master/INFO_and_PROFILES/system32-shell32_dll.png -; Menu, Tray, Icon, shell32.dll, 303 ; changes tray icon to a check mark -; Menu, Tray, Icon, shell32.dll, 16 ; change tray icon to a little laptop -; Menu, Tray, Icon, shell32.dll, 321 ; change tray icon to a blue star -; Menu, Tray, Icon, shell32.dll, 44 ; change tray icon to a yellow star -Menu, Tray, Icon, resources/blueStar.ico - - -; rest of everything -#include lib/clipboard.ahk -#Include lib/libdebug.ahk -#Include lib/Tippy.ahk diff --git a/AutoHotkeyU64.exe b/AutoHotkeyU64.exe deleted file mode 100644 index e4b341d..0000000 Binary files a/AutoHotkeyU64.exe and /dev/null differ diff --git a/AutoHotkey_2.0.0.zip b/AutoHotkey_2.0.0.zip new file mode 100644 index 0000000..551e623 Binary files /dev/null and b/AutoHotkey_2.0.0.zip differ diff --git a/AutoHotkey_2.0.0/WinTitles.ahk b/AutoHotkey_2.0.0/WinTitles.ahk deleted file mode 100644 index 5b7a7dc..0000000 --- a/AutoHotkey_2.0.0/WinTitles.ahk +++ /dev/null @@ -1,23 +0,0 @@ -; WinTitle reference: https://autohotkey.com/docs/misc/WinTitle.htm#multi -class WinTitles -{ - static ModernApp := "ahk_class ApplicationFrameWindow ahk_exe ApplicationFrameHost.exe" - - static ModernSkype := [WinTitles.ModernApp, "Skype"] - static ModernPhotos := [WinTitles.ModernApp, "Photos"] - static Vlc := "ahk_exe vlc.exe" - static IntellijIdea := "ahk_exe idea64.exe" - static CorsairCUE := "ahk_class CUEBorderlessWindow ahk_exe iCUE.exe" - static BattleNet := "ahk_exe Battle.net.exe" - static Firefox := "ahk_class MozillaWindowClass" - static Chrome := "ahk_class Chrome_WidgetWin_1" - static Skype := "ahk_exe Skype.exe" - static TeamViewerSponsoredSession := "Sponsored session ahk_exe TeamViewer.exe" - static TeamViewer := "TeamViewer ahk_exe TeamViewer.exe" - static ACDSee := "ahk_exe ACDSeeProfessional2018.exe" - static Feces := "ahk_exe Teams.exe" - static Telegram := "ahk_exe telegram.exe ahk_class Qt5154QWindowIcon" - static SublimeText := "ahk_exe sublime_text.exe" - static tf2 := "ahk_exe hl2.exe" - static windowsCredentials := "Windows Security" -} diff --git a/AutoHotkey_2.0.0/WindowSpy.ahk b/AutoHotkey_2.0.0/WindowSpy.ahk deleted file mode 100644 index 2a9a294..0000000 --- a/AutoHotkey_2.0.0/WindowSpy.ahk +++ /dev/null @@ -1,2 +0,0 @@ -#Requires AutoHotkey v2.0-beta -#Include UX\WindowSpy.ahk \ No newline at end of file diff --git a/AutoHotkey_2.0.0/lib/clipboard.ahk b/AutoHotkey_2.0.0/lib/clipboard.ahk deleted file mode 100644 index 4979473..0000000 --- a/AutoHotkey_2.0.0/lib/clipboard.ahk +++ /dev/null @@ -1,16 +0,0 @@ -saveClipboard() { - ; Try is needed because I get an error "can't open clipboard for reading" while lock screen is on - Try { - global __ClipboardSaved := ClipboardAll() - A_Clipboard := "" - } -} - -restoreClipboard() -{ - Try { - global __ClipboardSaved - A_Clipboard := __ClipboardSaved ; Restore Clipboard - __ClipboardSaved := "" - } -} diff --git a/AutoHotkey_2.0.0/resources/blueStar.ico b/AutoHotkey_2.0.0/resources/blueStar.ico deleted file mode 100644 index 08f83ad..0000000 Binary files a/AutoHotkey_2.0.0/resources/blueStar.ico and /dev/null differ diff --git a/AutoHotkey_2.0.0/CapsLockToggle.ahk b/CapsLockToggle.ahk similarity index 100% rename from AutoHotkey_2.0.0/CapsLockToggle.ahk rename to CapsLockToggle.ahk diff --git a/AutoHotkey_2.0.0/Install.cmd b/Install.cmd similarity index 100% rename from AutoHotkey_2.0.0/Install.cmd rename to Install.cmd diff --git a/AutoHotkey_2.0.0/UX/Templates/Minimal for v2.ahk b/UX/Templates/Minimal for v2.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/Templates/Minimal for v2.ahk rename to UX/Templates/Minimal for v2.ahk diff --git a/AutoHotkey_2.0.0/UX/WindowSpy.ahk b/UX/WindowSpy.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/WindowSpy.ahk rename to UX/WindowSpy.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/CommandLineToArgs.ahk b/UX/inc/CommandLineToArgs.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/CommandLineToArgs.ahk rename to UX/inc/CommandLineToArgs.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/CreateAppShortcut.ahk b/UX/inc/CreateAppShortcut.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/CreateAppShortcut.ahk rename to UX/inc/CreateAppShortcut.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/EnableUIAccess.ahk b/UX/inc/EnableUIAccess.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/EnableUIAccess.ahk rename to UX/inc/EnableUIAccess.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/GetGitHubReleaseAssetURL.ahk b/UX/inc/GetGitHubReleaseAssetURL.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/GetGitHubReleaseAssetURL.ahk rename to UX/inc/GetGitHubReleaseAssetURL.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/HashFile.ahk b/UX/inc/HashFile.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/HashFile.ahk rename to UX/inc/HashFile.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/README.txt b/UX/inc/README.txt similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/README.txt rename to UX/inc/README.txt diff --git a/AutoHotkey_2.0.0/UX/inc/ShellRun.ahk b/UX/inc/ShellRun.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/ShellRun.ahk rename to UX/inc/ShellRun.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/bounce-v1.ahk b/UX/inc/bounce-v1.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/bounce-v1.ahk rename to UX/inc/bounce-v1.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/common.ahk b/UX/inc/common.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/common.ahk rename to UX/inc/common.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/config.ahk b/UX/inc/config.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/config.ahk rename to UX/inc/config.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/identify.ahk b/UX/inc/identify.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/identify.ahk rename to UX/inc/identify.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/identify_regex.ahk b/UX/inc/identify_regex.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/identify_regex.ahk rename to UX/inc/identify_regex.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/launcher-common.ahk b/UX/inc/launcher-common.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/launcher-common.ahk rename to UX/inc/launcher-common.ahk diff --git a/AutoHotkey_2.0.0/UX/inc/spy.ico b/UX/inc/spy.ico similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/spy.ico rename to UX/inc/spy.ico diff --git a/AutoHotkey_2.0.0/UX/inc/ui-base.ahk b/UX/inc/ui-base.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/inc/ui-base.ahk rename to UX/inc/ui-base.ahk diff --git a/AutoHotkey_2.0.0/UX/install-ahk2exe.ahk b/UX/install-ahk2exe.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/install-ahk2exe.ahk rename to UX/install-ahk2exe.ahk diff --git a/AutoHotkey_2.0.0/UX/install-version.ahk b/UX/install-version.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/install-version.ahk rename to UX/install-version.ahk diff --git a/AutoHotkey_2.0.0/UX/install.ahk b/UX/install.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/install.ahk rename to UX/install.ahk diff --git a/AutoHotkey_2.0.0/UX/launcher.ahk b/UX/launcher.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/launcher.ahk rename to UX/launcher.ahk diff --git a/AutoHotkey_2.0.0/UX/reload-v1.ahk b/UX/reload-v1.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/reload-v1.ahk rename to UX/reload-v1.ahk diff --git a/AutoHotkey_2.0.0/UX/reset-assoc.ahk b/UX/reset-assoc.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/reset-assoc.ahk rename to UX/reset-assoc.ahk diff --git a/AutoHotkey_2.0.0/UX/ui-dash.ahk b/UX/ui-dash.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/ui-dash.ahk rename to UX/ui-dash.ahk diff --git a/AutoHotkey_2.0.0/UX/ui-editor.ahk b/UX/ui-editor.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/ui-editor.ahk rename to UX/ui-editor.ahk diff --git a/AutoHotkey_2.0.0/UX/ui-launcherconfig.ahk b/UX/ui-launcherconfig.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/ui-launcherconfig.ahk rename to UX/ui-launcherconfig.ahk diff --git a/AutoHotkey_2.0.0/UX/ui-newscript.ahk b/UX/ui-newscript.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/ui-newscript.ahk rename to UX/ui-newscript.ahk diff --git a/AutoHotkey_2.0.0/UX/ui-setup.ahk b/UX/ui-setup.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/ui-setup.ahk rename to UX/ui-setup.ahk diff --git a/AutoHotkey_2.0.0/UX/ui-uninstall.ahk b/UX/ui-uninstall.ahk similarity index 100% rename from AutoHotkey_2.0.0/UX/ui-uninstall.ahk rename to UX/ui-uninstall.ahk diff --git a/WinTitles.ahk b/WinTitles.ahk index cafda53..5b7a7dc 100644 --- a/WinTitles.ahk +++ b/WinTitles.ahk @@ -6,7 +6,6 @@ class WinTitles static ModernSkype := [WinTitles.ModernApp, "Skype"] static ModernPhotos := [WinTitles.ModernApp, "Photos"] static Vlc := "ahk_exe vlc.exe" - static Goland := "ahk_exe goland64.exe" static IntellijIdea := "ahk_exe idea64.exe" static CorsairCUE := "ahk_class CUEBorderlessWindow ahk_exe iCUE.exe" static BattleNet := "ahk_exe Battle.net.exe" @@ -16,7 +15,7 @@ class WinTitles static TeamViewerSponsoredSession := "Sponsored session ahk_exe TeamViewer.exe" static TeamViewer := "TeamViewer ahk_exe TeamViewer.exe" static ACDSee := "ahk_exe ACDSeeProfessional2018.exe" - static MsTeams := "ahk_exe Teams.exe" + static Feces := "ahk_exe Teams.exe" static Telegram := "ahk_exe telegram.exe ahk_class Qt5154QWindowIcon" static SublimeText := "ahk_exe sublime_text.exe" static tf2 := "ahk_exe hl2.exe" diff --git a/WindowSpy.ahk b/WindowSpy.ahk index 4ede5d0..2a9a294 100644 --- a/WindowSpy.ahk +++ b/WindowSpy.ahk @@ -1,212 +1,2 @@ -; -; Window Spy -; - -#NoEnv -#NoTrayIcon -#SingleInstance Ignore -SetWorkingDir, %A_ScriptDir% -SetBatchLines, -1 -CoordMode, Pixel, Screen - -txtNotFrozen := "(Hold Ctrl or Shift to suspend updates)" -txtFrozen := "(Updates suspended)" -txtMouseCtrl := "Control Under Mouse Position" -txtFocusCtrl := "Focused Control" - -Gui, New, hwndhGui AlwaysOnTop Resize MinSize -Gui, Add, Text,, Window Title, Class and Process: -Gui, Add, Checkbox, yp xp+200 w120 Right vCtrl_FollowMouse, Follow Mouse -Gui, Add, Edit, xm w320 r4 ReadOnly -Wrap vCtrl_Title -Gui, Add, Text,, Mouse Position: -Gui, Add, Edit, w320 r4 ReadOnly vCtrl_MousePos -Gui, Add, Text, w320 vCtrl_CtrlLabel, % txtFocusCtrl ":" -Gui, Add, Edit, w320 r4 ReadOnly vCtrl_Ctrl -Gui, Add, Text,, Active Window Position: -Gui, Add, Edit, w320 r2 ReadOnly vCtrl_Pos -Gui, Add, Text,, Status Bar Text: -Gui, Add, Edit, w320 r2 ReadOnly vCtrl_SBText -Gui, Add, Checkbox, vCtrl_IsSlow, Slow TitleMatchMode -Gui, Add, Text,, Visible Text: -Gui, Add, Edit, w320 r2 ReadOnly vCtrl_VisText -Gui, Add, Text,, All Text: -Gui, Add, Edit, w320 r2 ReadOnly vCtrl_AllText -Gui, Add, Text, w320 r1 vCtrl_Freeze, % txtNotFrozen -Gui, Show, NoActivate, Window Spy -GetClientSize(hGui, temp) -horzMargin := temp*96//A_ScreenDPI - 320 -SetTimer, Update, 250 -return - -GuiSize: -Gui %hGui%:Default -if !horzMargin - return -SetTimer, Update, % A_EventInfo=1 ? "Off" : "On" ; Suspend on minimize -ctrlW := A_GuiWidth - horzMargin -list = Title,MousePos,Ctrl,Pos,SBText,VisText,AllText,Freeze -Loop, Parse, list, `, - GuiControl, Move, Ctrl_%A_LoopField%, w%ctrlW% -return - -Update: -Gui %hGui%:Default -GuiControlGet, Ctrl_FollowMouse -CoordMode, Mouse, Screen -MouseGetPos, msX, msY, msWin, msCtrl -actWin := WinExist("A") -if Ctrl_FollowMouse -{ - curWin := msWin - curCtrl := msCtrl - WinExist("ahk_id " curWin) -} -else -{ - curWin := actWin - ControlGetFocus, curCtrl -} -WinGetTitle, t1 -WinGetClass, t2 -if (curWin = hGui || t2 = "MultitaskingViewFrame") ; Our Gui || Alt-tab -{ - UpdateText("Ctrl_Freeze", txtFrozen) - return -} -UpdateText("Ctrl_Freeze", txtNotFrozen) -WinGet, t3, ProcessName -WinGet, t4, PID -UpdateText("Ctrl_Title", t1 "`nahk_class " t2 "`nahk_exe " t3 "`nahk_pid " t4) -CoordMode, Mouse, Relative -MouseGetPos, mrX, mrY -CoordMode, Mouse, Client -MouseGetPos, mcX, mcY -PixelGetColor, mClr, %msX%, %msY%, RGB -mClr := SubStr(mClr, 3) -UpdateText("Ctrl_MousePos", "Screen:`t" msX ", " msY " (less often used)`nWindow:`t" mrX ", " mrY " (default)`nClient:`t" mcX ", " mcY " (recommended)" - . "`nColor:`t" mClr " (Red=" SubStr(mClr, 1, 2) " Green=" SubStr(mClr, 3, 2) " Blue=" SubStr(mClr, 5) ")") -UpdateText("Ctrl_CtrlLabel", (Ctrl_FollowMouse ? txtMouseCtrl : txtFocusCtrl) ":") -if (curCtrl) -{ - ControlGetText, ctrlTxt, %curCtrl% - cText := "ClassNN:`t" curCtrl "`nText:`t" textMangle(ctrlTxt) - ControlGetPos cX, cY, cW, cH, %curCtrl% - cText .= "`n`tx: " cX "`ty: " cY "`tw: " cW "`th: " cH - WinToClient(curWin, cX, cY) - ControlGet, curCtrlHwnd, Hwnd,, % curCtrl - GetClientSize(curCtrlHwnd, cW, cH) - cText .= "`nClient:`tx: " cX "`ty: " cY "`tw: " cW "`th: " cH -} -else - cText := "" -UpdateText("Ctrl_Ctrl", cText) -WinGetPos, wX, wY, wW, wH -GetClientSize(curWin, wcW, wcH) -UpdateText("Ctrl_Pos", "`tx: " wX "`ty: " wY "`tw: " wW "`th: " wH "`nClient:`tx: 0`ty: 0`tw: " wcW "`th: " wcH) -sbTxt := "" -Loop -{ - StatusBarGetText, ovi, %A_Index% - if ovi = - break - sbTxt .= "(" A_Index "):`t" textMangle(ovi) "`n" -} -StringTrimRight, sbTxt, sbTxt, 1 -UpdateText("Ctrl_SBText", sbTxt) -GuiControlGet, bSlow,, Ctrl_IsSlow -if bSlow -{ - DetectHiddenText, Off - WinGetText, ovVisText - DetectHiddenText, On - WinGetText, ovAllText -} -else -{ - ovVisText := WinGetTextFast(false) - ovAllText := WinGetTextFast(true) -} -UpdateText("Ctrl_VisText", ovVisText) -UpdateText("Ctrl_AllText", ovAllText) -return - -GuiClose: -ExitApp - -WinGetTextFast(detect_hidden) -{ - ; WinGetText ALWAYS uses the "Slow" mode - TitleMatchMode only affects the - ; WinText/ExcludeText parameters. In "Fast" mode, GetWindowText() is used - ; to retrieve the text of each control. - WinGet controls, ControlListHwnd - static WINDOW_TEXT_SIZE := 32767 ; Defined in AutoHotkey source. - VarSetCapacity(buf, WINDOW_TEXT_SIZE * (A_IsUnicode ? 2 : 1)) - text := "" - Loop Parse, controls, `n - { - if !detect_hidden && !DllCall("IsWindowVisible", "ptr", A_LoopField) - continue - if !DllCall("GetWindowText", "ptr", A_LoopField, "str", buf, "int", WINDOW_TEXT_SIZE) - continue - text .= buf "`r`n" - } - return text -} - -UpdateText(ControlID, NewText) -{ - ; Unlike using a pure GuiControl, this function causes the text of the - ; controls to be updated only when the text has changed, preventing periodic - ; flickering (especially on older systems). - static OldText := {} - global hGui - if (OldText[ControlID] != NewText) - { - GuiControl, %hGui%:, % ControlID, % NewText - OldText[ControlID] := NewText - } -} - -GetClientSize(hWnd, ByRef w := "", ByRef h := "") -{ - VarSetCapacity(rect, 16) - DllCall("GetClientRect", "ptr", hWnd, "ptr", &rect) - w := NumGet(rect, 8, "int") - h := NumGet(rect, 12, "int") -} - -WinToClient(hWnd, ByRef x, ByRef y) -{ - WinGetPos wX, wY,,, ahk_id %hWnd% - x += wX, y += wY - VarSetCapacity(pt, 8), NumPut(y, NumPut(x, pt, "int"), "int") - if !DllCall("ScreenToClient", "ptr", hWnd, "ptr", &pt) - return false - x := NumGet(pt, 0, "int"), y := NumGet(pt, 4, "int") - return true -} - -textMangle(x) -{ - if pos := InStr(x, "`n") - x := SubStr(x, 1, pos-1), elli := true - if StrLen(x) > 40 - { - StringLeft, x, x, 40 - elli := true - } - if elli - x .= " (...)" - return x -} - -~*Ctrl:: -~*Shift:: -SetTimer, Update, Off -UpdateText("Ctrl_Freeze", txtFrozen) -return - -~*Ctrl up:: -~*Shift up:: -SetTimer, Update, On -return +#Requires AutoHotkey v2.0-beta +#Include UX\WindowSpy.ahk \ No newline at end of file diff --git a/AutoHotkey_2.0.0/XmgFusion15.ahk b/XmgFusion15.ahk similarity index 100% rename from AutoHotkey_2.0.0/XmgFusion15.ahk rename to XmgFusion15.ahk diff --git a/AutoHotkey_2.0.0/app_handling.ahk b/app_handling.ahk similarity index 100% rename from AutoHotkey_2.0.0/app_handling.ahk rename to app_handling.ahk diff --git a/AutoHotkey_2.0.0/hotstrings/GenericHotstrings.ahk b/hotstrings/GenericHotstrings.ahk similarity index 100% rename from AutoHotkey_2.0.0/hotstrings/GenericHotstrings.ahk rename to hotstrings/GenericHotstrings.ahk diff --git a/AutoHotkey_2.0.0/hotstrings/MarkdownEmoji.ahk b/hotstrings/MarkdownEmoji.ahk similarity index 100% rename from AutoHotkey_2.0.0/hotstrings/MarkdownEmoji.ahk rename to hotstrings/MarkdownEmoji.ahk diff --git a/AutoHotkey_2.0.0/hotstrings/MarkdownHotstrings.ahk b/hotstrings/MarkdownHotstrings.ahk similarity index 100% rename from AutoHotkey_2.0.0/hotstrings/MarkdownHotstrings.ahk rename to hotstrings/MarkdownHotstrings.ahk diff --git a/AutoHotkey_2.0.0/hotstrings/ResetHotstrings.ahk b/hotstrings/ResetHotstrings.ahk similarity index 100% rename from AutoHotkey_2.0.0/hotstrings/ResetHotstrings.ahk rename to hotstrings/ResetHotstrings.ahk diff --git a/AutoHotkey_2.0.0/lib/ReloadScript.ahk b/lib/ReloadScript.ahk similarity index 100% rename from AutoHotkey_2.0.0/lib/ReloadScript.ahk rename to lib/ReloadScript.ahk diff --git a/lib/Tippy.ahk b/lib/Tippy.ahk index 96cf273..0646a24 100644 --- a/lib/Tippy.ahk +++ b/lib/Tippy.ahk @@ -1,3 +1,6 @@ +todo: better position changing: https://learn.microsoft.com/en-us/windows/win32/controls/implement-tracking-tooltips + + ; Show a ToolTip which follows the mouse for a specific duration. ; Multiple ToolTips are stacked vertically, so no information is hidden. ; diff --git a/lib/clipboard.ahk b/lib/clipboard.ahk index 7cc3ef6..4979473 100644 --- a/lib/clipboard.ahk +++ b/lib/clipboard.ahk @@ -1,16 +1,16 @@ -saveClipboard() -{ +saveClipboard() { ; Try is needed because I get an error "can't open clipboard for reading" while lock screen is on Try { - global ClipSaved := ClipboardAll - clipboard := "" + global __ClipboardSaved := ClipboardAll() + A_Clipboard := "" } } restoreClipboard() { Try { - global ClipSaved - Clipboard := ClipSaved ; Restore Clipboard + global __ClipboardSaved + A_Clipboard := __ClipboardSaved ; Restore Clipboard + __ClipboardSaved := "" } } diff --git a/lib/libdebug.ahk b/lib/libdebug.ahk index d0a70cb..36d6972 100644 --- a/lib/libdebug.ahk +++ b/lib/libdebug.ahk @@ -1,4 +1,4 @@ -#include +#include ;------------------------------------------------