Zedna Posted December 31, 2006 Posted December 31, 2006 (edited) Incidentally, I notice that you cannot tell the version of Autoit2exe; it just says version 3. This is an omission isn't it?If you compile your script then you can see AutoIt version from output EXE - fileversion properties. Edited December 31, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
martin Posted December 31, 2006 Posted December 31, 2006 If you compile your script then you can see AutoIt version from output EXE - fileversion properties.So you can! Thanks Zedna. I still think the Help in Autoit2exe should give the version number though. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Zedna Posted December 31, 2006 Posted December 31, 2006 So you can! Thanks Zedna. I still think the Help in Autoit2exe should give the version number though.Try using Scite4AutoIt3 and your AutoIt life will be much better Resources UDF ResourcesEx UDF AutoIt Forum Search
mark2004 Posted December 31, 2006 Author Posted December 31, 2006 1.5sec on PII/400 128 MB RAM WIN98 - I think it's OK Func Populate_MasterPaidList() ;~ GUISetCursor(15,1) Guisetstate(@SW_LOCK,$MyGui ) $a = TimerInit() For $i=1 To 2000 GUICtrlCreateListViewItem("|Johnson_Maleky|$1870",$ClosedPaidlist) Next $b = TimerDiff($a) ConsoleWrite($B) Guisetstate(@SW_UNLOCK,$MyGui ) ;~ GUISetCursor(2) EndFunc Are you running it with the entire GUI code that I originally posted??? As I said before, if you just try to extract the loop and put it into a simple GUI, it runs very fast. It is only when I run my full GUI code that it gets ridiculously slow.
Zedna Posted December 31, 2006 Posted December 31, 2006 (edited) Are you running it with the entire GUI code that I originally posted??? As I said before, if you just try to extract the loop and put it into a simple GUI, it runs very fast. It is only when I run my full GUI code that it gets ridiculously slow. This was my test code: #include <GuiListView.au3> #include <GUIConstants.au3> $MyGui = GUICreate("GUI to test listview", 1016, 687, 2, 11) $ClosedPaidList = GUICtrlCreateListView("Days |Case Name |Amount", 24, 334, 303, 325, BitOR($LVS_REPORT,$LVS_SINGLESEL)) $Button1=GUICtrlCreateButton("Populate",20,20,80,20) GuiSetState() While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Populate_MasterPaidList() EndSwitch WEnd Func Populate_MasterPaidList() ;~ GUISetCursor(15,1) Guisetstate(@SW_LOCK,$MyGui ) $a = TimerInit() For $i=1 To 2000 GUICtrlCreateListViewItem("|Johnson_Maleky|$1870",$ClosedPaidlist) Next $b = TimerDiff($a) ConsoleWrite($B) Guisetstate(@SW_UNLOCK,$MyGui ) ;~ GUISetCursor(2) EndFunc When it's slow only with your complicated code then use eliminating method to discover reason. Maybe code in GUIRegisterMsg & WM_Notify, try it yourself... Edited December 31, 2006 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
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