Skip to content

Instantly share code, notes, and snippets.

@basictomonokai
Created March 14, 2017 01:18
Show Gist options
  • Save basictomonokai/38827e16f24c9bab67a7aa3ad99cc325 to your computer and use it in GitHub Desktop.
Save basictomonokai/38827e16f24c9bab67a7aa3ad99cc325 to your computer and use it in GitHub Desktop.
console.log取得(BASIC!)
console.title "logcat"
! HTML MODE
html.open
html.load.url "jstest2.html"
pause 3000
html.close
pause 1000
PRINT "***logcat start***"
r$="logcat"
! os command mode
system.OPEN
! write the command
system.WRITE r$
! Give system time to respond
PAUSE 500
loop:
! check for a response
system.READ.READY ready
! if no input, do next command
IF !ready THEN GOTO loop
! read responses
DO
system.READ.LINE l$
!PRINT l$
if is_in("chromium",l$) > 0 then
PRINT l$
endif
system.READ.READY ready
UNTIL !ready
pause 1000
PRINT "***logcat ended***"
console.save "logcat.txt"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment