Jump to content

Search the Community

Showing results for tags 'Multi processing'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Apparently it's not that simple when another process created the entry, this has been baffling me for the past few hours. Anyone know how to make it sortable? #include <GuiListView.au3> If StringInStr($CmdLineRaw, "/Hwnd=", 2) Then Global $Hwnd = StringStripWS(StringReplace($Cmdline[$Cmdline[0] - 1], "/Hwnd=", ""), 8) Global $CTRL = StringStripWS(StringReplace($Cmdline[$Cmdline[0] - 2], "/CTRL=", ""), 8) Global $Entry = StringStripWS(StringReplace($Cmdline[$Cmdline[0]], "/DATA=", ""), 8) $Hwnd = ControlGetHandle(HWnd($Hwnd), "", HWnd($CTRL)) Global $ItemCount = _GUICtrlListView_GetItemCount($Hwnd) _GUICtrlListView_AddItem($Hwnd, $Entry) _GUICtrlListView_AddSubItem($Hwnd, $ItemCount, @HOUR&":"&@MIN&":"&@SEC, 1) Exit 0 EndIf AutoItSetOption("GUIOnEventMode", 1) AutoItSetOption("GUIResizeMode", 1) Global Const $WS_RESIZABLE = 0x00070000 Global $GUI Global $ListView1 $GUI = WinGetHandle(GUICreate("test", 465, 280, -1, -1, $WS_RESIZABLE)) GUISetOnEvent(-3, "Terminate") $ListView1 = GUICtrlCreateListView("1|2", 4, 49, 450, 166) GUICtrlSetOnEvent(-1, "SortIt") DllCall("USER32.DLL", "lresult", "SendMessageW", "hwnd", GUICtrlGetHandle($ListView1), "uint", 0x1000 + 30, "wparam", 0, "lparam", 120) GUICtrlCreateButton("Test this", 172, 225, 65, 25) GUICtrlSetOnEvent(-1, "TEST") GUISetState(@SW_SHOW) _GUICtrlListView_RegisterSortCallBack($ListView1) While 1 Sleep(100) WEnd Func TEST() For $I = 0 To 8 Switch @Compiled Case True $ChildPID = Run(FileGetShortName(@ScriptFullPath) & " /CTRL=" & GUICtrlGetHandle($ListView1) & " /Hwnd=" & $GUI & " /DATA=" & $I) Case False $ChildPID = Run(FileGetShortName(@AutoItExe) & ' /AutoIt3ExecuteScript "' & @ScriptFullPath & '"' & " /CTRL=" & GUICtrlGetHandle($ListView1) & " /Hwnd=" & $GUI & " /DATA=" & $I) EndSwitch Sleep(1000) Next Return 1 EndFunc ;==>TEST Func SortIt() _GUICtrlListView_SortItems($ListView1, GUICtrlGetState($ListView1)) Return $__LISTVIEWCONSTANT_GUI_RUNDEFMSG EndFunc ;==>SortIt Func Terminate() _GUICtrlListView_UnRegisterSortCallBack($ListView1) Exit 0 EndFunc ;==>Terminate
×
×
  • Create New...