Sign in to follow this  
Followers 0
randomboy

Maximizing a window

10 posts in this topic

I tried the @SW_MAXIMIZE function but it doesn't seem to work.

Are there any other alternatives?


I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Share this post


Link to post
Share on other sites



Minimize this window and run

WinSetState("Maximizing","",@SW_MAXIMIZE)

This should work for any window. Check that the window title is correct for your window.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

This isn't what I wanted.

I basically wanted to open Notepad and then maximize that window.


I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Share this post


Link to post
Share on other sites

Global $win = "Unbenannt - Editor"

Run("notepad.exe")

WinWaitActive( $win )

WinSetState( $win , "", @SW_MAXIMIZE)

How to think of an autoit script myself by Daniel W. ^^


--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Share this post


Link to post
Share on other sites

Great thanks for all the help.

It works!!!!


I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Share this post


Link to post
Share on other sites

The script works but i can't get it to maximise an Internet explorer window.

Is it possible to do this though?


I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

Share this post


Link to post
Share on other sites

Maybe this works with Dale Hohlms IE.au3 file but i dont know


--------------------------------------------------------------------------------------------------------------------------------Scripts : _Encrypt UDF_UniquePCCode UDF MS like calculatorInstall programm *UPDATED* --------------------------------------------------------------------------------------------------------------------------------[quote name='Helge' post='213117' date='Jul 26 2006, 10:22 AM']Have you ever tried surfing the internet with a milk-carton ?This is similar to what you're trying to do.[/quote]

Share this post


Link to post
Share on other sites

The script works but i can't get it to maximise an Internet explorer window.

Is it possible to do this though?

This should work with pretty much all windows. What have you tryed so far?

Share this post


Link to post
Share on other sites

Run("Explorer.exe", "", @SW_MAXIMIZE)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks for all the great help.

I've solved the problem.

You guys are great!!!!!


I got inside my house, leant back on my bed and began to think...where the hell was my roof?!?!24 hours in a day....24 beers in a case....Coincidence??

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