tlman12 0 Posted August 6, 2010 Is there anyway to do a dllcall that dosn't hold up the script while its going? i know some dll functions have a callback function that would allow this, but i'm using one where the callback funciton isn't documented or not that i can find. It's for the DeleteProfile fucntion in Userenv.dll heres a link to the msdn http://msdn.microsoft.com/en-us/library/bb762273(VS.85).aspx i want to have some sort of progress bar but on some computers the dll call is so slow that the computer thinks the script has frozen.. Share this post Link to post Share on other sites
KaFu 295 Posted August 6, 2010 Cant see a callback version on MSDN. Maybe first delete the profile directories in a loop and afterwards remove the profile? Should speed up the dllcall itself at least. OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites
JohnOne 1,603 Posted August 6, 2010 Perhaps you could run it in a new process. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
KaFu 295 Posted August 6, 2010 Perhaps you could run it in a new process.Thought about that too, though he wont get any progress indication. Hmmm, maybe loop calling a DirGetSize()? If you try that, search forum for _DirGetSizeEx, as DirGetSize itself is also blocking ... OS: Win10-1909 - 64bit - German, AutoIt Version: 3.3.14.5, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2019-Dec-21) BIC - Batch-Image-Cropper (2019-Dec-11) COP - Color Picker (2009-May-21) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2019-Dec-07) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Share this post Link to post Share on other sites