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 

Trivial: Why the extra escape character?

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



Joined: 19 Sep 2005
Posts: 115

PostPosted: Fri Mar 27, 2009 3:13 pm    Post subject: Trivial: Why the extra escape character? Reply with quote

I use the following code to place a Message box with the line number, a blank line, and an empty variable (%%) when I'm debugging code.

Code:

+^m::
SetKeyDelay, -1
Send, Msgbox, Msg Line:`%A_LineNumber`%``n``n
Return


However, I get an extra escape character "`" after the last "n," as in

Code:

Msgbox, Msg Line:`%A_LineNumber`%``n``n`


Any ideas why?

I have a work around, py placing the following after the send,
Code:
sleep, 20
send, {del}


But I'm just curious why the extra "`".

P1
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Mar 27, 2009 3:57 pm    Post subject: Reply with quote

I think it should be like this

Code:
Send, Msgbox, Msg Line:`%A_LineNumber%```n``n
Back to top
Display posts from previous:   
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