Jump to content
Sign in to follow this  
Maxvan1

Switching active windows.

Recommended Posts

Maxvan1

This should be an easy one for you guys. I searched, but I dont really know what to search for. I dont know what its called.

How do I say somthing like "Maximize Adobe Photoshop"? I have been using the mouse to just click the tab on the toolbar, but it keeps messing up.

Share this post


Link to post
Share on other sites
Uten

WinSetState

EDIT: Kudos to @volly, but I did dig up a link..:)

Edited by Uten

Share this post


Link to post
Share on other sites
Uten

I thought the user was looking at the helpfile already, and didn't know where to look.

We ahould have it as a rule of thumb to link when pointing to a command.

It should be automatic. At least for AutoIt functions written outside code/codebox/autoit tags. Actually I did have to look it up to make sertain it would work as I expected :)

Share this post


Link to post
Share on other sites
Maxvan1

Ok, I have a question.

Why is this not working?

WinSetState( "Adobe Photoshop", "", @SW_MAXIMIZE)

I think its because of the "Adobe Photoshop".

Share this post


Link to post
Share on other sites
BALA

Ok, I have a question.

Why is this not working?

WinSetState( "Adobe Photoshop", "", @SW_MAXIMIZE)

I think its because of the "Adobe Photoshop".

I don't know for sure since I don't have Photoshop, but if it's anything like Paint, the title will probably be "Untitled" before you save it for the first time.


[font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com

Share this post


Link to post
Share on other sites
Shevilie

Use the Autoit Window Info tool to get the windowname and the class.. If the name changes from time to time you might use the class alone or you can see in the helpfile for http://www.autoitscript.com/autoit3/docs/i...owsadvanced.htm Window Titles. Theres a lot of way to get the handle of a window :)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
BigDod

Ok, I have a question.

Why is this not working?

WinSetState( "Adobe Photoshop", "", @SW_MAXIMIZE)

I think its because of the "Adobe Photoshop".

Works for me with Adobe Photoshop 7.0


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.