Jump to content

PaulBaumann

Active Members
  • Posts

    25
  • Joined

  • Last visited

About PaulBaumann

  • Birthday 11/03/1961

Profile Information

  • Location
    Germany

PaulBaumann's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, thanks for this tip. This will be the best solution for my needs. My listview normally contains even more unchecked as checked items, so this will will be a major improvement. Thanks for the proof of concept, after integrating this logic into my program the performance was boosted :-) Regarding _GUIListViewEx_ReturnArray I seem to miss something. I took a look at the code and found this: ... Local $aCheck_Array[UBound($aRetArray)] For $i = 1 To UBound($aRetArray) - 1 $aCheck_Array[$i] = _GUICtrlListView_GetItemChecked($aGLVEx_Data[$iIndex][0], $i - 1) Next For me it looked as you are also looping through the whole listview to identify the checked items. Did I miss something? Best wishes Paul PS: anyone who will also use this method should take in account that the itemnumber changes when the listview is sorted. You should sort your array according to the the listview...
  2. Thank for reply. As far a I can see there's no function to get something like a collection of checked elements. So looping through all items can't be eliminated. Using "optimized" (less error control, more specific to this task) functions instead of the UDF functions with all their bells and whistles, seem to be the only way to improve performance. Best wishes Paul
  3. I've created a listview with checkboxes. At some point in my program all checked items have to be processed. To get the checked items I'm looping through the listview: For $i = 0 To _GUICtrlListView_GetItemCount($hLV) - 1 If _GUICtrlListView_GetItemChecked($hLV, $i) Then SQLCheckUpd( _ _GUICtrlListView_GetItemText($hLV, $i, $eFname), _ _GUICtrlListView_GetItemText($hLV, $i, $eCheckakt), _ _GUICtrlListView_GetItemText($hLV, $i, $eScandate)) EndIf Next This works fine, but with a larger number of elements it's very slow. Is there another (faster) way to get all checked items (or their indices) of a listview? Best wishes Paul
  4. Upps, didn't read that. Sorry! With this version the error is gone. Best wishes Paul
  5. no, it 2.1.4.4 from 22.01.2014. This is the one from Scite4AutoIt3.exe just downloaded from http://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe Best wishes Paul
  6. I tried both. First i replaced AutoIt3Wrapper. Because the error persists, I decided to reinstall AutoIt3 and Scitefor Autoit3. But the error persists. For testing purpose I installed autoIt3 in a vm there it worked. BUT this was a Win32 machine. So I could figure out this: Using not the default language and - working in a x32 environment everything works fine. - working in a x64 environment and using #AutoIt3Wrapper_UseX64=y the resource update failed. - working in a x64 environment and omitting #AutoIt3Wrapper_UseX64 the resource works fine. Hope this helps. Paul
  7. Hi, using AutoIt3Wrapper dated 22.01.2014 (Fileversion 2.1.4.4) the error persists, if another language as the default English (GB) is used. Have I downloaded a wrong version of AutoIt3Wrapper? The code i tried: #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Icon=Kombi.ico #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_UseX64=y #AutoIt3Wrapper_Res_Comment=Here goes the comment #AutoIt3Wrapper_Res_Description=Here goes the description #AutoIt3Wrapper_Res_Fileversion=1.0.0.0 #AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y #AutoIt3Wrapper_Res_Language=1031 #AutoIt3Wrapper_Run_Obfuscator=y #Obfuscator_Parameters=/striponly #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ConsoleWrite("I cannot be compiled" & @LF)
  8. You have mail Thanks for help in advance Paul
  9. Hi, since Scite 3.20 this won't work any longer for me. I tried "error.inline=0" but it won't help. What must i do to reactivate the "jump to error" feature? Best wisches Paul
  10. Jepp, the first test seems to be successful. I will do some other test and report the results here. Anyone else testing this new version of _TCP_Server_ClientList? Best wishes Paul
  11. Maybe an AutoIt, but maybe not. The max value of the For loop is fixed, But Ubound() could be changed: ;This line sets the max value of the for loop to UBound($__TCP_SOCKETS)-1 ; ; Some parts of your UDF are working asynchoniusly. What happens if the count of elements in $__TCP_SOCKETS is changed by an asynchron running function just before executing the next line? ; I'm not shure if enumerating an array is the best way. Maybe using sqlite is a alternative to manage the connections and handles? Best wishes Paul
  12. Hi, first of all an upx-packed exe inside a 7z archive which is inside a zip-file is a litte bit suspicious. Checking your exe File using Virustotal: File 7Snap.exe received on 2009.09.07 11:07:55 (UTC) Current status: Loading ... queued waiting scanning finished NOT FOUND STOPPED Result: 4/41 (9.76%) 4 scanners found this file harmful (E.g. signature of W32/Autorun.worm.zf.gen found). No, I won't run this file. Regards Paul
  13. Hi, I can't see a limit of 100 connections. Windows accepts MsgIds in a range from WM_USER(0x400) through 0x7FFF. Link to MSDN. Is there a limit of 100 Msgs depending on AutoIt? Best wishes Paul
  14. A service have to be a special designed console application. A service must not have any interactive or blocking statements inside the main function. A service has to be "compiled" to a cui application. A service wont't run from the commandline. It has to be started by the service control manager (scm). Last but not least: A service is multithreaded by default which is not full supported by autotscript. You have to take care by yourself for syncronisation... Regard Paul
  15. Hi, I found out what's wrong. If the script is codepage encoded, the national chars are replaced with '? chars. If the script is utf-8 encoded everything is fine. In the attaced zip file are 2 scripts demonstrating the effect. BTW: These files are created in Scite and the debugger was called from Scite via menu entry. Best wisches Paul TEST.zip
×
×
  • Create New...