Well, i have been using autoit for about 2 years now.
I find it very fun and all, but i was never able to fully grasp the concept of _IE.
Basically... my program will open up a webpage and then after the webpage is loaded and all, i will press another button which will search for text inside that webpage and then replace that text.
Anyhelp please? I can show some source of what i have done already
I find it very fun and all, but i was never able to fully grasp the concept of _IE.
Basically... my program will open up a webpage and then after the webpage is loaded and all, i will press another button which will search for text inside that webpage and then replace that text.
Anyhelp please? I can show some source of what i have done already
[ autoit ]
#include #include <ButtonConstants.au3> #include <EditConstants.au3> #include <IE.au3> #include <GUIConstantsEx.au3> #include <ScreenCapture.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= Local $oIE = _IECreateEmbedded() $Form1 = GUICreate("LOL", 819, 668, 186, 114) $Input1 = GUICtrlCreateInput("", 0, 0, 817, 21) $Button1 = GUICtrlCreateButton("Button1", 0, 584, 193, 81) $Button2 = GUICtrlCreateButton("Button2", 200, 584, 185, 81) $Button3 = GUICtrlCreateButton("Button3", 392, 584, 185, 81) $Button4 = GUICtrlCreateButton("Button4", 584, 584, 233, 81) $Pic1 = GUICtrlCreateObj($oIE, 0, 24, 817, 561) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button2 $sText = _IEBodyReadText($oIE) If StringInStr($sText, "StringToReplaceHere") Then ;;; I found it Msgbox(1,"Found it","Yay, i found it.") StringReplace($sText,"","Replaced") Else ;;; didn't find it ;;; do something else EndIf Case $Button1 _IENavigate($oIE,"WEBSITEHERE") EndSwitch WEnd