AutoHotkey Community

It is currently May 26th, 2012, 9:42 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: how to read " ; "
PostPosted: September 21st, 2009, 4:54 pm 
input = hello ; world

how to read ";"

it comments out "world" .. but i want to read the complete input


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 5:09 pm 
Read my nick. EscapeChar


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 5:13 pm 
i want to read the complete input.... even ';' in 'hello ; world'


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 6:41 pm 
Offline
User avatar

Joined: October 7th, 2006, 8:45 am
Posts: 3330
Location: Simi Valley, CA
Code:
Msgbox Hellp `; World!

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 8:13 pm 
i said i cant change the input


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 8:16 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
No, you didn't really...

But

Code:
Input := "Hello ; World" ; this should work.

(Apparently the syntax highlight on the forum doesn't, at least :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 8:26 pm 
guest, if the input is coming from a source that you do not have control over, (say, a database) you will probably want to use "stringreplace"
http://www.autohotkey.com/docs/commands ... eplace.htm


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 8:33 pm 
stringreplace doesnt work there


it reads only hello and what comes after ; is ignored ..its commented out


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 8:36 pm 
Offline

Joined: August 14th, 2009, 2:40 pm
Posts: 237
Location: Finland
please post the exact code you're working with, it's much easier to help you if we do not have to guess.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 9:08 pm 
Input := "Hello ; World" ; this should work.
the bolded is commented out ...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 21st, 2009, 9:16 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
rtfm
Code:
#CommentFlag |
Input = "Hello ; World" ; this should work.
MsgBox % input

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 12:45 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
I never understood why people say RTFM. That seems to be a bit rude. There is no need to be rude when someone doesn't understand something that is a completely legitimate reason to not understand.

Why can't we change it to RTM instead?

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 1:22 am 
Offline

Joined: April 8th, 2009, 8:23 pm
Posts: 3036
Location: Rio de Janeiro - RJ - Brasil
RTFM means Read The Friendly Manual. :lol:

_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"
Image
Antonio França
My stuff: Google Profile


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 1:32 am 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
Ahaha, I like that answer MasterFocus. :P

_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 22nd, 2009, 3:15 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Eedis wrote:
...when someone doesn't understand something that is a completely legitimate reason to not understand.

:lol: Circular logic!
Begging the question


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], BrandonHotkey, JSLover, patgenn123, rbrtryn, virpara, Yahoo [Bot] and 58 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