Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Re: Sendinput Won't Send ! Within A Variable

$
0
0
Perhaps something like this..?

CODE:

#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

Variable1 := "Send variable with an exclamation mark inside the variable!"
Variable2 := "And now send variable with an exclamation mark outside the variable"
Variable3 := "Hopefully this is along the lines of what you are looking for?"

F1::
SendInput % "{Text}" Variable1 ; Sends what is in the variable including characters like ! and ?
Send, `n
SendInput % Variable1 ; Sends only the text and basic punctuation marks , and . (may be more to it but I'll leave that to the coding pros.)

Sleep, 2000
Send, `n`n
SendInput % "{Text}" Variable1 "`n" Variable2 "! " "`n" Variable3
Return

Statistics: Posted by V0RT3X — Today, 20:13



Viewing all articles
Browse latest Browse all 579

Trending Articles