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 can I use a wildcard in an if statement to compare text

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



Joined: 27 Feb 2008
Posts: 20

PostPosted: Wed May 14, 2008 1:19 am    Post subject: How can I use a wildcard in an if statement to compare text Reply with quote

I think I am figuring a work around for my previous post. However I need to know if I can just compare the beginning of a line with what is in the clipboard. Let's assume on the clipboard it will say: www.website.com/thispartstaysXXXXX where XXXXX are variables. I want to compare the clipboard with ifequal clipboard, www.website.com/thispartstays and leave the rest as a wildcard. Any way to do that?

Thanks in advance
Back to top
View user's profile Send private message
Ian



Joined: 15 Jul 2007
Posts: 1151
Location: Enterprise, Alabama

PostPosted: Wed May 14, 2008 1:23 am    Post subject: Reply with quote

Try using RegExMatch.
_________________
ScriptPad/~dieom/dieom/izwian2k7/Trikster/God
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