Jump to content

Can't Click to Visible Text, Coordinates or something?


t0neex
 Share

Recommended Posts

Hi Folks,

I'm really dummy at AutoIT, so sorry about that :)

I tried to click Direct tab on the menu below. And It doesn't give anything different than the coordinates. (When I click on TNS, Direct or LDAP the only different thing I get are the coordinates.)

But I need to select Direct with mouse click, not with TAB keys :(

Note: TNS is selected by default. If anyone can help me I'm really going to be the happiest person in the world I've been trying for 3 hours :D

image.png.806d8f333bb8226c11dd9663369bc532.png

image.thumb.png.805c9896ef12f0beb899e41ebafac5c6.png

Link to comment
Share on other sites

Can you post any example code that you've tried?
Have you tried this:

ControlClick('Tool for Oracle Database', '', 1050636, 'main', 1)

Or in the window info tool, go to Options -> Coord mode and change it to Client. You can then do something like this when you have the client coordinates for the Direct button:

AutoItSetOption('MouseCoordMode', 2) ; relative coords to the client area of the active window
MouseClick('Main', 500, 100, 1, 1) ; Replace the coords with the client coordinates from the info window

If those don't work, could you show what you've already tried?
 

We ought not to misbehave, but we should look as though we could.

Link to comment
Share on other sites

4 minutes ago, mistersquirrle said:

Can you post any example code that you've tried?
Have you tried this:

ControlClick('Tool for Oracle Database', '', 1050636, 'main', 1)

Or in the window info tool, go to Options -> Coord mode and change it to Client. You can then do something like this when you have the client coordinates for the Direct button:

AutoItSetOption('MouseCoordMode', 2) ; relative coords to the client area of the active window
MouseClick('Main', 500, 100, 1, 1) ; Replace the coords with the client coordinates from the info window

If those don't work, could you show what you've already tried?
 

Hi,

I tried these methods but they was bit different. I'm on the road I'll return you with your code results and mine also asap. Thank you so much :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...