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 

guicontrol text why the little comma

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



Joined: 15 Jul 2006
Posts: 31

PostPosted: Sun Nov 15, 2009 5:43 pm    Post subject: guicontrol text why the little comma Reply with quote

On the code snippet below, When I first click on "current profile", then hit cancel, I get a little comma added to the text. I'd like the little comma to go away... Smile

Code:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
euserprofile=c:\

Gui, Add, Text, vchosen_profile x125 y242 w380 h20 ,%euserprofile%
Gui, Add, Button, gchoose_profile x18 y238 w100 h20, Current Profile ->

Gui, Show, xCenter yCenter h365 w472, UserBackup

Return
choose_profile:
temp_euserprofile:=euserprofile
  FileSelectFolder, euserprofile, *%A_homedrive%, 3,Select Source Folder
  if errorlevel
    {
      euserprofile:=temp_euserprofile
    }
  temp_userprofile=
 
  GuiControl,, chosen_profile, , %euserprofile%
 
  ; getsourcefolder(euserprofile)

Return
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Nov 15, 2009 5:53 pm    Post subject: Reply with quote

Extra comma:
Code:

GuiControl,, chosen_profile, , %euserprofile%

Remove the red comma
Back to top
userabuser



Joined: 15 Jul 2006
Posts: 31

PostPosted: Sun Nov 15, 2009 5:58 pm    Post subject: Reply with quote

Anonymous wrote:
Extra comma:
Code:

GuiControl,, chosen_profile, , %euserprofile%

Remove the red comma


Oh for goodness sake.. Been staring at this way to long I guess.. How stupid of me!

Thanks for the quick response! I appreciate it. I'll now get up and go do something else for awhile..
Back to top
View user's profile Send private message
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