Skip to content

Commit

Permalink
Added #2
Browse files Browse the repository at this point in the history
- #2
- Cancel refreshing when triggered repeatedly
  • Loading branch information
Azona77 authored Oct 8, 2024
1 parent 6b5a797 commit a2cc63d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion AHK QuickCommand.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,14 @@ PasteTime(){
#if GetKeyState("CapsLock", "P")
C::
SetCapsLockState, off
if (A_ThisHotkey = "c" && A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 250) && LastCommand{
gui, Destroy
global LastCommand
%LastCommand%()
}
else if !(WinActive("AHK QuickCommand") && WinActive("ahk_class AutoHotkeyGUI")){
global FunctionList
Gui, Destroy
Gui, Destroy

FontSize := 32
Margin := FontSize * 0
Expand Down Expand Up @@ -96,7 +102,9 @@ C::
RunListboxItem()
}
return
}
return

#if

#IfWinActive AHK QuickCommand ahk_class AutoHotkeyGUI
Expand Down Expand Up @@ -143,6 +151,8 @@ RunListboxItem( ){
GuiControlGet, selectedItem, , ListBox1
if (IsFunc(selectedItem)) {
Gui, Destroy
global LastCommand
LastCommand:= selectedItem
%selectedItem%()
}else{
tooltip, not existing func
Expand Down

0 comments on commit a2cc63d

Please sign in to comment.