Re: Moving mouse, Python3 and PyObjc

2013-02-08 Thread Dave Angel
On 02/08/2013 05:32 AM, Oneill wrote: Your emails are very hard to read, since your mailer doublespaces nearly everything you quote. What's the objc module got to do with the mouse? http://packages.python.org/pyobjc/api/module-objc.html Perhaps you meant some other modul

Re: Moving mouse, Python3 and PyObjc

2013-02-08 Thread Oneill
> > > > > > import objc > > > > > > def clickMouse(x, y, button): > > > bndl = objc.loadBundle('CoreGraphics', globals(), > > '/System/Library/Frameworks/ApplicationServices.framework') > > > objc.loadBundleFunctions(bndl, globals(), [('CGPostMouseEvent', > > 'v{CGPoint=ff}III')]

Re: Moving mouse, Python3 and PyObjc

2013-02-08 Thread Oneill
On Thursday, 7 February 2013 23:22:01 UTC, Oneill wrote: > import objc > > > > def clickMouse(x, y, button): > > bndl = objc.loadBundle('CoreGraphics', globals(), > '/System/Library/Frameworks/ApplicationServices.framework') > > objc.loadBundleFunctions(bndl, globals(), [('CGPostMous

Re: Moving mouse, Python3 and PyObjc

2013-02-07 Thread Dave Angel
On 02/07/2013 06:22 PM, joaofguio...@gmail.com wrote: import objc def clickMouse(x, y, button): bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework') objc.loadBundleFunctions(bndl, globals(), [('CGPostMouseEvent', 'v{CGPoint=ff

Re: Moving mouse, Python3 and PyObjc

2013-02-07 Thread Terry Reedy
On 2/7/2013 6:22 PM, joaofguio...@gmail.com wrote: import objc def clickMouse(x, y, button): bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework') objc.loadBundleFunctions(bndl, globals(), [('CGPostMouseEvent', 'v{CGPoint=ff}III')]) CGPo

Moving mouse, Python3 and PyObjc

2013-02-07 Thread joaofguiomar
import objc def clickMouse(x, y, button): bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework') objc.loadBundleFunctions(bndl, globals(), [('CGPostMouseEvent', 'v{CGPoint=ff}III')]) CGPostMouseEvent((x, y), 1, button, 1) CG