Advertisement
alien_fx_fiend

How to Send Text /w Multiple Spaces & Exclamation Marks from a Variable in a HotString ?

Jun 16th, 2022
1,921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I'm trying to use Send inside a Hotstring to output some text containing multiple spaces + also contains exclamation marks —but it gets omitted & won't display when triggered. Please help me find a workaround !  :cry: Here is the gist of the code:
  2.  
  3. [Codebox=autohotkey file=Untitled.ahk]
  4. !+q::
  5. AutoTrim, Off
  6. StringText := "LETS GO!  NOW!" ;two exclamation marks after go & now, as well as two spaces after go!
  7. Send % StringText
  8.     Sleep 50
  9.     Send {Enter}
  10. return
  11. [/Codebox]
  12.  
  13. Thank you !  ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement