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 

how to read " ; "

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






PostPosted: Mon Sep 21, 2009 3:54 pm    Post subject: how to read " ; " Reply with quote

input = hello ; world

how to read ";"

it comments out "world" .. but i want to read the complete input
Back to top
R.T.F.M.
Guest





PostPosted: Mon Sep 21, 2009 4:09 pm    Post subject: Reply with quote

Read my nick. EscapeChar
Back to top
Guest






PostPosted: Mon Sep 21, 2009 4:13 pm    Post subject: Reply with quote

i want to read the complete input.... even ';' in 'hello ; world'
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 3254
Location: Simi Valley, CA

PostPosted: Mon Sep 21, 2009 5:41 pm    Post subject: Reply with quote

Code:
Msgbox Hellp `; World!

_________________
Ternary (a ? b : c) guide     TSV Table Manipulation Library
Post code inside [code][/code] tags!
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Sep 21, 2009 7:13 pm    Post subject: Reply with quote

i said i cant change the input
Back to top
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Mon Sep 21, 2009 7:16 pm    Post subject: Reply with quote

No, you didn't really...

But

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

(Apparently the syntax highlight on the forum doesn't, at least :)
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
cerewa notloggedin
Guest





PostPosted: Mon Sep 21, 2009 7:26 pm    Post subject: Reply with quote

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/StringReplace.htm
Back to top
Guest






PostPosted: Mon Sep 21, 2009 7:33 pm    Post subject: Reply with quote

stringreplace doesnt work there


it reads only hello and what comes after ; is ignored ..its commented out
Back to top
AnttiV



Joined: 14 Aug 2009
Posts: 237
Location: Finland

PostPosted: Mon Sep 21, 2009 7:36 pm    Post subject: Reply with quote

please post the exact code you're working with, it's much easier to help you if we do not have to guess.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Guest






PostPosted: Mon Sep 21, 2009 8:08 pm    Post subject: Reply with quote

Input := "Hello ; World" ; this should work.
the bolded is commented out ...
Back to top
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Mon Sep 21, 2009 8:16 pm    Post subject: Reply with quote

rtfm
Code:
#CommentFlag |
Input = "Hello ; World" ; this should work.
MsgBox % input

_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Mon Sep 21, 2009 11:45 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
MasterFocus



Joined: 08 Apr 2009
Posts: 3035
Location: Rio de Janeiro - RJ - Brasil

PostPosted: Tue Sep 22, 2009 12:22 am    Post subject: Reply with quote

RTFM means Read The Friendly Manual. Laughing
_________________
"Read the manual. Read it again. Search the forum.
Try something before asking. Show what you've tried.
"

Antonio França
My stuff: Google Profile
Back to top
View user's profile Send private message Visit poster's website
Eedis



Joined: 12 Jun 2009
Posts: 1158
Location: Indianapolis IN, USA

PostPosted: Tue Sep 22, 2009 12:32 am    Post subject: Reply with quote

Ahaha, I like that answer MasterFocus. Razz
_________________
www.AutoHotkey.net/~Eedis
I love my wife and daughter so much.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Tue Sep 22, 2009 2:15 pm    Post subject: Reply with quote

Eedis wrote:
...when someone doesn't understand something that is a completely legitimate reason to not understand.

Laughing Circular logic!
Begging the question
Back to top
View user's profile Send private message Visit poster's website
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