Sign in to follow this  
Followers 0
dassksnz

Window maximizing

3 posts in this topic

How do u maximize a window without using mouseclick??

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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.

Share this post


Link to post
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

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  
Followers 0