开发者

Simulate mouse/keyboard events (gtk + HOOPS 3D)

how can I simulate mouse/keyboard events in gtk/gdk? I have a window widget containing HOOPS 3D widget and need to simulate mouse clicking on various parts of the window, along with simulating keyboard, ie. CTRL pressed, etc.

I found http://developer.gnome.org/gtk/2.24/gtk-Testing.html but this isn't quite what I need (specific X,Y开发者_C百科, and keyboard events)

Thanks


override function from base class HBaseOperator. create a new operator class. ex: public class xx: HBaseOperator {

}


will this help at all: Are there any libraries for Python to simulate keyboard action? :::::: http://pypi.python.org/pypi/SendKeys/0.3


Since I need this to invoke HOOPS 3D widget's events, I found that it is not necessary to do it through gtk, it is possible to do so by injecting events into hoops itself http://developer.hoops3d.com/documentation/HoopsMVO/ref_manual/class_h_event_info.html - Using the SetWindowPos API.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜