Valuater Posted March 5, 2006 Share Posted March 5, 2006 Yes and that can be done with Autoit 8) Link to comment Share on other sites More sharing options...
Valuater Posted March 5, 2006 Share Posted March 5, 2006 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) Link to comment Share on other sites More sharing options...
Lapo Posted March 5, 2006 Author Share Posted March 5, 2006 Yesand that can be done with Autoit8)OK .. thanks .. ciao Link to comment Share on other sites More sharing options...
Lapo Posted March 6, 2006 Author Share Posted March 6, 2006 (edited) 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 March 6, 2006 by Lapo Link to comment Share on other sites More sharing options...
Lapo Posted March 8, 2006 Author Share Posted March 8, 2006 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) EndIfEndIfGUICreate ( "",450, 300)If FileExists($picture) Then GUICtrlCreatePic($picture, 0, 0, 450, 300) GUICtrlSetState(Default, $GUI_DISABLE)endifecc Link to comment Share on other sites More sharing options...
Lapo Posted March 8, 2006 Author Share Posted March 8, 2006 (edited) 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 March 8, 2006 by Lapo Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now