Sign in to follow this  
Followers 0
bepositive

i need help for coding...

4 posts in this topic

i am trying to make one exe with gui...

Thee code in batch file is as below

@echo off
:start
set STR=
set strlen=
set /p STR=
echo Please Wait Connecting Device
adb wait-for-device 
echo Device Connected 
echo.
adb shell "echo AT+EGMR=1,7,"%STR%" > /dev/ptycmd"
echo.
adb reboot 
 
 
and i want to make like this...
 
rtrt.jpg
 
 
 
how i can do ?plz guide me..am beginer and learing a autoit my self it will be nice if any one seniour /moderator give me a code for it...
 
 
Thanks in advance

Share this post


Link to post
Share on other sites



 
how i can do ?plz guide me..am beginer and learing a autoit my self it will be nice if any one seniour /moderator give me a code for it...

 

 

bepositive, this is not a forum where you tell us what you want and we barf up code for you. You have to show some effort if you expect any amount of assistance.

That said, look at GuiCreate and MsgBox in the help file to get you started.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

hello Respected sir...am really sorry i forget to maintion what is try...

sorry ..

i tried follwiing codes...

#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
 
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form1", 462, 282, 193, 125)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Button1 = GUICtrlCreateButton("Button1", 16, 16, 121, 33, 0)
GUICtrlSetOnEvent(-1, "button1Click")
$Input1 = GUICtrlCreateInput("Input1", 144, 24, 217, 21)
$Edit1 = GUICtrlCreateEdit("", 16, 64, 417, 209)
GUICtrlSetData(-1, "Edit1")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
 
EndSwitch
WEnd
Local $CLEAR = GUICtrlSetData($Edit1, "Connecting you..." & @LF & "")
Local $FOO = Run(@ComSpec & " /c c:adb shell "echo AT+EGMR=1,7,$Input1" > /dev/ptycmd" ", @ScriptDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
            Run(@ComSpec & " /c c:adb.exe reboot ", @ScriptDir, @SW_HIDE)
Local $LINE
While 1
$LINE = StdoutRead($FOO)
If @error Then ExitLoop
GUICtrlSetData($Edit1, $LINE, 1)
WEnd
 EndFunc
 
 
but not sucess..
 
thanks
Edited by bepositive

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0