Jump to content

Sahar

Members
  • Posts

    18
  • Joined

  • Last visited

Profile Information

  • Location
    Sydney

Recent Profile Visitors

180 profile views

Sahar's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. woww...It's working, after putting Aut2exe.exe in script's folder the problem got solved
  2. I've tried these 2 in batch files : setlocal enableextensions disabledelayedexpansion for %%a in ("C:\Test\*.au3") do ( C:\Program Files (x86)\AutoIt3\Aut2Exe\Aut2exe.exe /in "%%~fa" /out "%%~dpna.exe" ) AND for /f %%f in ('C:\Test\*.au3') do C:\Program Files (x86)\AutoIt3\Aut2Exe\Aut2exe.exe /in %%f non of them worked I'm not good at batch files so I cannot find the reason of failure, I would be thankful if you help me... Also how can I do it via command line?
  3. I need a script or batch file to compile bunch of *.au3 in a folder and recieve *.exe in that folder, would you please help me about that?
  4. woww..Thanks Water for giving me the idea, I am selecting it by Enter Send("{Enter}")
  5. Thanks Synapsee, It worked fine to select the item, now how should I click it?
  6. Now I have all the items in both array and ControlListView; should I use _GUICtrlListView for click item? I did not find anything for array or ControlListView that gives click functionality....
  7. I've tried 2 ways as are shown below but non of them worked!! For $i = 0 To $iItemCount - 1 Local $arg = $aHeadCode[$i] switch $arg case "1C01DB" MsgBox($MB_SYSTEMMODAL, "", ControlListView($handle, "", "[Class:SysListView32; INSTANCE:1]", "FindItem", $i, 0) ;First way _GUICtrlListView_SetItemSelected($arg, $i) ;Second way _GUICtrlListView_ClickItem($arg, $i) EndSwitch Next
  8. Is it possible that I click one row by knowing the text? for example I have lots of cases that we want to click on one record based on HeadCode, I don't like to use position;Now I have all the elements in array just needs to check if that item exists in array then click it then goes to next page, would you please help me about that?
  9. Thanks everybody, now I am able to put each column in an array and work with it, this is the code that is working for me and you guys helped me alot to write: $aWinList = WinList("[CLASS:#32770]") Local $handle For $i = 1 to $aWinList[0][0] If BitAND(WinGetState($aWinList[$i][1]), 2) Then ; is the window visible ? $handle = $aWinList[$i][1] Exitloop EndIf Next $iItemCount = ControlListView($handle, "", "[Class:SysListView32; INSTANCE:1]", "GetItemCount") Global $aHeadCode[$iItemCount] Global $aDescription[$iItemCount] Global $aDepart[$iItemCount] For $i = 0 To $iItemCount - 1 $aHeadCode[$i] = ControlListView($handle, "", "[Class:SysListView32; INSTANCE:1]", "GetText", $i, 0) $aDescription[$i] = ControlListView($handle, "", "[Class:SysListView32]", "GetText", $i, 1) $aDepart[$i] = ControlListView($handle, "", "[Class:SysListView32]", "GetText", $i, 2) Next _ArrayDisplay($aHeadCode) _ArrayDisplay($aDescription) _ArrayDisplay($aDepart)
  10. Thanks JLogan3o13, I've put double quotes so there isn't syntax error anymore but $iItemCount is displayed as zero! MsgBox("","",$iItemCount)
  11. As you've advised I used class in ControlListView but I am receiving syntax error!
  12. When I am using : Local $hHWiNFO = WinGetHandle("[REGEXPTITLE:HWiNFO(.*) Sensor Status]") window handle is coming as 0x00000000
  13. Do I need to mention control ID which is "1310" in ControlListView ? now we haven't addressed which control do we want to be found...
  14. Hi Water, Thanks for your reply, I've tried that code but always $iItemCount iz zero! Global $sTitle = "Timetables" ; <== Set the title of your window here Global $iItemCount = ControlListView($sTitle, "","[Class:SysListView32]", "GetItemCount") Global $aHeadCode[$iItemCount] Global $aDescription[$iItemCount] Global $aDepart[$iItemCount] For $i = 0 To $iItemCount - 1 $aHeadCode[$i] = ControlListView("Timetables", "", "[Class:SysListView32]", "GetText", $i, 0) $aDescription[$i] = ControlListView("Timetables", "", "[Class:SysListView32]", "GetText", $i, 1) $aDepart[$i] = ControlListView("Timetables", "", "[Class:SysListView32]", "GetText", $i, 2) Next _ArrayDisplay($aHeadCode) _ArrayDisplay($aDescription) _ArrayDisplay($aDepart)
×
×
  • Create New...