|
-
Jul 18th, 2005, 12:29 PM
#1
Thread Starter
Junior Member
createEventObject, attachEvent, How to pass keyCode to event.
I am automating the IE DOM for webpage automation. Within one page is a JS function that looks for an events keycode, and if it was "Tab" then it will create some lines within the webpage. I cannot use "SendKeys" to do this.
Currently I have code to do the following;
set eventObj = oIE.Document.createEventObject()
eventObj.keyCode=9
Then I execute the following;
oItem.ID.fireEvent "onkeyup", eventObj
This does not seem to work. Any ideas?
Do I need to use, attachEvent and getRef ??
TIA.
Last edited by Skept; Jul 19th, 2005 at 10:25 AM.
-
Jul 19th, 2005, 10:26 AM
#2
Thread Starter
Junior Member
Re: createEventObject, attachEvent, How to pass keyCode to event.
Anyone on today that may have some direction for me here?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|