dd66 Posted April 12, 2018 Share Posted April 12, 2018 Hello, I just started to automate a java applet(.jnlp) with autoitx4java and i have some problems with this framework. 1: I have a toolbar with 17 buttons and i don't figure how to click on it (ToolbarWindow32), i try with: x.controlClick(titleApp, "", "[CLASS:ToolbarWindow32; INSTANCE:1]"); Summary: expandcollapse popup>>>> Window <<<< Title: titleApp Class: SWT_Window0 Position: 126, 110 Size: 1094, 768 Style: 0x96CF0000 ExStyle: 0x00100100 Handle: 0x001A03F0 >>>> Control <<<< Class: ToolbarWindow32 Instance: 1 ClassnameNN: ToolbarWindow321 Name: Advanced (Class): [CLASS:ToolbarWindow32; INSTANCE:1] ID: 1835732 Text: Position: 11, 4 Size: 849, 22 ControlClick Coords: 93, 13 Style: 0x5601A945 ExStyle: 0x00100000 Handle: 0x001C02D4 >>>> Mouse <<<< Position: 238, 177 Cursor ID: 0 Color: 0xF0F0F0 >>>> StatusBar <<<< >>>> ToolsBar <<<< 1: 0 2: 1 3: 2 4: 3 5: 4 6: 5 7: 6 8: 7 9: 8 10: 9 >>>> Visible Text <<<< 2: I have a line with 4 edit fields, when i send text in first one it's ok then i want to send text in second one it's ok but many times first field is emptying. First field: x.controlSend(titleApp, "", "[CLASS:Edit; INSTANCE:18]", "Some Text Here"); Second Field: x.controlSend(titleApp, "", "[CLASS:Edit; INSTANCE:19]", "Another text"); I have tried to press <TAB> after i complete the first field but i'm not sure it's working. x.send("{TAB}"); and x.controlSend(titleApp, "", "[CLASS:Edit; INSTANCE:19]", "{TAB}"); Summary from first filed: >>>> Window <<<< Title: App Name Class: SWT_Window0 Position: 126, 110 Size: 1094, 768 Style: 0x96CF0000 ExStyle: 0x00100100 Handle: 0x001A03F0 >>>> Control <<<< Class: Edit Instance: 18 ClassnameNN: Edit18 Name: Advanced (Class): [CLASS:Edit; INSTANCE:18] ID: 1001 Text: Position: 248, 135 Size: 127, 17 ControlClick Coords: 41, 6 Style: 0x50000280 ExStyle: 0x00000000 Handle: 0x0090052E >>>> Mouse <<<< Position: 423, 301 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< Type Can you help me with that? Thx! 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