bepositive Posted September 14, 2014 Posted September 14, 2014 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... 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
JohnOne Posted September 14, 2014 Posted September 14, 2014 t will be nice if any one seniour /moderator give me a code for it... Thanks in advance 1. That's me out/ 2. You're welcome. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators JLogan3o13 Posted September 14, 2014 Moderators Posted September 14, 2014 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. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
bepositive Posted September 14, 2014 Author Posted September 14, 2014 (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 September 14, 2014 by bepositive
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now