Jump to content

Search the Community

Showing results for tags 'readout'.

  • 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

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

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 2 results

  1. Hi, I would like to read the output of my cygwin terminal if it is already up and running. I searched the forum, but I think, the samples were cmd/cygwin needs to be re-run or not yet running. The purpose of the script is to check if compiling is done. Func _JAE_Rebuild_Software ($sSoftwarePath) Local $iMinty = 0 ; Open cygwin process and check one instance only if ProcessExists("mintty.exe") Then $iMinty = ProcessExists("mintty.exe") Else ; Run cygwin if not yet running $iMinty = Run("C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -", "", @SW_SHOW, $STDIN_CHILD + $STDOUT_CHILD) endif ; Loop to check if cygwin terminal is ready While 1 ; if -sh is not error cygwin is still opening Local $hWnd = WinGetHandle("-sh") If @error Then $hWnd = WinGetHandle("~") Else $hWnd = 0 EndIf ; If true cygwin is ready to be written if $hWnd <> '0x00000000' Then ExitLoop EndIf WEnd ; Change Directory $sSoftwarePath = StringReplace($sSoftwarePath,"\", "/") ClipPut($sSoftwarePath) Send('cd ' & $sSoftwarePath & "{ENTER}" ) ; Get New Class after Change Directory Local $sNewClass = WinGetTitle("[ACTIVE]") ; Sleep for 3 seconds. Sleep(3000) ; Change software path to access the makeFile $sSoftwarePath = StringReplace($sSoftwarePath,"/", "\") ; Open Makefile Local $hFileOpen = FileOpen($sSoftwarePath & "\makefile", $FO_READ) If $hFileOpen = -1 Then Return False EndIf Local $sFileRead = FileReadLine($hFileOpen, 12) Local $sSetSource = _StringBetween($sFileRead, "(", ")", $STR_ENDNOTSTART) Local $message Send('source ' & $sSetSource[0] & '.sh' & "{ENTER}") Send('make clean' & "{ENTER}") WinActivate($sNewClass, "") $hWnd = WinWait($sNewClass,"",1) Local $iPID = WinGetProcess($hWnd) While $iMinty $message &= StderrRead($iPID) If @error Then MsgBox(0,"","error") ExitLoop EndIf WEnd ; I only get blank output here since the while condition produces an error MsgBox(0, "Stdout Read:", $message) EndFunc ;==>_JAE_Rebuild_Software
  2. Hi, I just started recently with AutoIT and I am trying to make two dropdownlists where the selectable values of the second dropdownlist will be depending on what is selected on the first one. For example: Dropdown 1 Dropdown 2 xxx => 01-15 ("01" , "02" ,"03" , ...) yyy => a - f ("a" , "b" ,"c" ,"d" ,"e" ,"f" ) zzz => "new", "old", "spare" I started with this code that I've found in this Forum: #include <GUIConstantsEx.au3> ; Here is the array Global $aArray[6] = ["SORT", "PCM", "UNIF", "KKE", "GMS", "CDY"] ; And here we get the elements into a list $sList = "" For $i = 0 To UBound($aArray) - 1 $sList &= "|" & $aArray[$i] Next ; Create a GUI #include <GUIConstantsEx.au3> $hGUI = GUICreate("DropDown", 500, 500) ; Create the combo $hCombo = GUICtrlCreateCombo("", 10, 10, 200, 20) ; And fill it GUICtrlSetData($hCombo, $sList) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Any idea how to start on this one... thanks upfront
×
×
  • Create New...