kiii Posted June 9, 2005 Share Posted June 9, 2005 (edited) i need Increase the new function in may the execution file. Whether or not uses AUTOIT to realize? Opens a program. // Run("mstsc.exe") I click on a button, carries out an instruction. //ControlClick("Remote Desktop Connection", "Co&nnect", "Button1") the commond is bud //MsgBox(0, "okay", "you a connect...") I click on another button, carries out another instruction. //ControlClick("Remote Desktop Connection", "Cancel", "Button2") //MsgBox(0, "oh noo", "you a cancel...") help me~~~ i need i click the connect button popup a new windows msg "you a connect" i need help........... ---------------------------------------------------------------- When a button is pressed down at the same time carries out other Sentence #NoTrayIcon RunWait("TEST.exe") WinActivate("TEST") WinWaitActive("TEST") $jap = ControlCommand("TEST", "", "jap", "Check", "left") $eur = ControlCommand("TEST", "", "eur", "Check", "left") $usa = ControlCommand("TEST", "", "usa", "Check", "left") $uk = ControlCommand("TEST", "", "uk", "Check", "left") If $jap Then MsgBox(0, "jap", "you choice japan") FileDelete("test.bin") FileCopy("jap.rom", "test.bin") ElseIf $eur Then MsgBox(0, "eur", "you choice europe") FileDelete("test.bin") FileCopy("eur.rom", "test.bin") ElseIf $usa Then MsgBox(0, "usa", "you choice USA") FileDelete("test.bin") FileCopy("usa.rom", "test.bin") ElseIf $uk Then MsgBox(0, "uk", "you choice UK") FileDelete("test.bin") FileCopy("uk.rom", "test.bin") Exit Endif I am a novice I NEED HELP Edited June 9, 2005 by kiii Link to comment Share on other sites More sharing options...
MHz Posted June 9, 2005 Share Posted June 9, 2005 Hi kiii, Descriptive titles on threads please. "Check", "" This check in ControlCommand. The final set of "" should remain empty. This would be your problem? Link to comment Share on other sites More sharing options...
kiii Posted June 9, 2005 Author Share Posted June 9, 2005 I need... Runs an external program. Click program a Button. At the same time. Run other commands. Link to comment Share on other sites More sharing options...
MHz Posted June 9, 2005 Share Posted June 9, 2005 Consider using Run() instead of RunWait(), so you can do the other things. Sorry, missed that. :"> Link to comment Share on other sites More sharing options...
kiii Posted June 9, 2005 Author Share Posted June 9, 2005 help me~ a other program(c c++ c#... .exe) the program one button "abcd" who Click the "abcd" same time run other autioit commands ??? Link to comment Share on other sites More sharing options...
MHz Posted June 9, 2005 Share Posted June 9, 2005 To click a button.First start AutoItInfo tool. This will supply the information from the button, as you pass your mouse over it.Then look at ControlClick(), in the helpfile.ControlClick ( "title", "text", controlID [, button][, clicks]] )You wait for the window, then click the button, as shown below. You should add the text parameter for choosing the right window. Also change the "Button1" to what AutoIt Info tool reads from the button.WinWait("Test") ControlClick("Test", "", "Button1")If you want to do other commands, while the script is waiting, then you may need to use AdLibEnable() ? Or change your script, so you use WinExists(), in a loop. Link to comment Share on other sites More sharing options...
kiii Posted June 9, 2005 Author Share Posted June 9, 2005 (edited) Run("sss.exe") WinActivate("sss") If ControlClick("sss", "", "Button", "left")Then MsgBox(0, "sss", "Button") Exit EndIf dnot work... Edited June 9, 2005 by kiii Link to comment Share on other sites More sharing options...
kiii Posted June 9, 2005 Author Share Posted June 9, 2005 (edited) i need ... Opens a program. I click on a button, carries out an instruction. I click on another button, carries out another instruction. help me~~~ Edited June 9, 2005 by kiii Link to comment Share on other sites More sharing options...
kiii Posted June 9, 2005 Author Share Posted June 9, 2005 help me ~ i need Increase the new function in may the execution file. Whether or not uses AUTOIT to realize? Link to comment Share on other sites More sharing options...
MHz Posted June 10, 2005 Share Posted June 10, 2005 Please have a look at the Tutorial section for WinZip Installation. This will display, that you need, one of the WinWait* commands. If you do not wait for the window, then you commands will be send anywhere. Please read the manual. Link to comment Share on other sites More sharing options...
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