Jump to content

Switching active windows.


Maxvan1
 Share

Recommended Posts

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.

Link to comment
Share on other sites

WinSetState

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

Edited by Uten
Link to comment
Share on other sites

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 :)
Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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


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

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...