Jump to content

Recommended Posts

Posted

I has a form like image

image.png.f807c17acdb0ac0861425a64e266969d.png

Here is the window info.

>>>> Window <<<<
Title:    Form1
Class:    WindowsForms10.Window.8.app.0.141b42a_r11_ad1
Position:    0, 0
Size:    816, 489
Style:    0x16CF0000
ExStyle:    0x00050100
Handle:    0x0000000000100BC6

>>>> Control <<<<
Class:    WindowsForms10.Window.8.app.0.141b42a_r11_ad1
Instance:    1
ClassnameNN:    WindowsForms10.Window.8.app.0.141b42a_r11_ad11
Name:    toolStrip1
Advanced (Class):    [NAME:toolStrip1]
ID:    5309498
Text:    toolStrip1
Position:    0, 0
Size:    800, 25
ControlClick Coords:    42, 13
Style:    0x56000000
ExStyle:    0x00010000
Handle:    0x000000000051043A

My script:

Run("MyApp.exe")
WinWaitActive("Form1")
Send("Hello")
Sleep(2000)
ControlClick("Form1", "", "toolStripButton2")

This code doesn't click on toolStripButton2. Can anyone help me fix it?

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...