KaFu 296 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-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 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. Share this post Link to post Share on other sites
KaFu 296 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-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
eukalyptus 40 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 UDFDirect2D UDFAutoIt ScreenSaver CollectionBASS UDF v10 download Share this post Link to post Share on other sites
KaFu 296 Posted December 23, 2010 From the first look exactly what I'm searching for , I will check it out. Thanks a lot! 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