Sign in to follow this  
Followers 0
eagle51

Check if a window is maximazed

3 posts in this topic

Hello together,

is there a possibility to check whether the active window is maximazed or not?

Somethink like

If NOT ActiveWindowMaximazed Then

MaximazeActiveWindow

Else

;code.....

Thanks

Share this post


Link to post
Share on other sites



run("notepad.exe")
sleep(2000)
if WinGetState("Untitled -","") <> @SW_MAXIMIZE Then
    WinSetState("Untitled -","",@SW_MAXIMIZE)
    MsgBox(1,"Maximized","Now the window is Maximized")
Else
    MsgBox(1,"Maximized","Window is allready maximized")
EndIf

Simple.. easy.. out of helpfile :)

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

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