Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/30/2015 in all areas

  1. LAST VERSION - 1.1 18-May-12 Control Viewer (CV) is a replacement of AutoIt Window Info with a number of advantages. I tried to stick to the interface of the last, so you almost do not have to be retrained. During testing, I never managed to find any controls that could not be identified by CV (on the contrary, shows a lot of hidden controls, especially for the system windows). The all program settings are stored in the following registry key: HKEY_CURRENT_USERSoftwareY'sControl Viewer The main differences CV from AWI Shows the complete list of all existing controls for the window that are interested (visible, hidden and deleted controls are displayed with different colors that can be changed to any other).Dynamically changing information during search for the windows and their controls.Ability to quickly switch between controls in the list.Ability to show/hide any controls from the list (useful for the overlaping controls).Information for the Style and ExStyle parameters shown in the form of hexadecimal values​​, and as its flags.Added the PID and Path parameters in the Window tab and ability to quickly open a folder that containing the process file.Added the coordinate system relative to the selected control.Shows a color of the selected pixel in RGB and BGR formats.Shows an example fill of the selected color.Ability to select the text encoding (affects the Text parameter in the Control tab).The complete change the appearance of pop-up frame for the selected controls.Simple and convenient tool to get a screenshot of the part screen of interest for publication on the forum (Capture tab).Create a report in the clipboard or a text file for subsequent publication on the forum.Search all running AutoIt scripts and their windows in the system (AutoIt tab).User-friendly interface. Used shortcuts Ctrl+Alt+T - Enable/Disable "Always On Top" mode (also available from the menu). Ctrl+Alt+H - Enable/Disable highlight selected controls (also available from the menu). Ctrl+A - Select all text (works in any input field). Ctrl - Hold down when moving the mouse to scroll the screenshot (Capture tab). Shift - Hold down when stretching/compression of the contour frame for an equilateral resizing screenshots (Capture tab). DoubleClick (on the screenshot) - Save the image to a file (Capture tab). DoubleClick (on any list item) - Open a folder with the file of the process or AutoIt script (AutoIt tab). Del (on any list item) - Close process (AutoIt tab). F5 - Updating the list (AutoIt tab). If anyone have any questions or comments about CV, please post it in this thread. I will be glad to any feedback and suggestions. Files to download Binary (x86 and x64) Redirection to CV_bin.zip, 1.14 MB CV_bin.html Source Redirection to CV_source.zip, 691 KB CV_source.html
    1 point
  2. $iRandomNumber = Random(1, 3, 1) Switch $iRandomNumber Case 1 ; Code Case 2 ; Code Case 3 ; Code EndSwitch
    1 point
  3. Melba23

    Check if Array is empty

    excelsi, You get the "Unbalanced brackets in expression" error because you have unbalanced brackets - you do not need these ones: If IsArray($aArray[1][0]) Then ( ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< $WName = $aArray[1][0] ; Wait 0 seconds for the Cleanmgr window to appear. Local $hWnd = WinWait($WName, "", 0) ; Set the state of the Cleanmgr window to "hide". WinSetState($hWnd, "", @SW_HIDE) ) ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<But I would approach the whole thing slightly differently: #include <MsgBoxConstants.au3> $iPid = Run("cleanmgr.exe") ; Look for max 10 sec $nBegin = TimerInit() While 1 ; See if a window has appeared - using $nShow = 1 returns an array if the window exists and an error if not $aArray = _WinGetInfoByProcess("cleanmgr.exe", 1) ; No error, so window has appeared and we continue If @error = 0 Then ExitLoop ; Check timeout has not expired If TimerDiff($nBegin) > 10 * 1000 Then ; Announce failure and exit MsgBox($MB_SYSTEMMODAL, "Error", "Timeout") Exit EndIf ; Try again Wend ; We have found a window, so extract name ; But it would be better to use handle $WName = $aArray[1][0] ; $hWnd = $aArray[1][1] WinSetState($WName, "", @SW_HIDE) ; WinSetState($hWnd, "", @SW_HIDE) Func _WinGetInfoByProcess($vProcess, $nShow = 2) ; Do not force CleanMgr name here ; Rest of codeThat works for me - please ask if you have any questions. M23
    1 point
  4. Melba23

    empty argument error

    shad0wless, You first need to check $CmdLine[0] to see if there are any parameters passed - then do not try to read $CmdLine[1] if it does not exist. M23
    1 point
  5. To figure this out, you need to study the DOM at MSDN some... but here you go: #include <IE.au3> $oIE = _IE_Example ("form") $oForm = _IEFormGetObjByName ($oIE, "ExampleForm") $oSelect = _IEFormElementGetObjByName ($oForm, "selectExample") $oOptions = $oSelect.options For $oOption in $oOptions ConsoleWrite($oOption.text & @CR) Next Dale
    1 point
×
×
  • Create New...