Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
1.0.4 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
LeddaZ committed Jun 27, 2019
1 parent d699001 commit 2c3ef27
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cmds/copyfrom.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
echo Enter file path:
set /p path=
adb\adb.exe push %path% /sdcard
adb\adb.exe push -a %path% /sdcard
pause
exit
2 changes: 1 addition & 1 deletion cmds/copyto.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
echo Enter file path:
set /p path=
adb\adb.exe pull %path% %USERPROFILE%\Desktop
adb\adb.exe pull -a %path% %USERPROFILE%\Desktop
pause
exit
12 changes: 12 additions & 0 deletions cmds/record.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@echo off
set CUR_YYYY=%date:~10,4%
set CUR_MM=%date:~4,2%
set CUR_DD=%date:~7,2%
set CUR_HH=%time:~0,2%
if %CUR_HH% lss 10 (set CUR_HH=0%time:~1,1%)
set CUR_NN=%time:~3,2%
set CUR_SS=%time:~6,2%
set CUR_MS=%time:~9,2%
set filename=%CUR_YYYY%%CUR_MM%%CUR_DD%-%CUR_HH%%CUR_NN%%CUR_SS%.mp4
echo The video will be saved in /sdcard/%filename%. Press Ctrl-C to stop.
adb shell screenrecord /sdcard/%filename%
63 changes: 46 additions & 17 deletions src/ADBManager/Form1.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/ADBManager/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
Process.Start("C:\Windows\system32\cmd.exe", "/C cmds\copyfrom.bat")
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles BtnCopyTo.Click
Process.Start("C:\Windows\system32\cmd.exe", "/C cmds\copyto.bat")
End Sub

Private Sub BtnRecord_Click(sender As Object, e As EventArgs) Handles BtnRecord.Click
Process.Start("C:\Windows\system32\cmd.exe", "/C cmds\record.bat")
End Sub
End Class

0 comments on commit 2c3ef27

Please sign in to comment.