Advertisement
Guest User

adb

a guest
Mar 11th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.34 KB | None | 0 0
  1. #include <AutoItConstants.au3>
  2.  
  3. Local $hTimer = TimerInit()
  4.  
  5. Local $pid = Run("adb.exe" & " exec-out screencap -p", Null, @SW_HIDE, $STDOUT_CHILD)
  6. ProcessWaitClose($pid)
  7. Local $bOutput = StdoutRead($pid, False, True)
  8. Local $diff = TimerDiff($hTimer)
  9. MsgBox(0, "TimeDiff", $diff)
  10.  
  11. $file = FileOpen("img.png", 16+2)
  12. FileWrite($file, $bOutput)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement