Autohotkey - Send default behavior if condition not met -


in autohotkey, how can make numpaddot double-click if foxit reader active, otherwise send normal numpaddot?

my (broken) attempt:

numpaddot::   settitlematchmode 2 ; allow partial titles   ifwinactive, foxit       click 2   else       send {numpaddot} ; creates endless loop! return 

well, way:

settitlematchmode 2 ; allow partial titles  #ifwinactive, foxit ; hotkeys defined between #ifwinactive works in foxit   numpaddot::click 2 #ifwinactive 

oh btw endless loop because send, {numpaddot} initiates own script. if want prevent place $ before hotkey $numpaddot::


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -