AutoHotkey Community

It is currently May 26th, 2012, 10:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: October 17th, 2009, 9:48 pm 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
I'm not to sure how to omit spaces in String Split.
Code:
stringsplit, result_, codehere, `

I've also tried.
Code:
stringsplit, result_, codehere, `{space}

Both with no luck.

To help you out, codehere is the sentence "Type the code here..."

The first one only splits the first word of the sentence into letters and leaves out the rest of the sentence. It returns the result "T y p e" in a MsgBox.

The second one returns the first two letters of the first and second word as two seperate words. It returns the result "Ty th" in a MsgBox.

Any help would be great, thanks.

Code:
stringsplit, result_, codehere, ` {Space}
msgbox, %result_1% %result_2% %result_3% %result_4%

Is what I'm using to test the code. I want each result, each word. So that should work.

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 17th, 2009, 9:53 pm 
Offline

Joined: June 12th, 2009, 11:36 pm
Posts: 1173
Location: Indianapolis IN, USA
I got it, sorry.

Code:
stringsplit, result_, codehere, ` %A_Space%

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


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: dra, Google [Bot], hyper_, JSLover, Leef_me, patgenn123 and 59 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