Jump to content
Sign in to follow this  
houseonfire

Referencing a CSS page online

Recommended Posts

houseonfire

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

Share this post


Link to post
Share on other sites
houseonfire

Thanks, but what would i use the FileOpen, and FileDelete() commands for?

Share this post


Link to post
Share on other sites
houseonfire

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

Share this post


Link to post
Share on other sites
James

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.