Jump to content

Zoom in on a IE embedded & keep Left/Top position?


Damein
 Share

Recommended Posts

So I know that you do do something like this

$Gui = GuiCreate("Current Weather", 800,600)
$EmbedIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($EmbedIE, -100, 10, 600, 500)

And it will zoom -100 into the IE window. But how do I still accomplish the zoom AND keep the left and top position of the object the same.

This is what I want.

$Gui = GuiCreate("Current Weather", 800,600)
$EmbedIE = _IECreateEmbedded()
$GUIActiveX = GUICtrlCreateObj($EmbedIE, -100, 10, 600, 500)
GuiCtrlSetPos($GuiActiveX, 10,10)

But that doesn't allow for the cropping to show only what I want.

Edited by Damein

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Still looking for some help on this. Can't find a way to do it

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

I know we aren't suppose to bump, but I'm still trying to get this to work :D

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Try this:

#include <IE.au3>
$sLink="autoitscript.com"
$iZoom = 60
$oIE = ObjCreate("Shell.Explorer.2")
GUICreate('Test', 700, 500)
GUICtrlCreateObj($oIE, 5,5, 690, 490)
GUISetState()
_IENavigate($oIE, "about:blank")
_IEBodyWriteHTML($oIE, "<iframe style='zoom:" & $iZoom & "%' src='http://" & $sLink & "' width='100%' height='100%'>")
While 1
Sleep(10)
Switch GUIGetMsg()
  Case -3
   Exit
EndSwitch
WEnd

EDIT: tags

Edited by taietel
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...