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 

"#" being ignored when passed in a gui Field

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



Joined: 26 Sep 2008
Posts: 2
Location: Earth

PostPosted: Fri Sep 26, 2008 2:58 pm    Post subject: "#" being ignored when passed in a gui Field Reply with quote

I use two fields on a gui to pass parameters to kick of a script, in most cases what I pass it contains a #. ie -pAIG_Legg -v#123321 When it kicks off it actually sends -pAIG_Legg -v123321

Code:
ButtonAIG_Compile:
Gui, submit, NoHide
If Project=
{
  msgbox, Empty Project Name!
  Return
}
If Version=
{
  msgbox, Empty Version Label!
  Return
}

Run, cmd ,G:\CM_NPVCS\AIG-COMPILE\
sleep 1000
send,perl AIGCompile_byLABEL_SizeCompare_NOBASOK.plx -p%Project% -v%Version%{ENTER}
GuiControl,,Project,
GuiControl,,Version,
Return
Back to top
View user's profile Send private message
Dra_Gon



Joined: 25 May 2007
Posts: 314

PostPosted: Fri Sep 26, 2008 3:14 pm    Post subject: Reply with quote

You might need an accent {`} [NOT apostrophe '] in front of the symbol to pass it through. Try something like:

Code:
IfInString, Version, #
   StringReplace, Version, Version, #, `#


I don't know if that's the problem but many symbols need that accent in AHK in order to get used as itself. Hope this helps!

Ciao,
Dra'Gon
_________________

For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/
Back to top
View user's profile Send private message Send e-mail
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