Steveiwonder Posted March 11, 2010 Posted March 11, 2010 (edited) Hello, Is it possible to run one script to create a GUI window and then have a second script running which is updating the GUI window and controls on it? Like a progress bar.? The reason i ask of this if i have GUI which is displaying the progress of file copies, some large some small and it can take a while to copy all the files. If i have just one script copying the files evertime i call FileCopy the GUI hangs and shows Not Responding until that copy has finished and then the same thing will happen. My idea behind it would be to have a second script doing the copying & updating the control on the GUI. Then the GUI would be free... if that makes sense? No idea if its feasible or even possible. S Edited March 11, 2010 by Steveiwonder They call me MrRegExpMan
Valuater Posted March 11, 2010 Posted March 11, 2010 (edited) Maybe..... ; Windows - copy with progress ; Author - JdeB ;~ 4 Do not display a progress dialog box. ;~ 8 Give the file being operated on a new name in a move, copy, or rename operation if a file with the target name already exists. ;~ 16 Respond with "Yes to All" for any dialog box that is displayed. ;~ 64 Preserve undo information, if possible. ;~ 128 Perform the operation on files only if a wildcard file name (*.*) is specified. ;~ 256 Display a progress dialog box but do not show the file names. ;~ 512 Do not confirm the creation of a new directory if the operation requires one to be created. ;~ 1024 Do not display a user interface if an error occurs. ;~ 2048 Version 4.71. Do not copy the security attributes of the file. ;~ 4096 Only operate in the local directory. Don't operate recursively into subdirectories. ;~ 8192 Version 5.0. Do not copy connected files as a group. Only copy the specified files. _FileCopy("C:\Installed Apps\Patches\WindowsXP-KB835935-SP2-ENU.exe","C:\temp") Func _FileCopy($fromFile,$tofile) Local $FOF_RESPOND_YES = 16 Local $FOF_SIMPLEPROGRESS = 256 $winShell = ObjCreate("shell.application") $winShell.namespace($tofile).CopyHere($fromFile,$FOF_RESPOND_YES) EndFunc 8) Edited March 11, 2010 by Valuater
Steveiwonder Posted March 11, 2010 Author Posted March 11, 2010 you da man! Thanks will have a look. They call me MrRegExpMan
Steveiwonder Posted March 11, 2010 Author Posted March 11, 2010 Unfortunatley not what im really looking for, is it possible to control one GUI controls from a seperate script? They call me MrRegExpMan
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now