Skip to content

Commit

Permalink
Update AHK QuickCommand.ahk
Browse files Browse the repository at this point in the history
Add, "Focus, ListBox". Fixed #4
  • Loading branch information
Azona77 authored Nov 2, 2024
1 parent d7444da commit 618bbbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion AHK QuickCommand.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ return
#IfWinActive AHK QuickCommand ahk_class AutoHotkeyGUI
CapsLock & Space::
~Enter::
ControlGetFocus, focusedControl
ControlGetFocus, focusedControl, A
if (focusedControl = "Edit1"){
GuiControl, Focus, ListBox
Send, {Down}
Expand Down Expand Up @@ -144,6 +144,7 @@ return

CapsLock & S::
Down::
GuiControl, Focus, ListBox
if (GetLineNumber() = GetLineCount()){
ControlSend, ListBox1, {Home}
}
Expand All @@ -153,6 +154,7 @@ Down::
return
CapsLock & W::
Up::
GuiControl, Focus, ListBox
if (GetLineNumber() = 0 or GetLineNumber() = 1){
ControlSend, ListBox1, {End}
}
Expand All @@ -170,6 +172,7 @@ RunListboxItem( ){
Gui, Destroy
global LastCommand
LastCommand:= selectedItem
sleep, 50
%selectedItem%()
}else{
tooltip, not existing func
Expand Down

0 comments on commit 618bbbe

Please # to comment.