KaFu Posted December 22, 2010 Share Posted December 22, 2010 Hiho,this is directly related to Doing some testing and some reading validated this MSDN statement: "An extraction should never be done on a UI thread." Depending on the file type and output thumbnail size the processing can take some seconds. This renders the UI unresponsive.So I thought the best thing would be to relocate the extraction code to a separate exe file ("different thread") and poll the results in the working loop (notification via wm_copydata?). For performance reasons I want to avoid accessing the drive / actually writing the extracted bitmaps to disk... but I did not come up with a working idea for this ... maybe read the bitmap to a string and pass this via wm_copydata too?Anyone got a hint or idea for me, a pointer to an example which can be used?Best Regards 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 December 22, 2010 Share Posted December 22, 2010 Im useless with this kind of thing and tend to simplify them to much, so please forgive me if my post is stupid and useless. I've read a little bit on the forums from time to time about HBitmap, and im assuming that might be a hande to the bitmap, or maybe a pointer. Just wondering if that is all you would need to pass along to exe #2. Heres a thread I found that might hold some info Seems there were problems with access violation but if exe #2 were a child of exe #1 that might solve such an access problem. Again, sorry if Im talking rubbish, and can not provide a example. 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 December 22, 2010 Author Share Posted December 22, 2010 (edited) JohnOne, Deathbringer, both methods look promising, thanks for the feedback ! I'll test em and come back with the result (maybe after xmas ). Edited December 22, 2010 by KaFu 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...
eukalyptus Posted December 23, 2010 Share Posted December 23, 2010 Maybe this is what you are looking for:http://www.autoit.de/index.php?page=Thread&postID=160909#post160909http://www.autoit.de/index.php?page=Attachment&attachmentID=12143&h=12adb12f485762c0cead317060df5fbcfb845e3fcompile the examples, run Example_GDI(Plus)_Receive.exe and press EnterE DirectSound UDF Direct2D UDF AutoIt ScreenSaver Collection BASS UDF v10 download Link to comment Share on other sites More sharing options...
KaFu Posted December 23, 2010 Author Share Posted December 23, 2010 From the first look exactly what I'm searching for , I will check it out. Thanks a lot! 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