Hi All...
Here it is my example project to call/execute/run some Windows tools, and some registry tweaking (attached below).
This project can call some "visible" and "invisible" windows tools, like regedit, admin tools, msconfig, etc. in one button that will show a pop up menu which contains list of windows tools. And also some registry tweaking like adding
"Empty Recycle Bin" on right-click menu, remove Shorcut To.. prefix on desktop shorcut name, etc.
But i have a little problem with this script below:
I wanna show a dialog message that will tell the user if no usb drive found.
Where can i put the script line to do that in this script below ?
i've tried to put a script like this after File.ExploreFolder:
but nothing happened. No dialog message show up.
Can you guys tell me how to correct this script, pls?
Note: i also try to put that script to different position and connect/disconnect my usb stick to see the result, but nothing happened.
Thanks, sorry my poor english
SiRAY
Here it is my example project to call/execute/run some Windows tools, and some registry tweaking (attached below).
This project can call some "visible" and "invisible" windows tools, like regedit, admin tools, msconfig, etc. in one button that will show a pop up menu which contains list of windows tools. And also some registry tweaking like adding
"Empty Recycle Bin" on right-click menu, remove Shorcut To.. prefix on desktop shorcut name, etc.
But i have a little problem with this script below:
I wanna show a dialog message that will tell the user if no usb drive found.
Where can i put the script line to do that in this script below ?
Dialog.TimedMessage("Please Wait...", "Looking for USB Drive.....................", 3000, MB_ICONNONE);
tbDrives = Drive.Enumerate();
for index, cDrive in tbDrives do
DriveType = Drive.GetType(cDrive);
if DriveType == 2 then -- DRIVE_REMOVABLE
tbInfo = Drive.GetInformation(cDrive);
if tbInfo then
Dialog.TimedMessage("Please Wait...", tbInfo.DisplayName..".....................", 2000, MB_ICONNONE);
File.ExploreFolder(cDrive, SW_SHOWNORMAL);
end
end
end
tbDrives = Drive.Enumerate();
for index, cDrive in tbDrives do
DriveType = Drive.GetType(cDrive);
if DriveType == 2 then -- DRIVE_REMOVABLE
tbInfo = Drive.GetInformation(cDrive);
if tbInfo then
Dialog.TimedMessage("Please Wait...", tbInfo.DisplayName..".....................", 2000, MB_ICONNONE);
File.ExploreFolder(cDrive, SW_SHOWNORMAL);
end
end
end
i've tried to put a script like this after File.ExploreFolder:
else
Dialog.Message("Notice", "No Usb drive found!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Dialog.Message("Notice", "No Usb drive found!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
but nothing happened. No dialog message show up.
Can you guys tell me how to correct this script, pls?
Note: i also try to put that script to different position and connect/disconnect my usb stick to see the result, but nothing happened.
Thanks, sorry my poor english
SiRAY
Comment