Jump to content

maximized windows


Guest Mofo
 Share

Recommended Posts

ok, forgive me if i sound nubish, i kinda feel bad for posting this... but oh well

Lets say im making something that works with windows, and sometimes the windows arent maximized but they have to be otherwise it will not work.

How do i write an if statement to check if the window is maximized?

if @SW_MAXIMIZED = 0
movemouse(5, 5, 0)
mouseclick("left")
mouseclick("left")
end if

?

i know that doesnt work, lol ive tried it

help a nub out and maybe my ideas will help you out someday!!!

thanks in advance

Link to comment
Share on other sites

  • Developers

Just check the helpfile for WinGetState and WinSetState....

Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Lets say im making something that works with windows, and sometimes the windows arent maximized but they have to be otherwise it will not work.

You might also want to look at the Control* functions. These allow you to interact with windows that are minimized, or even hidden. It also allows the user to potentially do other things while the script is running, since any keystrokes or clicks are sent locally to the controls on that window, and not as a computer wide keystroke.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

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