Hello. I tried using your method but it returns FALSE every time. For example, I open up www.googole.com and simmulate a click to the "Images" href. I think the problem Is I only create a MousePressEvent. But the href is sensible to clicks. Any hints on how to create a click event?
Please help. Greets, Luka Dne 04.11.2008 (tor) ob 19:13 +0530 je Nilesh Patil zapisal(a): > Hi > > Usually i construct it like > > PlatformMouseEvent pme(point, point, LeftButton, met, 1, false, false, > false, false, 0); > > and call is > > frame->eventHandler()->handleMousePressEvent(pme); > > If this is not answer u r looking for, then probably u need to check > for webpage u r trying this clicks on. Generally we change image using > onClick. We generally hav a javascript associated with onClick to > which tag id is passed and then java script changes the image. > > Also check association of onClick. (i.e. to which tag it is assiciated). > > Webkit javascript engine is capable of interpreting such primitive > signals unless html source has some errors. So error is eithr in the > HTML source or construction of PlatformMouseEvent. > > Thanks & Regrads > Niilesh > > On Tue, Nov 4, 2008 at 6:50 PM, Luka Napotnik <[EMAIL PROTECTED]> wrote: > > The Gtk+ port. > > > > Greets, > > Luka > > > > Dne 04.11.2008 (tor) ob 18:48 +0530 je Nilesh Patil zapisal(a): > >> which port > >> > >> On Tue, Nov 4, 2008 at 6:43 PM, Luka Napotnik <[EMAIL PROTECTED]> wrote: > >> > Hello. > >> > > >> > I've created a method to send X,Y clicks to a page in the current frame. > >> > I'm using the handleMousePressEvent() method to create the event: > >> > > >> > Frame *frame = core(webView)->mainFrame(); > >> > frame->eventHandler()->handleMousePressEvent(PlatformEvent(IntPoint(x, > >> > y), IntPoint(0, 0), LeftButton, MouseEventPressed, 1, false, false, > >> > false, false, 1.0)); > >> > > >> > I open a HTML page where images change when you press the mouse button > >> > on them. But when running the program and calling the method, the images > >> > do not change. Oh and frame()->eventHandler() returns true so it should > >> > work. > >> > > >> > Any ideas? > >> > > >> > Greets, > >> > Luka > >> > > >> > _______________________________________________ > >> > webkit-dev mailing list > >> > [email protected] > >> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > >> > > > > >
signature.asc
Description: To je digitalno podpisan del sporočila
_______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

