autohotkey - Can I change the input (GetKeyState) and output (Send,) keys based on user input (preferably InputBox)? -


i want make script temporarily create turbo button, input/output customizable per run. ideally, like

inputbox, triggerkey, input trigger here    ; custom turbo trigger inputbox, turbokey, input turbo button here ; , custom turbo key while not getkeystate("f12", "p") { ; loop close if ran   while getkeystate(%triggerkey%, "p") { ; when inputted trigger held...     send, %turbokey%                     ; rapid-fire inputted turbo     sleep 50   } } 

the above code hasn't worked, , i'm not sure if it's getkeystate/inputbox formatting issue, user input issue (i haven't been putting in right strings), or can't make customized turbo this.

the recent idea i've had write , run .ahk file inputted keys, if possible without having manage multiple files, great.

this better accomplished hotkey command. way whatever entered in input box triggerkey fire whatever code under label.

inputbox, triggerkey, input trigger here    ; custom turbo trigger inputbox, turbokey, input turbo button here ; , custom turbo key  hotkey, % triggerkey, triggerkey return  triggerkey:     while ! getkeystate("f12", "p")      {         send, %turbokey%         sleep 50     } return 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -