AutoHotkey Community

It is currently May 26th, 2012, 11:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 15th, 2009, 6:43 pm 
Offline

Joined: July 15th, 2006, 7:36 pm
Posts: 31
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... :)

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2009, 6:53 pm 
Extra comma:
Code:
GuiControl,, chosen_profile, , %euserprofile%

Remove the red comma


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 15th, 2009, 6:58 pm 
Offline

Joined: July 15th, 2006, 7:36 pm
Posts: 31
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..


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cerberus, Google Feedfetcher, Maestr0, rbrtryn, Tipsy3000 and 66 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