sqa Posted September 13, 2016 Share Posted September 13, 2016 I need to connect and perform some automation to an opened already www page. I tried: Local $oIE=_IEAttach("Home") Local $oForm = _IEFormGetObjectByName($oIE,"lastName") ;trying to find a text-box that has name=lastName _IEFormElementSetValue($oForm,"test") when I run it I am getting: Invalid object type. what's wrong with my understanding how AutoIt works with IE? Thanks _ Link to comment Share on other sites More sharing options...
spudw2k Posted November 28, 2016 Share Posted November 28, 2016 (edited) Try adding some error checking to see which function(s) are failing. You can inspect the value of @error right after the _IEAttach and _IEFormGetObject functions to validate their execution. (error return codes are listed on the linked help file pages). Edited November 28, 2016 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF 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