Slym Posted February 5, 2014 Posted February 5, 2014 (edited) Hi there, There is something weird with FileSaveDialog. It takes approximately 8 seconds on my computer to return after clicking on OK. When compiling this exact code it looks faster but I still have this slow behaviour on another compiled software (LinuxLive USB Creator). $DEBUG_TIMER=TimerInit() $source_file = FileOpenDialog("Please choose an ISO image of LinuxLive CD", "", "ISO / IMG / ZIP (*.iso;*.img;*.zip)", 1,"") ConsoleWrite("It took "&Round(TimerDiff($DEBUG_TIMER)/1000,1)&" seconds to select ISO") Do you know what could cause this ? Thank you for your help PS : I'm still looking for AutoIT devs to help me on LinuxLive USB Creator. If interested, please contact me. Edited February 5, 2014 by Slym --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
FireFox Posted February 6, 2014 Posted February 6, 2014 Hi, The timer showed here starts when the dialog is showed, and not after you clicked the OK button. There is no kind of any "lag" for me. Br, FireFox.
Slym Posted February 11, 2014 Author Posted February 11, 2014 The delay is not only because the timer is before. Even if you take only 1 sec to click on OK, it will take approximately 8 seconds to return the value on my system (Win 8.1 x64 + SSD + 16 GB RAM ...). I had the same bug on my Windows 7 x64 with the same setup. When you select an ISO there is a big lag. I isolated the code and I still have the same lag randomly. Maybe something weird in AutoIT framework in this function ? Or it could be related to x64 versions ? --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
FireFox Posted February 11, 2014 Posted February 11, 2014 Tested on Win7 and Win8 (64 bits) and no lags (with different iso sizes). If you still think it's an issue, you can submit a ticket in the BugTracker (link in the forum menu). Br, FireFox.
Moderators Melba23 Posted February 11, 2014 Moderators Posted February 11, 2014 Slym,Try turning off your AV scanner temporarily and see if the lag still exists then. M23 FireFox 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Slym Posted February 11, 2014 Author Posted February 11, 2014 Thanks for your answers. I tried disabling EVERYTHING on my pc (I stopped every other software and every service I could stop including Antivirus). I retried and had the same lag. Could you please retry to open a random file 10 times with the code in this post and see if you clearly see a lag between the moment you click on OK and the moment you see the return from consolewrite ? PS: I tried to open a bug report but I could not login into Trac (Authentication information not available). --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
Moderators Melba23 Posted February 12, 2014 Moderators Posted February 12, 2014 Slym,The code works fine for me - no delays at all - so I remain convinced that the problem is something on your machines and not AutoIt. Besides, I believe that function is a simple call to the Windows API, so I doubt there is much AutoIt code involved at all. As to Trac, you do not need to log in - only authorised people can do that in order to manage the Trac system. If you want to be identified as the author of the ticket, just make sure you add your name to the relevant field. But I warn you now that because it is not reproducable by others that it is likely to be closed pretty quickly with a "Works for me" response. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Slym Posted February 12, 2014 Author Posted February 12, 2014 I will try to reproduce it in a virtual machine on a fresh install. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
Xandy Posted February 12, 2014 Posted February 12, 2014 (edited) This is a slow return for me as well: $loadpath= fileopendialog("Load Control File", $g_cc_controlsavepath, "txt(*.txt)") I think it has something to do with how my SSD and the function work together. I remember from my past that those filedialogs would sometimes lockup for like 20 seconds when you would click the path history combo. (That was just Windows, before I even knew of AutoIt) You can make your own custom filedialog, that I'm pretty sure will avoid the delay. example: Let me know if you want the code. Edited February 12, 2014 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
Slym Posted February 12, 2014 Author Posted February 12, 2014 Thanks but my code is already a mess and I try to avoid using custom functions as much as I can. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
AdmiralAlkex Posted February 12, 2014 Posted February 12, 2014 Let me know if you want the code. That looks awesome! Which graphical lib are you using? SDL? GDI? Xandy 1 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Xandy Posted February 12, 2014 Posted February 12, 2014 (edited) That looks awesome! Which graphical lib are you using? SDL? GDI? SDL and your >UDF it's what I am familiar with. : ) I ripped the font from Dragon Warrior 3 screenshots. Edited February 12, 2014 by Xandy Human Male Programmer (-_-) Xandy About (^o^) Discord - Xandy Programmer MapIt (Tile world editor, Image Tile Extractor, and Game Maker)
AdmiralAlkex Posted February 12, 2014 Posted February 12, 2014 I ripped the font from Dragon Warrior 3 screenshots. SDL and your UDF it's what I am familiar with. : )I sure would like to see it. I Actually tried doing a custom filedialog like that myself once, but I got lazy somewhere after I got file/folder rendering done But Slym said no so lets not go more off topic here. Post in Examples Scripts or in a PM? Xandy 1 .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Slym Posted February 15, 2014 Author Posted February 15, 2014 Do any of you have a low level version of FileOpenDialog function (maybe using DLLCall) ? --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
Moderators Melba23 Posted February 15, 2014 Moderators Posted February 15, 2014 Slym,Have you tried using my ChooseFileFolder UDF? It does not use the standard dialog - perhaps it might be faster for you. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Slym Posted February 15, 2014 Author Posted February 15, 2014 Thanks but I would like to keep the standard windows look. --------------------- [font="Franklin Gothic Medium"]LinuxLive USB Creator[/font], [size="3"]The only Linux Live USB creator with easy integrated virtualization (made with AutoIT)[/size] ---------------------
Moderators Melba23 Posted February 15, 2014 Moderators Posted February 15, 2014 Slym,Fine. Although as I believe the native function uses the Windows API, your request for a "low-level function" will only result in the same dialog appearing. I thought you might like to try the UDF and see if it was in fact the API that was causing your problems as the UDF does not use it. M23 Xandy 1 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
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