Jump to content
Sign in to follow this  
namauto

Working w/o controls?

Recommended Posts

namauto

So I am trying to navigate and do various things through a specific program. However, the issue I'm hitting is that I can't rely on click positioning, and when I check out the app with the Window Info tool, the only information it gives me is the Title of the Window, and the Class. Nothing else in any of the tabs is listed.

Is there still a way that I can navigate through the various buttons and menus I want to access? I really hope there is.

Edited by namauto

Share this post


Link to post
Share on other sites
Szhlopp

So I am trying to navigate and do various things through a specific program. However, the issue I'm hitting is that I can't rely on click positioning, and when I check out the app with the Window Info tool, the only information it gives me is the Title of the Window, and the Class. Nothing else in any of the tabs is listed.

Is there still a way that I can navigate through the various buttons and menus I want to access? I really hope there is.

"is that I can't rely on click positioning"

You're using 'MouseClick()'?

Check out the help file on all the 'control' commands. That enables you to move the window anywhere and always have something to click on.

Each button has a class name/instance/PID. So grab one of those and use them in 'ControlClick' ;)

Share this post


Link to post
Share on other sites
namauto

Each button has a class name/instance/PID. So grab one of those and use them in 'ControlClick' ;)

I would have done that, but the problem is, nothing is labeled or identified in this program. So when I look at each button, it doesn't show a class name/instance/PID.

Share this post


Link to post
Share on other sites
zorphnog

I believe he was referring to an application with non-Win32 widgets. For instance, ControlClick does not work on widgets in a Java application. I'm not sure there is much you can do other than position clicking.

Share this post


Link to post
Share on other sites
Szhlopp

I would have done that, but the problem is, nothing is labeled or identified in this program. So when I look at each button, it doesn't show a class name/instance/PID.

Interesting. Is this a game? Normally you can't directly access stuff from games like SWG/WoW/BF/CoH.

Edited by Szhlopp

Share this post


Link to post
Share on other sites
namauto

Interesting. Is this game? Normally you can't directly access stuff from games like SWG/WoW/BF/CoH.

Nah, it's a proxy tool. Called Charles Proxy. If you do web stuffs it's pretty neat.

The issue is I'm going to be using this script on multiple computers, and I can't guarantee that the tool will load identically each time when I run it. Page dimensions, spot on page, and then the different frames within the page, etc.

And I'm sure the game developers do that just to make it challenging for you ;)

Edited by namauto

Share this post


Link to post
Share on other sites
herewasplato

WinMove can handle the screen position and size issue.

I downloaded the app and I see what you mean about the frames. I could not find where the app stores that frame size info - if you find it, maybe you can change it to some fixed/known layout before starting the app.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
namauto

WinMove can handle the screen position and size issue.

What's not working here?

$o_Charles = Run("...\Charles.exe")
WinMove("Charles 3.2.1 - Session 1 *", "", 5, 5, 500, 500, "")

Share this post


Link to post
Share on other sites
namauto

WinMove can handle the screen position and size issue.

What's not working here?

$o_Charles = Run("...\Charles.exe")
WinMove("Charles 3.2.1 - Session 1 *", "", 5, 5, 500, 500, "")

Share this post


Link to post
Share on other sites
herewasplato

try

$o_Charles = Run("...\Charles.exe")
WinWait("Charles 3.2.1 - Session 1 *")
WinMove("Charles 3.2.1 - Session 1 *", "", 5, 5, 500, 500, "")


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


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
Sign in to follow this  

×