Jump to content

Recommended Posts

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 by kiii
Link to post
Share on other sites

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 post
Share on other sites

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 by kiii
Link to post
Share on other sites

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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...