Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 How do you make something like this: Send("MsgBox(0, "Hi there", "What's up?") I want it to type out the msgbox command... It errors our that "Hi quote... I tried \" like the Java escape sequence, but it doesn't work for AutoIt... How can I get this to work? Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 27, 2004 Share Posted October 27, 2004 You need to add ") to the end of that code: Send("MsgBox(0, "Hi there", "What's up?")") My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 27, 2004 Share Posted October 27, 2004 Nope, nevermind. My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 Arg, help me this-is-me, Larry, Valik! Link to comment Share on other sites More sharing options...
strate Posted October 27, 2004 Share Posted October 27, 2004 (edited) /\/,Oct 26 2004, 04:55 PM]How do you make something like this:Send("MsgBox(0, "Hi there", "What's up?")I want it to type out the msgbox command... It errors our that "Hi quote... I tried \" like the Java escape sequence, but it doesn't work for AutoIt... How can I get this to work?<{POST_SNAPBACK}>TrySend('MsgBox(0, "Hi there", "What's up?")')Nevermind I should of tried it first sorry Edited October 27, 2004 by strate INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 Just did, same thing... the error is at the first "Hi there part... So the rest doesn't matter, although I see what you are saying, I actually forgot to put that in the original heh. Link to comment Share on other sites More sharing options...
Somerset Posted October 27, 2004 Share Posted October 27, 2004 send(chr(83)&chr(101)&chr(110)&chr(100)&chr(40)&chr(34)&chr(77)&chr(115)&chr(103)&chr(66)&chr(111)&chr(120)&chr(40)&chr(48)&chr(44)&chr(32)&chr(34)&chr(72)&chr(105)&chr(32)&chr(116)&chr(104)&chr(101)&chr(114)&chr(101)&chr(34)&chr(44)&chr(32)&chr(34)&chr(87)&chr(104)&chr(97)&chr(116)&chr(39)&chr(115)&chr(32)&chr(117)&chr(112)&chr(63)&chr(34)&chr(41)) Link to comment Share on other sites More sharing options...
strate Posted October 27, 2004 Share Posted October 27, 2004 Send('MsgBox(0, "Hi there", "Whats up?")') The ' in Whats up? throws it off. INI TreeViewA bus station is where a bus stops, a train station is where a train stops. Onmy desk I have a work station... Link to comment Share on other sites More sharing options...
CyberSlug Posted October 27, 2004 Share Posted October 27, 2004 Send('MsgBox(0, "Hi there", "What''s up?")') Send("MsgBox(0, ""Hi there"", ""What's up?"")") You could also use a variable to store the quote char or break up each string into a separate variable... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 EDIT: Sorry for the trouble everyone, I figured it out... I acidentally made a typo while trying another method, and therefore it didn't work. Send('MsgBox(0, "Hi there", "What's up?")') This works. Sorry about confusion! Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 It works for me fine now with the "'" only the ' works. Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 Ok, well all I know is that what works is: Send('MsgBox(0, "Hi there.", "Hi there")') Link to comment Share on other sites More sharing options...
the_lord_mephy Posted October 27, 2004 Share Posted October 27, 2004 What larry posted wouldn't work because the ' in What's would close the "quotes". My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
Guest Py7|-|[]/\/ Posted October 27, 2004 Share Posted October 27, 2004 Heh. I understand what you said Larry. =) Link to comment Share on other sites More sharing options...
CyberSlug Posted October 27, 2004 Share Posted October 27, 2004 Did anyone see my post?You need to double up the single quote in the first example.... Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now