AutoHotkey Community

It is currently May 26th, 2012, 11:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: October 1st, 2009, 8:25 pm 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6068
Location: San Diego, California
I apologize for the /lame/ example, also for the long post but trivial question.

Using msgbox, I attempt to continue the line but I see the . character which I do not want.

I do understand some methods to continue script lines, and I know this works:

http://www.autohotkey.com/docs/Scripts.htm#continuation
Code:
; EXAMPLE #1:
Var =
(
Line 1 of the text.
Line 2 of the text. By default, a linefeed (`n) is present between lines.
)
msgbox %var%


:arrow: Is there a way to rewrite the MsgBox below without changing to the above style/method?

Code:
#SingleInstance force
return
#q::

WinGetActiveTitle, Title

ControlGetFocus, OutputVarFoc , %Title%

MouseGetPos, OutputVarX, OutputVarY, OutputVarWin, OutputVarControl

WinGetTitle, Mtitle, ahk_id %OutputVarWin%

MsgBox, The active window is "%Title%!`nfocus!%OutputVarFoc%!`nx=!%OutputVarX%!`ny=!%OutputVarY%!
 . `nid=!%OutputVarWin%!`nctl=!%OutputVarControl%!`nmouse_win!%Mtitle%!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2009, 9:05 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Code:
MsgBox,% "The active window is " Title "!`nfocus!" OutputVarFoc "!`nx=!" OutputVarX "!`ny=!" OutputVarY
 . "!`nid=!" OutputVarWin "!`nctl=!" OutputVarControl "!`nmouse_win!" Mtitle "!"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2009, 9:07 pm 
Offline

Joined: June 8th, 2006, 9:38 pm
Posts: 307
Code:
MsgBox,
( join
The active window is "%Title%!`nfocus!%OutputVarFoc%!`nx=!%OutputVarX%!`ny=!%OutputVarY%!
`nid=!%OutputVarWin%!`nctl=!%OutputVarControl%!`nmouse_win!%Mtitle%!
)


?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2009, 9:58 pm 
Online

Joined: April 8th, 2009, 7:49 pm
Posts: 6068
Location: San Diego, California
thank you both. Just what I was looking for.

@ jaco0646 you lost my double-quote! :cry: :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 1st, 2009, 10:59 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
:o
Code:
MsgBox,% "The active window is """ Title "!`nfocus!" OutputVarFoc "!`nx=!" OutputVarX "!`ny=!" OutputVarY
 . "!`nid=!" OutputVarWin "!`nctl=!" OutputVarControl "!`nmouse_win!" Mtitle "!"


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, hyper_, Leef_me, Pulover, RaptorX, rbrtryn, XstatyK, Yahoo [Bot] and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group