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 

[Solved]Clear listbox

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



Joined: 18 Jan 2010
Posts: 193
Location: Switzerland

PostPosted: Mon Mar 15, 2010 9:37 am    Post subject: [Solved]Clear listbox Reply with quote

Hello,

Can you tell how clear listbox after push Button UnMount ???

I tried :

MyListPQSMOUNT=
MountPath=


But it doesn't work


Code:
Gui, Tab, PQServiceUSB
Gui, Add, ListBox, x35 y60 w565 r5 AltSubmit vMyListPQSMOUNT, %MountPath%
Gui, Add, GroupBox,x15 y40 w600 h100, %CREATEPQSUSB%
Gui, Add, ListBox, x35 y230 w565 r5 vMyListPQSUSB, %MergedLine%
Gui, Add, Button, x35 y145 w60 h25 gMount, Monter
Gui, Add, Button, x105 y145 w60 h25 gUnMount, Démonter
Gui, Add, GroupBox,x15 y210 w600 h100, %DESTPQSSUSB%


Mount:
{
GuiControl, +AltSubmit -g, MyListPQSMOUNT
MountPath= Z:
SB_SetText(MOUNTINPROGRESS)
RunWait,%comspec% /c MBRwrWin mount hd0:1 %MountPath%,, HIDE
SB_SetText(MOUNTIND)
Sleep, 5000
SB_SetText("")
}
GuiControl,1:, MyListPQSMOUNT,%MountPath%
Return

UnMount:
{
;GuiControl, +AltSubmit -g, MyListPQSMOUNT  (doesn' work)
;Gui, Cancel  (doesn' work)
MyListPQSMOUNT=
MountPath=
RunWait,%comspec% /c dosdev -d Z:, , HIDE
}
;GuiControl, +AltSubmit -g, MyListPQSMOUNT  (doesn' work)
GuiControl,1:, MyListPQSMOUNT,%MountPath%
Return


Can you help me,

thanks a lot

Acris Crying or Very sad


Last edited by Acris on Mon Mar 15, 2010 10:07 am; edited 1 time in total
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Mon Mar 15, 2010 9:46 am    Post subject: Reply with quote

clear listbox
Code:
GuiControl,1:,MyListPQSMOUNT,|
Back to top
View user's profile Send private message
Acris



Joined: 18 Jan 2010
Posts: 193
Location: Switzerland

PostPosted: Mon Mar 15, 2010 10:06 am    Post subject: Reply with quote

Thank a lot, Garry

it's Ok
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