Sign in to follow this  
Followers 0
AlmarM

_IECreateEmbedded, how to set css style?

3 posts in this topic

Hiya!

If you run this example you can see my _IECreateEmbedded has these scrollbars. How do I insert this css style to get rid of them?

<style type="text/css">html, body { margin: 0; padding: 0; }</style>

#include <IE.au3>

$GUI = GUICreate("")
$oIE = _IECreateEmbedded()
GUICtrlCreateObj($oIE, 10, 10, 267, 319)
_IENavigate($oIE, "http://www2.buienradar.nl/display.php?width=267&height=319&country=nl")

GUISetState()
While 1
    Switch GUIGetMsg()
        Case -3
            Exit
    EndSwitch
WEnd

I tried _IEDocInsertHTML. But since the URL hasn't got any "<head>" tag inside it's source, it failed.


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites



Did you try _IEDocReadHTML and _IEDocWriteHTML ?

Share this post


Link to post
Share on other sites

Ah, got it! Thanks. ;)


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

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