Lines marked with (*change*?) often concern the position of tooltip and InputBoxes relative to the mouse position ; The file 35_Coordinates.ahk is included to make operations in MuseScore still possible ♣================================================================================================== Images used in IHK-macro group: IM_01_Inspector_Inspector.png IM_18_Inspector_Triangle_Closed.png Statusbar_Note_Pitch.png Statusbar_Rest.png CTS_Checked_ticked_sign.png Palette_Locator_Left.png Palette_Locator_Right.png by way of example: Google_Ik_Ga_Akkoord.png This is the Dutch version of allowing Google to put cookies ; ♣================================================================================================ Legenda Modifier keys ^ Control ! Alt + Shift # Win Hotspots IN_002_X/Y means IN_002_X and IN_002_Y Surfaces CSA_X/Y1 CSA_X1 CSA_Y1 TLC TopLeftCorner CSA_X/Y2 CSA_X2 CSA_Y2 BRC BottomRightCorner For all StatusBar images is the Search Area SB_X/Y1 SB_X/Y2 ♣================================================================================================== ToolT_IHK_X, 0, 1 ; tooltip (1) Independent Hotkeys ~\ & Ins:: ; Browser Chrome -> Google -> Ik ga akkoord ImageSearch, X, Y, % CSA_X1, % CSA_Y1, % CSA_X2, % CSA_Y2, Google_Ik_Ga_Akkoord.png ~[ & ':: ; Reload Independent Hotkeys ~\ & m:: ; run Master MuseScore ~\ & h:: ; Help Independent Hotkeys ; ♣================================= X-BUTTONS for COPY/PASTE ===================================== XButton1::Send ^c ; copy XButton2::Send ^v ; paste ; ♣====================== RIGHTCLICK when kbd misses Apps Key ===================================== ; Click on centre desktop with Z + 3 to activate the Program Manager ; select desktop item with letter or number ; rightclick, rightclick desktop items when mouse is over them ; In Explorer: the hotkey rightclicks highlighted items ~/ & .:: ; right click If WinActive("ahk_exe MuseScore3.exe") ; / + . same command in PixelMousing - rightclick ; NB PixM is only active when MSc is active ; so that the rightclick happens in PixM PixelSearch, FindX, FindY, 0, 0, A_ScreenWidth, A_ScreenHeight, RGB_DesktopIcon, , fast RGB on desktop RGB_DesktopIcon/ is color of highlighted icon ; WinY + 200: search beneath this point because otherwise (*change*?) ; the color of 'Select all' in ribbon will be found PixelSearch, FindX, FindY, WinX, WinY + 200, WinX + Width, WinY + Height, RGB_Expl_File, , fast RGB ; in Explorer RGB_Expl_File is color of selected file ; ♣========================= SHOW CAPSLOCK STATE when PM is inactive ============================== ~CapsLock:: ; Shows CapsLock state when PixelMousing is inactive ToolTip, CapsLock ON, A_ScreenWidth, A_ScreenHeight, 2 ; tooltip (2) ; ♣======================================= CLICK SCREENCENTRE ===================================== ; comes in handy to focus on inactive MsgBoxes ; e.g. during the utilities test image recognition or check coordinates ~z & 3:: ; click screencentre ; same command in Master ; ♣==================================== GO TO AKH ICON IN SYSTEMTRAY ============================== ; this hotkey presupposes Full Screen as the defined state ~\ & s:: ; Focus on systemtray - activate akh icon in systemtray ImageSearch, , , IM_01_X1, IM_01_Y1, IM_01_X2, IM_01_Y2, *40 IM_01_Inspector_Inspector.png ; ♣====================================== FOCUS ON DESKTOP ======================================== #\:: ; focus on desktop - windows stay open ; ♣======================================== WINDOW SPY ============================================ ~\ & x:: ; run/exit Window Spy toggle Run, C:\Program Files\AutoHotkey\WindowSpy.ahk, , UseErrorLevel ; ♣======================================= AHK HELP FILE ========================================== #MaxThreadsPerHotkey, 2 ~\ & z:: ; Run/exit AHK Help file toggle default location AutoHotkey help file Run, C:\Program Files\AutoHotkey\AutoHotkey.chm, , UseErrorLevel ; ♣=================================== UNICODE INPUT ============================================== this little program doesn't need to be installed change the path in your location of the file ~F3 & F2::Run, C:\Users\NewAdminPrimary\Downloads\Unicode\unicodeinput.exe ; ♣============================= FIXED SIZE and POSITION of Active Window(s) ===================== ~<^\:: ; centre active window, size it to 800x800 px (*change*?) WinGetPos, , , Width, Height, A ; ~<^\:: is hotkey Left Ctrl + \ WinMove, A, , (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2), 800, 800 ; 800, 800 size of text window (*change*?) ~>^\:: ; centre active window, size it to 900x1200 px (*change*?) WinGetPos, , , Width, Height, A ; ~>^\:: is hotkey Right Ctrl + \ WinMove, A, , (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2)-(Height/2), 1050, 800 ; 1050, 800 size of text window (*change*?) ^#\:: ; position window 1 left and window 2 right WinMove, A, , (A_ScreenWidth/9)-(Width/9), (A_ScreenHeight/2)-(Height/2), 800, 800 ; 800, 800 size of text window (*change*?) WinMove, A, , (A_ScreenWidth/2)+10, (A_ScreenHeight/2)-(Height/2), 800, 800 ; 800, 800 size of text window (*change*?) ; ♣===================================== TEXT UTILITIES =========================================== ; credits: ; https://autohotkey.com/board/topic/24431-convert-text-uppercase-lowercase-capitalized-or-inverted/page-3 ; select text, press Control + C, execute hotkey ^!u:: ; Convert text to upper case ^!l:: ; Convert text to lower case ^!c:: ; Convert text to capitalized ^!i:: ; Convert text to inverted ~CapsLock & f1:: ; select font only active in .odt documents ~CapsLock & f2:: ; select font size only active in .odt documents ; ♣================================ LAUNCH MUSESCORE / FOCUS ON MUSESCORE ========================= ~m & s:: ; Launch OR Focus on MuseScore Run, S:\musescore_opengl_35 Portable.bat ; (*change*?) replace by your location of MuseScore ; ♣============================================== INPUTBOX ======================================== ~z & w:: ; independent hotkeys inputbox ; InputBox, Ind_HK, Independent Hotkeys, , , W_IB, H_IB, IB_X, IB_Y, , , Enter command Help = ? ; (*change?*) InputBox positioned in Inspector area InputBox, Ind_HK, Independent Hotkeys, , , W_IB, H_IB, StartX, StartY - 120, , , Enter command Help = ? ; (*change?*) InputBox positioned near the mouse InputBox, Ind_HK, Independent Hotkeys, , , W_IB, H_IB, IB_X, IB_Y, , , Enter command ; (*change?*) InputBox positioned in Inspector area InputBox, Ind_HK, Independent Hotkeys, , , W_IB, H_IB, StartX, StartY - 120, , , Enter command ; (*change?*) InputBox positioned near the mouse ImageSearch, , , IM_01_X1, IM_01_Y1, IM_01_X2, IM_01_Y2, *40 IM_01_Inspector_Inspector.png FileSelectFile, SelectedFile, 3, %A_WorkingDir%\MuseScore_logo_round.jpg Run, C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -incognito If (Ind_HK = "ms") Run, S:\musescore_opengl_35 Portable.bat ; (*change*?) replace by your locaation of MuseScore If (Ind_HK = "np") Run, Notepad.exe ; ♣======================================= RESTORE MUSESCORE ====================================== ; replaces Alt + TAB, activates MuseScore, resets width of Inspector and Palettes ; restores MAX CANVAS (alternatively Toolbars Note Input + Workspaces) ; expands collapsed inspector sections of selected element ▼ instead of ► (if any) ; and finally test Defined State ^#z:: ; restore MuseScore ; ALTERNATIVE VERSION: Defined State must contain Toolbars NOTE INPUT and WORKSPACES only ; as per alternative version for the hotkey CapsLock + 8 All data for restoring Defined State: PixelSearch - CanvasSearchArea - CSA_X1, CSA_Y1 and CSA_X2, CSA_Y2 - ColorV1/2/3/4 ImageSearch, Tick_X, Tick_Y, FoFb_X1, FoFb_Y1, FoFb_X2, FoFb_Y2, *40 CTS_Checked_ticked_sign.png FoFb_X/Y1 FoFb_X/Y2 ImageSearch, Tick_X, Tick_Y, NoteInp_X1, NoteInp_Y1, NoteInp_X2, NoteInp_Y2, *40 CTS_Checked_ticked_sign.png NoteInp_X/Y1 NoteInp_X/Y2 ImageSearch, Tick_X, Tick_Y, WorkSp_X1, WorkSp_Y1, WorkSp_X2, WorkSp_Y2, *40 CTS_Checked_ticked_sign.png WorkSp_X/Y1 WorkSp_X/Y2 ImageSearch, TrX, TrY, IM_18_X1, IM_18_Y1, IM_18_X2, IM_18_Y2, IM_18_Inspector_Triangle_Closed.png IM_18_X/Y1 IM_18_X/Y2 ImageSearch, X, Y, Pal_Loc_X1, Pal_Loc_Y1, Pal_Loc_X2, Pal_Loc_Y2, *80 Palette_Locator_Left.png ImageSearch, X, Y, Pal_Loc_X1, Pal_Loc_Y1, Pal_Loc_X2, Pal_Loc_Y2, *80 Palette_Locator_Right.png Pal_Loc_X/Y1 Pal_Loc_X/Y2 ToolBarSel_X/Y ; Toolbar selection spot ToolBTickOffset_X/Y Insp_Loc_Dist_X Def_Insp_Width Def_Pal_Width Left_Loc_Dist_X Right_Loc_Dist_X TriAngleOffset_X/Y ImageSearch, , , SB_X1, SB_Y1, SB_X2, SB_Y2, *40 Statusbar_Note_Pitch.png ImageSearch, , , SB_X1, SB_Y1, SB_X2, SB_Y2, *40 Statusbar_Rest.png ; ♣================================================================================================