Valnurat

Listview search

5 posts in this topic

I have 8 listview on my GUI. I would like to search in the listview for a number. I only want to search in 3 of the 8 listviews. I know number 1 is in $hLV_C1 and not in the others, but when I run this the result is that that I get the message that it is found in all of my 3 listviews I want to search for.

Global $aSearchListview[3] = ["$hLV_C1","$hLV_C3","$hLV_C5"]
    $hLV_C1 = GUICtrlCreateListView('0', 245, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C1, 0, $LVSCW_AUTOSIZE)
    $hLV_C2 = GUICtrlCreateListView('0', 275, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C2, 0, $LVSCW_AUTOSIZE)
    $hLV_C3 = GUICtrlCreateListView('0', 305, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C3, 0, $LVSCW_AUTOSIZE)
    $hLV_C4 = GUICtrlCreateListView('0', 335, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C4, 0, $LVSCW_AUTOSIZE)
    $hLV_C5 = GUICtrlCreateListView('0', 365, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C5, 0, $LVSCW_AUTOSIZE)
    $hLV_C6 = GUICtrlCreateListView('0', 395, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C6, 0, $LVSCW_AUTOSIZE)
    $hLV_C7 = GUICtrlCreateListView('0', 425, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER, $WS_EX_TRANSPARENT)
    _GUICtrlListView_SetColumnWidth($hLV_C7, 0, $LVSCW_AUTOSIZE)

    
    Local $sNumber = '1', $g_bSortSense = false
    GUICtrlCreateListViewItem($sNumber, $hLV_C1)
    _GUICtrlListView_SimpleSort($hLV_C1,$g_bSortSense,0,False)
    For $iColumnIndex = 0 to UBound($aSearchListview) -1
        Local $iIndex = _GUICtrlListView_FindItem($aSearchListview[$iColumnIndex],-1,$sNumber)
        If $iIndex <> -1 Then
            MsgBox(0,'Found',$aSearchListview[$iColumnIndex])
        Else
            MsgBox(0,'Not Found',$aSearchListview[$iColumnIndex])
        EndIf
    Next

Why is that?


Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites



Please, make a full runable with populated LV's (reproducer) script showing your issue(s).

Share this post


Link to post
Share on other sites
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>

Local $aGUT[0]
Local $aSearchListview[3] = ["$hLV_C1","$hLV_C3","$hLV_C5"]
Local $MainGUIForm = GUICreate("My GUI",455,600)
Local $hHeader, $sNumber, $g_bSortSense = False

    For $i = 0 To 90
        _ArrayAdd($aGUT, $i)
    Next
    GUICtrlCreateTabItem("R/B")
    $hLV_RB = GUICtrlCreateListView('Test', 50, 100, 94, 255, $LVS_NOCOLUMNHEADER)

    ; Now calculate ListView 2 vertical size
    $hHeader = _GUICtrlListView_GetHeader($hLV_RB)
    $aSize = WinGetPos($hHeader)
    $iHeaderHeight = $aSize[3] ; Header height
    $aRect = _GUICtrlListView_GetItemRect($hLV_RB, 0)
    $iItemHeight = $aRect[3] - $aRect[1] ; Item height
    $iTotalHeight = $iHeaderHeight + (20 * ($iItemHeight + .5)) -10 ; Allow for the inter-item gaps
    $hLV_C0 = GUICtrlCreateListView('0', 185, 40, 50, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C0, 0, $LVSCW_AUTOSIZE)
    For $i = 0 To 12
        GUICtrlCreateListViewItem( $i, $hLV_C0)
    Next
    $hLV_C1 = GUICtrlCreateListView('0', 245, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C1, 0, $LVSCW_AUTOSIZE)
    $hLV_C2 = GUICtrlCreateListView('0', 275, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C2, 0, $LVSCW_AUTOSIZE)
    $hLV_C3 = GUICtrlCreateListView('0', 305, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C3, 0, $LVSCW_AUTOSIZE)
    $hLV_C4 = GUICtrlCreateListView('0', 335, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C4, 0, $LVSCW_AUTOSIZE)
    $hLV_C5 = GUICtrlCreateListView('0', 365, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C5, 0, $LVSCW_AUTOSIZE)
    $hLV_C6 = GUICtrlCreateListView('0', 395, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C6, 0, $LVSCW_AUTOSIZE)
    $hLV_C7 = GUICtrlCreateListView('0', 425, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C7, 0, $LVSCW_AUTOSIZE)

Local $id0 = GUICtrlCreatePic("C:\Program Files (x86)\AutoIt3\Examples\GUI\logo4.gif", 0, 0, 169, 68)


GUISetState(@SW_SHOW)

$bProceed = False
Do
    $idMsg = GUIGetMsg()
    Switch $idMsg
        Case $id0
            $sNumber = '1'
            $bProceed = True
    EndSwitch
    If $bProceed Then
        $iIndex = _ArraySearch($aGUT, $sNumber)
        If $iIndex <> - 1 Then
            ; Delete it
            _ArrayDelete($aGUT, $iIndex)
            ; Now clear ListViews 0
            _GUICtrlListView_BeginUpdate($hLV_C0)
            _GUICtrlListView_DeleteAllItems($hLV_C0)
            ; And reload with all / the top 20 elements in the main array
            For $i = 0 To UBound($aGUT) - 1
                If $i < 13 Then
                    GUICtrlCreateListViewItem($aGUT[$i], $hLV_C0)
                EndIf
            Next
            _GUICtrlListView_EndUpdate($hLV_C0)
            GUICtrlCreateListViewItem($sNumber, $hLV_C1)
            _GUICtrlListView_SimpleSort($hLV_C1,$g_bSortSense,0,False)
        Else
            For $iColumnIndex = 0 to UBound($aSearchListview) -1
                Local $iIndex = _GUICtrlListView_FindItem($aSearchListview[$iColumnIndex],-1,$sNumber)
                If $iIndex <> -1 Then
                    MsgBox(0,'Found',$aSearchListview[$iColumnIndex])
                Else
                    MsgBox(0,'Not Found',$aSearchListview[$iColumnIndex])
                EndIf
            Next
        EndIf
        $bProceed = False
        $sNumber = ''
    EndIf
Until $idMsg = $GUI_EVENT_CLOSE

This will produce the error. I'm searching in listview ["$hLV_C1","$hLV_C3","$hLV_C5"], but I know that my number is only in $hLV_C1 2nd time I press the AutoIT logo.

 

Press AutoIT logo and you will see number 2 is moved from one LV0 to LV1.


Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites
  1. your array $aSearchListview holds strings, it must be the ControlID's
  2. _GUICtrlListView_FindItem is not the func you need use _GUICtrlListView_FindText
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>

Local $aGUT[0]
Local $aSearchListview[3] = ["$hLV_C1","$hLV_C3","$hLV_C5"]
Local $MainGUIForm = GUICreate("My GUI",455,600)
Local $hHeader, $sNumber, $g_bSortSense = False

    For $i = 0 To 90
        _ArrayAdd($aGUT, $i)
    Next
    GUICtrlCreateTabItem("R/B")
    $hLV_RB = GUICtrlCreateListView('Test', 50, 100, 94, 255, $LVS_NOCOLUMNHEADER)

    ; Now calculate ListView 2 vertical size
    $hHeader = _GUICtrlListView_GetHeader($hLV_RB)
    $aSize = WinGetPos($hHeader)
    $iHeaderHeight = $aSize[3] ; Header height
    $aRect = _GUICtrlListView_GetItemRect($hLV_RB, 0)
    $iItemHeight = $aRect[3] - $aRect[1] ; Item height
    $iTotalHeight = $iHeaderHeight + (20 * ($iItemHeight + .5)) -10 ; Allow for the inter-item gaps
    $hLV_C0 = GUICtrlCreateListView('0', 185, 40, 50, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C0, 0, $LVSCW_AUTOSIZE)
    For $i = 0 To 12
        GUICtrlCreateListViewItem( $i, $hLV_C0)
    Next
    $hLV_C1 = GUICtrlCreateListView('0', 245, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C1, 0, $LVSCW_AUTOSIZE)
    $hLV_C2 = GUICtrlCreateListView('0', 275, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C2, 0, $LVSCW_AUTOSIZE)
    $hLV_C3 = GUICtrlCreateListView('0', 305, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C3, 0, $LVSCW_AUTOSIZE)
    $hLV_C4 = GUICtrlCreateListView('0', 335, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C4, 0, $LVSCW_AUTOSIZE)
    $hLV_C5 = GUICtrlCreateListView('0', 365, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C5, 0, $LVSCW_AUTOSIZE)
    $hLV_C6 = GUICtrlCreateListView('0', 395, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C6, 0, $LVSCW_AUTOSIZE)
    $hLV_C7 = GUICtrlCreateListView('0', 425, 40, 25, $iTotalHeight, $LVS_NOCOLUMNHEADER)
    _GUICtrlListView_SetColumnWidth($hLV_C7, 0, $LVSCW_AUTOSIZE)

Local $id0 = GUICtrlCreatePic("C:\Program Files (x86)\AutoIt3\Examples\GUI\logo4.gif", 0, 0, 169, 68)
$aSearchListview[0]=$hLV_C1
$aSearchListview[1]=$hLV_C3
$aSearchListview[2]=$hLV_C5

GUISetState(@SW_SHOW)

$bProceed = False
Do
    $idMsg = GUIGetMsg()
    Switch $idMsg
        Case $id0
            $sNumber = '1'
            $bProceed = True
    EndSwitch
    If $bProceed Then
        $iIndex = _ArraySearch($aGUT, $sNumber)
        If $iIndex <> - 1 Then
            ; Delete it
            _ArrayDelete($aGUT, $iIndex)
            ; Now clear ListViews 0
            _GUICtrlListView_BeginUpdate($hLV_C0)
            _GUICtrlListView_DeleteAllItems($hLV_C0)
            ; And reload with all / the top 20 elements in the main array
            For $i = 0 To UBound($aGUT) - 1
                If $i < 13 Then
                    GUICtrlCreateListViewItem($aGUT[$i], $hLV_C0)
                EndIf
            Next
            _GUICtrlListView_EndUpdate($hLV_C0)
            GUICtrlCreateListViewItem($sNumber, $hLV_C1)
            _GUICtrlListView_SimpleSort($hLV_C1,$g_bSortSense,0,False)
        Else
            For $iColumnIndex = 0 to UBound($aSearchListview) -1
                Local $iIndex = _GUICtrlListView_FindText($aSearchListview[$iColumnIndex],$sNumber,-1,False)
                If $iIndex <> -1 Then
                    MsgBox(0,'Found',$aSearchListview[$iColumnIndex])
                Else
                    MsgBox(0,'Not Found',$aSearchListview[$iColumnIndex])
                EndIf
            Next
        EndIf
        $bProceed = False
        $sNumber = ''
    EndIf
Until $idMsg = $GUI_EVENT_CLOSE

your Piccontrol can cause troubles: if the path to pic is incorect a endless searching is done.

Share this post


Link to post
Share on other sites

Aha, of course. Doh.

 

Thank you.


Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • anub13
      By anub13
      Hi,

      I am having difficulties wondering why my code bugging like this,
      the symptom : I have a form with combo box, and details in bottom of the app, when user choose another option the details changes immediately but when I go to details, it goes up and down endlessly
      here is the code
       
      Global $cChkPatrol, $YES= "YES", $NO = "NO" if GUICtrlRead($combo1) = "YES" Then $cChkPatrol = $YES Else $cChkPatrol = $NO EndIf func StartForm() GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) GUISetState(@SW_SHOW) AdlibRegister("_CheckPatrol") While 1 $nMsg = GUIGetMsg() Select case $nMsg = $txtEmailAddress GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $txtPhone GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $txtFullName GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $cChkPatrol GUICtrlSetData($txtInfo,"ADDITIONAL INFORMATION THAT WILL BE SENT WITH THE MESSAGE:" & @CRLF & asdfgSystemInfo()) case $nMsg = $cmdScreenShot $gScreenShotFile = SaveScreenShot() case $nMsg = $cmdSubmit if ValidateForm() then if asdfgSubmit() Then UpdateStatus("Your request has been sent successfully") MsgBox(0,"Help Requested","Your request has been sent successfully") ExitLoop Else MsgBox(0,"Help Failed","Something is wrong you request was not sent, please try again") Endif endIf case $nMsg = $cmdAttach $gAttachFile = AttachFile() Case $nMsg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEnd AdlibUnRegister("_CheckPatrol") EndFunc func asdfgSystemInfo() dim $asdfgInfo $asdfgInfo = "" & @CRLF if $isAdminVersion=1 then $asdfgInfo = $asdfgInfo & @CRLF & " Ticket Tags:" & @CRLF $asdfgInfo = $asdfgInfo & "~#userphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF $asdfgInfo = $asdfgInfo & "~#submitterphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF dim $MachineID $MachineID = KaseyaIni($gKIniFile,"SERVER COMMUNICATIONS","User_Name","NotFound") $asdfgInfo = $asdfgInfo & "~#machineid='" & $MachineID & "'" & @CRLF dim $OrgGroups $OrgGroups= StringSplit($MachineID,".") dim $OrgGroupIndex $OrgGroupIndex = UBound($OrgGroups) - 1 $asdfgInfo = $asdfgInfo & "~#organization='" & $OrgGroups[$OrgGroupIndex] & "'" & @CRLF dim $EmailUser $EmailUser = GUICtrlRead($txtEmailAddress) $EmailUser = StringMid($EmailUser,1,StringInStr($EmailUser,"@") - 1) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "~#username='" & $EmailUser & "'" & @CRLF ;dim ;Call("isChecked") ;$categ = GUICtrlRead($chkPatrol) ;$asdfgInfo = $asdfgInfo & "-#category='" & $categ & "'" & @CRLF EndIf $asdfgInfo = $asdfgInfo & "Email:" & GUICtrlRead($txtEmailAddress) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "Full Name:" & GUICtrlRead($txtFullName) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "Phone:" & GUICtrlRead($txtPhone) & @CRLF & @CRLF $asdfgInfo = $asdfgInfo & "DateTime:" & _Now() & @CRLF $asdfgInfo = $asdfgInfo & "MachineName:" & @ComputerName & @CRLF $asdfgInfo = $asdfgInfo & "UserName:" & @UserName & @CRLF $asdfgInfo = $asdfgInfo & "OS:" & @OSType & " " & @OSVersion & @CRLF $asdfgInfo = $asdfgInfo & "LogonDomain:" & @OSType & " " & @LogonDomain & @CRLF $asdfgInfo = $asdfgInfo & "LogonDNSDomain:" & @OSType & " " & @LogonDNSDomain & @CRLF $asdfgInfo = $asdfgInfo & "OS:" & @OSType & " " & @OSVersion & @CRLF $asdfgInfo = $asdfgInfo & "IP Address:" & @IPAddress1 & @CRLF $asdfgInfo = $asdfgInfo & "Public IP Address:" & GetPublicIP() &@CRLF ;$asdfgInfo = $asdfgInfo & "Public IP Address:" & _GetIP () &@CRLF $asdfgInfo = $asdfgInfo & "OS:" & NetAdapterInfo() $asdfgInfo = $asdfgInfo & "KaseyaInstalled:" & KaseyaInstalled() & @CRLF $asdfgInfo = $asdfgInfo & "KaseyaRunning:" & KaseyaRunning() & @CRLF $asdfgInfo = $asdfgInfo & "KaseyaAgentGUID:" & KaseyaIni($gKIniFile,"SERVER COMMUNICATIONS","Agent_Guid","NotFound") & @CRLF $asdfgInfo = $asdfgInfo & "asdfgPaid:" & isasdfgIDPaid() & @CRLF if $isAdminVersion=0 then $asdfgInfo = $asdfgInfo & @CRLF & " Ticket Tags:" & @CRLF $asdfgInfo = $asdfgInfo & "~userphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF $asdfgInfo = $asdfgInfo & "~submitterphone='" & GUICtrlRead($txtPhone) & "'" & @CRLF dim $MachineID $MachineID = KaseyaIni($gKIniFile,"SERVER COMMUNICATIONS","User_Name","NotFound") $asdfgInfo = $asdfgInfo & "~machineid='" & $MachineID & "'" & @CRLF dim $OrgGroups $OrgGroups= StringSplit($MachineID,".") dim $OrgGroupIndex $OrgGroupIndex = UBound($OrgGroups) - 1 $asdfgInfo = $asdfgInfo & "~organization='" & $OrgGroups[$OrgGroupIndex] & "'" & @CRLF dim $EmailUser $EmailUser = GUICtrlRead($txtEmailAddress) $EmailUser = StringMid($EmailUser,1,StringInStr($EmailUser,"@") - 1) $asdfgInfo = $asdfgInfo & "~username='" & $EmailUser & "'" & @CRLF dim $categ $categ = $chkPatrol $asdfgInfo = $asdfgInfo & "~category='" & $categ & "'" & @CRLF dim $track $track = $cChkPatrol $asdfgInfo = $asdfgInfo & "~test='" & $cChkPatrol & "'" & @CRLF $asdfgInfo = $asdfgInfo & "~afterhour='" & $AfterHour & "'" & @CRLF endif Return $asdfgInfo endFunc  
      Yes it was same app as previous post in the forum I asked, I also having experience this happening before but I fail to understand the reason why this is happening. Thanks in advance.
      ButtonSupport - Copy.au3
    • Fhelipe
      By Fhelipe
      So I wanted to use my machine as a server for a program that had a unique login system. It can only log in 1 person and the password is in the script itself. I would like to adptar my code or change it completely so that I can create a database and the Script At Time Of Login Get Database Login And Log In
      Experience with Autoit: Basic                      (sorry for bad English)
      Experience with SQL: None                              (translator only)
      Code Currently Used To Login:
      ;=========================================================
      While 1
          $MSG = GUIGetMsg()
          Switch $MSG
          Case $ButtonOk
              If VerifyLogin(GUICtrlRead($USERNAME),GUICtrlRead($PASSWORD)) = 1 Then
                  GUIDelete($Form1)
                  MsgBox(-1,"Logado com Sucesso","Login Sucedido, Para Parar o Aimbot Pressione ESC!")
                  Run ("C:\Program Files (x86)\Steam\steamapps\common\Mitos.is The Game\Mitosis.exe")
                  RunP()
              Else
                  MsgBox(-1,"Error","Usúario ou Senha está incorreto, Ou Ainda Não Pagou!")
               EndIf
          Case -3
              Exit
           Case $ButtonCancel
              Exit
                Case $HelpButton
               MsgBox(-1, "Criadores", "Criadores: Zummey & Ralta")
      Case $Register
         MsgBox(-1, "ERRO", "PROGRAMA EM DESENVOLVIMENTO FUNÇÃO DESABILITADA")
          EndSwitch
      WEnd
      Func VerifyLogin($USERNAME,$PASSWORD)
          If $USERNAME = "Zummey" And $PASSWORD = "xd90fe10" Then
              Return 1
          Else
              Return 0
          EndIf
      EndFunc; End login
      ;=========================================================
    • IamKJ
      By IamKJ
      I am trying to allow the GUI to gather info as to when to execute a function.  I am having trouble doing this.  So far this is what I have.
       
      ;Timer Func timer () If Not IsDeclared("iMsgBoxAnswer") Then Local $iMsgBoxAnswer $iMsgBoxAnswer = MsgBox(36,"Timer","Please format your answer in 00:00:00:000") Select Case $iMsgBoxAnswer = 6 ;Yes Global $infotime = InputBox ('Time', 'What time to execute?') Do $rawtimer = ToolTip(@Hour & ':' & @Min & ':' & @Sec & ':' & _MSec()) until $rawtimer = $infotime if $rawtimer = $infotime Then msgbox (0,'Worked','Worked') Else EndIf Case $iMsgBoxAnswer = 7 ;No Exit EndSelect EndFunc Func _MSec() Local $stSystemTime = DllStructCreate('ushort;ushort;ushort;ushort;ushort;ushort;ushort;ushort') DllCall('kernel32.dll', 'none', 'GetSystemTime', 'ptr', DllStructGetPtr($stSystemTime)) $sMilliSeconds = StringFormat('%03d', DllStructGetData($stSystemTime, 8)) $stSystemTime = 0 Return $sMilliSeconds EndFunc I have also tried _GUIToolTip_GetText in order to read the tooltip until the time specified, but it still doesn't work.  Any help would be great.
    • IamKJ
      By IamKJ
      So I have a lot of different functions in the little program I'm making.  Most of them use the Do statement, such as finding images, clicking buttons, etc.
       
      The question I have is how would I be able to both
      1) Create a hotkey to pause whatever I am doing at the moment.  If I have to put something into every function in the program, I don't mind.
      2) Create a hotkey to exit whatever I am doing and stop all loops or commands and bring back the main GUI?
    • Manivel
      By Manivel
      Hi,
      Can any one please share the Connection string for SQL Developer. 
      How to Connect the SQL Developer from AutoIT. We need to execute the query through AutoIt. is that possible ?