Ursie Posted September 8, 2006 Share Posted September 8, 2006 Hello, First of all AutoIT ROCKS. Second I am trying to get a IE Window maximized. This IE Window has been created with the UDF Function _IECreate so I have a object handle to the window already. But I don't know how I can tell this window to get maximized. Thnx for the help Link to comment Share on other sites More sharing options...
Xenobiologist Posted September 8, 2006 Share Posted September 8, 2006 Hi, one way: WinSetState ( "title", "text", flag ) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Ursie Posted September 8, 2006 Author Share Posted September 8, 2006 Hi,one way:WinSetState ( "title", "text", flag )So long,MegaTried that already but WinSetState doesn't allow me to get attached to the 2nd created window with _IECreate. WinSetState can only attach to the Main window.So that trick doesn't help me ( from what i have tried) Link to comment Share on other sites More sharing options...
Xenobiologist Posted September 8, 2006 Share Posted September 8, 2006 Hi, Showing your code might help. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Ursie Posted September 8, 2006 Author Share Posted September 8, 2006 Tried that already but WinSetState doesn't allow me to get attached to the 2nd created window with _IECreate. WinSetState can only attach to the Main window.So that trick doesn't help me ( from what i have tried)Found the problem already. WinSetState did the trick on th end.I had to use _IELoadWait before I could use WinSetState. The name of the browser window wasn't yet created because of the page load time so the WinSetState function couldn't find that window.Thnx Link to comment Share on other sites More sharing options...
AceLoc Posted September 8, 2006 Share Posted September 8, 2006 $oHWND = _IEPropertyGet($oIE, "hwnd") WinSetState($oHWND, "", @SW_MAXIMIZE) [quote name='AceLoc']I gots new sunglasses there cool.[/quote] Link to comment Share on other sites More sharing options...
Ursie Posted September 8, 2006 Author Share Posted September 8, 2006 $oHWND = _IEPropertyGet($oIE, "hwnd") WinSetState($oHWND, "", @SW_MAXIMIZE) Thnx m8 This one really helped me Link to comment Share on other sites More sharing options...
lolp1 Posted September 8, 2006 Share Posted September 8, 2006 Can;t you juse use WinActivate("Untitled - Notepad", "") and put what ever site he wants in-place? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now