Jump to content

Window maximizing


dassksnz
 Share

Recommended Posts

How do u maximize a window without using mouseclick??

WinSetState ( "title", "text", flag )

For Example

WinSetState("[CLASS:Notepad]", "", @SW_MAXIMIZE)

Will maximize notepad if it is open.

To get the handle of the window you have to control use Au3Info program or

WinGetHandle.

Edited by Newb

I'm a compulsive poster. When I post something, come to read it at least 5 minutes later after the posting, because I will edit it. I edited even this signature a few minutes later after I wrote it.

Link to comment
Share on other sites

How do u maximize a window without using mouseclick??

#1 WinSetState() Function

#2 @SW_MAXIMIZE Macro

@SW_HIDE = ;Hide window
@SW_SHOW = ;Shows a previously hidden window
@SW_MINIMIZE = ;Minimize window
@SW_MAXIMIZE = ;Maximize window
@SW_RESTORE = ;Undoes a window minimization or maximization
@SW_DISABLE = ;Disables the window
@SW_ENABLE = ;Enables the window

WinSetState("Untitled - Notepad", "", @SW_MAXIMIZE)
;

Best Regards

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