t0neex Posted February 16, 2023 Share Posted February 16, 2023 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 Link to comment Share on other sites More sharing options...
ioa747 Posted February 16, 2023 Share Posted February 16, 2023 to forum have you try the ControlClick() I know that I know nothing Link to comment Share on other sites More sharing options...
mistersquirrle Posted February 16, 2023 Share Posted February 16, 2023 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 More sharing options...
t0neex Posted February 16, 2023 Author Share Posted February 16, 2023 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 More sharing options...
t0neex Posted February 16, 2023 Author Share Posted February 16, 2023 7 minutes ago, ioa747 said: to forum have you try the ControlClick() I tried but I'll try again with sample on the reference then implement to mine. Link to comment Share on other sites More sharing options...
phoenixhuynh09 Posted February 17, 2023 Share Posted February 17, 2023 (edited) Hi Did you test this code? This is ControlCommand not Send("Tab"). ControlCommand("Toad for Oracle Database Login Version 10.6.", "", "[CLASS:TPageControl; INSTANCE:1]", "TabRight", "") Edited February 17, 2023 by phoenixhuynh09 ioa747 1 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