tlman12 Posted August 6, 2010 Share 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.. Link to comment Share on other sites More sharing options...
KaFu Posted August 6, 2010 Share 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-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) 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 (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
JohnOne Posted August 6, 2010 Share 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. Link to comment Share on other sites More sharing options...
KaFu Posted August 6, 2010 Share 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-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) 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 (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
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