I'm having trouble with this script.
I want to trigger the compiled EXE with Touch Portal ( https://www.touch-portal.com ). For those who don't know what this is, it is a software version of a Stream Deck. This software has it's own features but I am using it to launch EXE files.
I want the script to load only when Discord.exe is the active window. Currently the script launches when anything is active. Other than that, the script does work, I just want to isolate it running when Discord.exe is active.
What needs to be done here?
Code: Select all
#IfWinActive ahk_exe Discord.exe
Inputbox, dv_Discord_Bold, Send BOLD text, What text do you need to convert to a bold font?
if ErrorLevel
Return
else
SendInput, {* 4}{Space}{Left 3}%dv_Discord_Bold%{Right 3}
Return
#IfWinActive