AutoHotkey Community

It is currently May 27th, 2012, 5:39 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: [Solved]Clear listbox
PostPosted: March 15th, 2010, 10:37 am 
Offline

Joined: January 18th, 2010, 9:25 am
Posts: 193
Location: Switzerland
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 :cry:


Last edited by Acris on March 15th, 2010, 11:07 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 10:46 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
clear listbox
Code:
GuiControl,1:,MyListPQSMOUNT,|


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 15th, 2010, 11:06 am 
Offline

Joined: January 18th, 2010, 9:25 am
Posts: 193
Location: Switzerland
Thank a lot, Garry

it's Ok


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], HotkeyStick, mrhobbeys and 58 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