Auto Resize Shell.Explorer in GUI Window

Get help with using AutoHotkey and its commands and hotkeys
ecksphore
Posts: 33
Joined: 03 Feb 2015, 22:36

Auto Resize Shell.Explorer in GUI Window

13 Apr 2015, 00:04

I'm trying to auto resize the Shell.Explorer window and ran in to a snag.

If I number the GUI (GUI 2: <params>) the code below no longer works. If I remove the numbering, it works just fine.

Any ideas what I'm missing?

Code: Select all

Gui 2: +Resize
Gui 2: Add, ActiveX, x0 y0 w800 h800 vWB hwndATLWinHWND, Shell.Explorer
Gui 2: Show, w800 h800, Browser
WB.Navigate("http://www.google.com")
return

GuiSize:
WinMove, % "ahk_id " . ATLWinHWND, , 0,0, A_GuiWidth, A_GuiHeight
return

GuiClose:
ExitApp
toralf
Posts: 691
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: Auto Resize Shell.Explorer in GUI Window

13 Apr 2015, 06:16

Add a '2' in front of Guisize and guiclose
ciao
toralf
ecksphore
Posts: 33
Joined: 03 Feb 2015, 22:36

Re: Auto Resize Shell.Explorer in GUI Window

13 Apr 2015, 11:14

Of course ... the only thing I never did try. Thanks :)

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], guischmo, roysubs and 317 guests