tommeke228 Posted April 27, 2008 Posted April 27, 2008 (edited) i wantIf button is clicked Thenlaunch programhe clicks the revbot compat checkboxhits startand thats ithere is pic Edited April 27, 2008 by tommeke228
LiLShinta Posted April 27, 2008 Posted April 27, 2008 use au3info.exe in -->C:\Program Files\AutoIt3 get the ControlClickID then write codes like this.. Run("Filename", "working directory") WinWaitActive("SrProxy") ControlClick("SrProxy", RevBot compatibility", "ControlClickID") ->each button or box has its own controlclickid.. ControlClick("SrProxy", Start", "ControlClickID") WinSetState("SrProxy", "", @SW_MINIMIZE)
Developers Jos Posted April 27, 2008 Developers Posted April 27, 2008 .. and your questions is : What? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
C2C Posted April 27, 2008 Posted April 27, 2008 You would have to use the window info tool to map out the control ID's of the checkboxes buttons etc to make it work ----------------------------------90% of teens today would die if Myspace,Bebo + FaceBook had a system failure and was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.----------------------------------Code to win, 'till you die, 'till the compiler dies from your linesCode to win, take it all, just keep coding till you fallDay by day, codin' all the way, I'm not cavin' inLet another App begin, code to win
tommeke228 Posted April 27, 2008 Author Posted April 27, 2008 thx gona try these xD xD if its not working i gona reply xD
tommeke228 Posted April 27, 2008 Author Posted April 27, 2008 (edited) expandcollapse popup#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.10.0 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 144, 62, 193, 125) $Button1 = GUICtrlCreateButton("Button1", 8, 8, 113, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Form1 Case $Form1 Case $Form1 Case $Form1 Case $Button1 if $nmsg = $button1 Then lol() endif EndSwitch WEnd func lol ShellExecute($Text11, "", $Text1) WinWaitActive("SrProxy") ControlClick("SrProxy", RevBot compatibility", "1008") ->each button or box has its own controlclickid.. ControlClick("SrProxy", Start", "1000") WinSetState("SrProxy", "", @SW_MINIMIZE) endfunc now i have this (it gives an error ==> Unterminated string.: ControlClick("SrProxy", RevBot compatibility", "1008") revbot checkbox is 1008 start if 1000 or must i enter something else ? >>>> Window <<<< Title: SrProxy Class: #32770 Position: 669, 205 Size: 288, 327 Style: 0x94CA00C4 ExStyle: 0x00050101 Handle: 0x0007063E >>>> Control <<<< Class: Button Instance: 6 ClassnameNN: Button6 ID: 1008 Text: RevBot compatibility Position: 156, 218 Size: 116, 16 ControlClick Coords: 30, 6 Style: 0x50010003 ExStyle: 0x00000004 Handle: 0x0005060C /////////////////////////////////////////// >>>> Window <<<< Title: SrProxy Class: #32770 Position: 669, 205 Size: 288, 327 Style: 0x94CA00C4 ExStyle: 0x00050101 Handle: 0x0007063E >>>> Control <<<< Class: Button Instance: 3 ClassnameNN: Button3 ID: 1000 Text: Start Position: 11, 268 Size: 75, 23 ControlClick Coords: 32, 12 Style: 0x50010000 ExStyle: 0x00000004 Handle: 0x0008064E Edited April 27, 2008 by tommeke228
LiLShinta Posted April 27, 2008 Posted April 27, 2008 (edited) #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 144, 62, 193, 125) $Button1 = GUICtrlCreateButton("Button1", 8, 8, 113, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 lol() EndSwitch WEnd func lol() run(@scriptdir & "\text.exe", @scriptdir);-->> put the text.exe together with your script. WinWaitActive("SrProxy") ControlClick("SrProxy", "RevBot compatibility", "1008") ->each button or box has its own controlclickid.. ControlClick("SrProxy", "Start", "1000") WinSetState("SrProxy", "", @SW_MINIMIZE) endfunc Edited April 27, 2008 by LiLShinta
tommeke228 Posted April 27, 2008 Author Posted April 27, 2008 now its opening the prog but clicks nothing and then minimiz
tommeke228 Posted April 27, 2008 Author Posted April 27, 2008 Got it lol it must be 1008 not "1008" xD thx people #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 144, 62, 193, 125) $Button1 = GUICtrlCreateButton("Button1", 8, 8, 113, 33, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 lol() EndSwitch WEnd func lol() run(@scriptdir & "\SrProxy.exe", @scriptdir);-->> put the text.exe together with your script. WinWaitActive("SrProxy") ControlClick("SrProxy", "RevBot compatibility", 1008) ControlClick("SrProxy", "Start", 1000) WinSetState("SrProxy", "", @SW_MINIMIZE) endfunc
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