Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/16/2017 in all areas

  1. Jos

    Scite coordinates [SOLVED]

    ah ...ok... sorry about that. When you have used the installer: Open Explorer; go to the %LOCALAPPDATA% directory and edit SciTE.session . Jos
    1 point
  2. Definitely, many thanks for this. We all do.
    1 point
  3. This script shows the right usage for GUICtrlGetHandle: #NoTrayIcon #RequireAdmin #include <Constants.au3> #include <GUIConstants.au3> #include <SendMessage.au3> #include <ScrollBarsConstants.au3> #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) Global $Form1 = GUICreate("Form1", 577, 329, 330, 318) Global $Buildprop = GUICtrlCreateButton("Build.prop Info", 24, 56, 113, 185) Global $Logs = GUICtrlCreateEdit("", 216, 56, 297, 193, BitOR($GUI_SS_DEFAULT_EDIT,$ES_READONLY)) GUICtrlSetOnEvent($Buildprop, '_Buildprop') GUISetOnEvent($GUI_EVENT_CLOSE, '_AllExit', $Form1) GUICtrlSetData($Logs, "Logs" & @CRLF) GUISetState(@SW_SHOW, $Form1) If not FileExists(@TempDir & "\adb.exe") Then FileInstall("adb.exe", @TempDir & "\adb.exe", $FC_OVERWRITE) If not FileExists(@TempDir & "\AdbWinApi.dll") Then FileInstall("AdbWinApi.dll", @TempDir & "\AdbWinApi.dll", $FC_OVERWRITE) If not FileExists(@TempDir & "\AdbWinUsbApi.dll") Then FileInstall("AdbWinUsbApi.dll", @TempDir & "\AdbWinUsbApi.dll", $FC_OVERWRITE) While 1 Sleep(3000) _SendMessage(GUICtrlGetHandle($Logs), $WM_VSCROLL, $SB_BOTTOM, 0) WEnd Func _AllExit() GUIDelete(@GUI_WinHandle) Exit EndFunc Func _Buildprop() $iPID = Run("adb shell getprop ro.build.id", "", @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) ProcessWaitClose($iPID) $sOutput = StringStripWS(StdoutRead($iPID), $STR_STRIPLEADING + $STR_STRIPTRAILING) GUICtrlSetData($Logs, GUICtrlRead($Logs) & 'Display id | ' & $sOutput & @CRLF) EndFunc I have spoon-fed the code, But I recommend that you understand how the code and the functions work in AutoIt. https://www.autoitscript.com/wiki/Tutorials
    1 point
×
×
  • Create New...