 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
userabuser
Joined: 15 Jul 2006 Posts: 31
|
Posted: Sun Nov 15, 2009 5:43 pm Post subject: guicontrol text why the little comma |
|
|
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
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Sun Nov 15, 2009 5:53 pm Post subject: |
|
|
Extra comma:
| Code: |
GuiControl,, chosen_profile, , %euserprofile%
|
Remove the red comma |
|
| Back to top |
|
 |
userabuser
Joined: 15 Jul 2006 Posts: 31
|
Posted: Sun Nov 15, 2009 5:58 pm Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|