Jump to content

tphant0m

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by tphant0m

  1. Hi, Im trying to have AutoIT run a function when it detects a 'Button Click' of a certain button on a certain application. I think i need to be using the PeekMessage() Function from the Win32API to to the thread message queue and look for messages from WM_MOUSEFIRST to WM_MOUSE last to pick up all mouse events, then loop thru those and try figure out which is a click, then work out if the click was on the button. However im hoping for something easier or even an example on how to read messages and events occurring in non AutoIT windows. Any suggestions?
  2. I'm trying to inject a bit of javascript into a page to change a few variables. However the page has an onbeforeunload event., window.onbeforeunload = afunction; <body onbeforeunload="afunction"> thus when i try put java script: lines into the address bar, this event fires (because it thinks im trying to navigate away from the page). i have tried a _IEDocReadHTML then remove the events, then a _IEDocWriteHTML (and a _IEAction($oIE, "refresh")) so it actually loads up. however when executing the refresh the onbeforeunload even still loads. (the page im trying to play with deflares a frameset (i understand i HAVE to do that refresh so it actually builds the frame set again). i think im looking for some way to execute javascript in that browser instance via COM or something similar, anything that wont fireaway a navigate away style event. any ideas would be great
×
×
  • Create New...