Results 1 to 2 of 2

Thread: createEventObject, attachEvent, How to pass keyCode to event.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    21

    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.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    21

    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
  •  



Click Here to Expand Forum to Full Width