Jump to content

OLD code help please


Lapo
 Share

Recommended Posts

another example

#include <IE.au3>

$oIE = _IECreate()
_IENavigate($oIE, "http://www.autoitscript.com/")

$body = _IEBodyReadHTML($oIE)

If StringInStr($body, "automation") Then
    MsgBox(0, "Success", "The string was found")
    $newbody = StringReplace($body, "automation", "AUTOMATION - Yeah!")
    _IEBodyWriteHTML($oIE, $newbody)
Else
    MsgBox(0, "Fail", "The string was NOT found")
EndIf

Exit

from IE.au3 Library ( examples in my Builder )

8)

NEWHeader1.png

Link to comment
Share on other sites

sorry for trapping you .. do you know how to set the background

of a gui form ?

I have looked in the help but no luck

the old code was :

GUICreateEx("notepad", 0x9999ff,"autosave.ico")

thanks

Edit :

ahh is the user.exe error code of IE-library5 due the :

$B_oIE5 = ObjCreate("Shell.Explorer.2")

I have a win98se

Edited by Lapo
Link to comment
Share on other sites

do you know how to set the background of a gui form ?

Ok I have found a workaround :

#include <GUIConstants.au3>

; Find a picture to use as Gui background.

Global $picture

;If FileChangeDir(@WindowsDir & '\Web\Wallpaper') Then

If FileChangeDir("C:\Documenti\Icone") Then

$handle = FileFindFirstFile('*.jpg')

If $handle <> -1 Then

$picture = FileFindNextFile($handle)

FileClose($handle)

EndIf

EndIf

GUICreate ( "",450, 300)

If FileExists($picture) Then

GUICtrlCreatePic($picture, 0, 0, 450, 300)

GUICtrlSetState(Default, $GUI_DISABLE)

endif

ecc

Link to comment
Share on other sites

arrghh KODA great tool :

#include <GUIConstants.au3>

; == GUI generated with Koda ==);

$Form1 = GUICreate("AForm1", 622, 448, 91, 117)

GUISetBkColor(0x0000FF)

GUISetState(@SW_SHOW)

While 1

$msg = GuiGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

ExitLoop

Case Else

;;;;;;;

EndSelect

WEnd

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