autohotkey - Send hotkeys own default behavior -


how can send keys default (from hardware) behavior in own key definition. mean code:

vcerc = 0  +c:: vcerc := !vcerc return  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  kkey = 0  $k:: if vcerc {     kkey := !kkey     if kkey         sendinput {k down}     else         sendinput {k up} } else {     send, k } return 

in end part send, k sends word k. in multi language environment means if switch other, key still sends k rather sending 1 second language (assume ن).
how can make send default? (from hardware no matter language is)

two things seem off me: 1) initial kkey declaration never hit since falls after hotkey (and return). declare variables @ top. 2) if kkey true, script has holding down k button indefinitely. expected? 3) looking lowercase k's sending uppercase k's. expected?

at rate, example should point in right direction.

vcerc = 0 kkey = 0  +c:: vcerc := !vcerc return  $k:: {     if (vcerc) {         kkey := !kkey         if (kkey) {             msgbox, k down ; sendinput {k down}         } else {             msgbox, k ; sendinput {k up}         }     } else {         send, k     } } 

Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

css - SVG using textPath a symbol not rendering in Firefox -

php - Google Calendar Events -