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 

GUI dropdown list item with a pipe character?

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



Joined: 18 Mar 2008
Posts: 2427

PostPosted: Sat Nov 21, 2009 3:38 pm    Post subject: GUI dropdown list item with a pipe character? Reply with quote

I'm working on a GUI dropdown list that will update with the titles of the available Internet Explorer windows and came across a curious problem I'm unable to get past. One of the pages I had open when I tested it has a pipe character in the title, so when the title list is pushed to the dropdown it splits the page title at the pipe character. I've tried running StringReplace to escape the pipe before sending it but it didn't seem to work.

Any thoughts on how to get past this?
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
jaco0646



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

PostPosted: Sat Nov 21, 2009 4:15 pm    Post subject: Reply with quote

My first thought...
AHK Help File wrote:
The separator between fields may be changed to something other than pipe (|). For example Gui +Delimiter`n would change it to linefeed and Gui +DelimiterTab would change it to tab (`t).
I don't think there are linefeeds or tabs in IE titles, but you could pick any obscure character.
_________________
http://autohotkey.net/~jaco0646/
Back to top
View user's profile Send private message Visit poster's website
sinkfaze



Joined: 18 Mar 2008
Posts: 2427

PostPosted: Sat Nov 21, 2009 4:27 pm    Post subject: Reply with quote

Ugh, that's what I get for not scrolling down far enough on the page. Thanks, jaco.
_________________
Try Quick Search for Autohotkey or see the tutorial for newbies.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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