Jump to content

Referencing a CSS page online


houseonfire
 Share

Recommended Posts

I wish to use this CSS Sheet

http://www.vume.com/css/master.css

to make

(line 129)

h2 

{

font-size: 150%;

margin-top: 0pt;

margin-right: 0pt;

margin-bottom: 0pt;

margin-left: 0pt;

}

Show up on a GUICTRLCREATEDIT

#include <GUIConstants.au3>

$Form1 = GUICreate("Profits", 246, 166, 231, 134)
$Edit1 = GUICtrlCreateEdit("", 64, 32, 153, 89)
GUICtrlSetData(-1, $profit)
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd
Edited by houseonfire
Link to comment
Share on other sites

Alright cool. Thanks.

I feel dumb.. I think I have most of it.. but i just don't understand the GuiCtrlSetData command..

The help file helps a little, but it doesn't help in the way I'm using it for.

I don't want you to do it for me, but can you explain the GuiCtrlSetData command please?

#include <GUIConstants.au3>

$Form1 = GUICreate("Profits", 246, 166, 231, 134)
$Edit1 = GUICtrlCreateEdit("", 64, 32, 153, 89)

GUISetState(@SW_SHOW)


While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Form1
            InetGet("http://www.vume.com/css/master.css", "C:\Documents and Settings\Admin\Desktop\Vume Bots\master.css", 1)
            $FILE = FileOpen("C:\Documents and Settings\Admin\Desktop\Vume Bots\master.css",1)
            GuiCtrlSetData(-1 ,"item1", $FILE)
            
        EndSelect
    WEnd
Edited by houseonfire
Link to comment
Share on other sites

Try this:

#include <GUIConstants.au3>

$Form1 = GUICreate("Profits", 246, 166, 231, 134)
$Edit1 = GUICtrlCreateEdit("", 64, 32, 153, 89)

GUISetState(@SW_SHOW)


While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Form1
            InetGet("http://www.vume.com/css/master.css", "C:\Documents and Settings\Admin\Desktop\Vume Bots\master.css", 1)
            $FILE = FileOpen("C:\Documents and Settings\Admin\Desktop\Vume Bots\master.css",1)
            GuiCtrlSetData($Edit1, $FILE)
            
        EndSelect
    WEnd
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...