AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending Var containing ^

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
bahri



Joined: 24 Jun 2004
Posts: 101
Location: Malta

PostPosted: Fri Oct 27, 2006 8:12 pm    Post subject: Sending Var containing ^ Reply with quote

Hi all

Sometimes a variable contains ^
sending this variable is prooving to be a bit of a problem for me, such

Quote:

^MButton::
login = testing
password = dfg^cfdg
send, %login%
send, {return}
send, %password%
exitapp


The script sends
testing
dfgfdg

the ^ is not sent.
Any help

Thanks all

bahri
Back to top
View user's profile Send private message
.AHK



Joined: 26 Apr 2006
Posts: 662
Location: USA

PostPosted: Fri Oct 27, 2006 8:19 pm    Post subject: Reply with quote

Thats because control is sent instread of "^". Try SendRaw, and use "`r" instead of {Enter}.
Code:

^MButton::
login = testing
password = dfg^cfdg
sendraw, %login%`r%password%
exitapp
Back to top
View user's profile Send private message Visit poster's website AIM Address
bahri



Joined: 24 Jun 2004
Posts: 101
Location: Malta

PostPosted: Fri Oct 27, 2006 8:28 pm    Post subject: Sending Var containing ^ Reply with quote

Thanks
got it

bahri
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group