DW1 Posted July 15, 2013 Posted July 15, 2013 It was showing 'main' as one of the frame names. It find's an object named 'main' but not a form name. I just tried that out of curiosity. Oh LMAO, this is my mistake, not yours... I typo'd and used _IEFormGetObjByName instead of _IEFrameGetObjByName, my apologies. Try this (post the console output if it doesn't work): #include <IE.au3> Local $sURL = 'C:\Scripts\TEST\test.html' Local $oIE = _IECreate($sURL) Local $oFrame = _IEFrameGetObjByName($oIE, 'main') Local $oForm = _IEFormGetObjByName($oFrame, '_ctl0') Local $oTextArea = _IEFormElementGetObjByName($oForm, 'myPronList') _IEFormElementSetValue($oTextArea, 'myPronList is a funny name') AutoIt3 Online Help
dar100111 Posted July 15, 2013 Author Posted July 15, 2013 Oh LMAO, this is my mistake, not yours... I typo'd and used _IEFormGetObjByName instead of _IEFrameGetObjByName, my apologies. Try this (post the console output if it doesn't work):#include <IE.au3> Local $sURL = 'C:\Scripts\TEST\test.html' Local $oIE = _IECreate($sURL) Local $oFrame = _IEFrameGetObjByName($oIE, 'main') Local $oForm = _IEFormGetObjByName($oFrame, '_ctl0') Local $oTextArea = _IEFormElementGetObjByName($oForm, 'myPronList') _IEFormElementSetValue($oTextArea, 'myPronList is a funny name')You are a man among men Dan! I see my text being input now.
Solution DW1 Posted July 15, 2013 Solution Posted July 15, 2013 Glad it's working for you. Sorry for the typo, otherwise we would have had this working at >post #10 0xdefea7 1 AutoIt3 Online Help
dar100111 Posted July 15, 2013 Author Posted July 15, 2013 No problem. I want to thank you for you patience as I am new to computer programming in general.
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