Jump to content
Sign in to follow this  
bustd

resize external window without classname

Recommended Posts

bustd

hey there, like the topic say's, i wanna resize a non autoit window... so far so good.. if i have a classname its an easy thing. but in this case the only thing i can get is a classname like that

#32770

i tryed to handle it with:

WinMove("[CLASS:#32770]", "", 0, 0, 800, 600)

but that didnt work -.-

stuff like

WinMove("[CLASS:VideoRenderer]", "", 0, 0, 800, 600)

works perfect...

btw: the autoit windowfinder tool cant get a classname.. i've used "WinGags" to catch the class..

maybe someone knows a solution.

thx Bustd

Share this post


Link to post
Share on other sites
SmOke_N

Try to find something unique about the window... title/text/class and you can use a combination of all/any of those to achieve what you want. If all else fails, write something that makes sure the window is attached to a specific process before you resize it.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
bustd

Try to find something unique about the window... title/text/class and you can use a combination of all/any of those to achieve what you want. If all else fails, write something that makes sure the window is attached to a specific process before you resize it.

yes you are right, but the problem is.. that THIS is the only thing i can capture about the window...

and iam sorry i've forgott to say that this win is a Child.. but over the parent window i cant get any infos too.

maybe anyone know a dll to access win's over a #xxxx defined class.. or other solutions?

Share this post


Link to post
Share on other sites
SmOke_N

yes you are right, but the problem is.. that THIS is the only thing i can capture about the window...

and iam sorry i've forgott to say that this win is a Child.. but over the parent window i cant get any infos too.

maybe anyone know a dll to access win's over a #xxxx defined class.. or other solutions?

You can try to get all the Classe's with WinList("[Class:etc]") then loop through using GetParent API call.

It'd be easier to get a straight forward example knowing what application you are using so myself or others can replicate the issue (Unless it's one of those hush hush projects which I'm assuming by the lack of information thus far).


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

×