Maus Zeiger in AppleScript via Python bewegen

by hubi on 18/09/2009
Von hinten durch AppleScript, via Python in das Cocoa-Framework ;-)
Code zum markieren einmal anklicken oder Code im Skript-Editor öffnen

do shell script "python -c \"import objc;bndl = objc.loadBundle('CoreGraphics', globals(), '/System/Library/Frameworks/ApplicationServices.framework');objc.loadBundleFunctions(bndl, globals(), [('CGWarpMouseCursorPosition', 'v{CGPoint=ff}')]);CGWarpMouseCursorPosition((0, 0));\""

Eine alltagstaugliche Alternative findest Du hier.

There are 8 comments in this article:

  1. 20/04/2010Sleep displays via AppleScript says:

    [...] via AppleScript and the Active Screen Corners feature of Exposé. It is based on the script in this blog entry, which allows you to move the mouse cursor to the top left corner of the [...]

  2. 20/04/2010Sleep displays via AppleScript says:

    [...] via AppleScript and the Active Screen Corners feature of Exposé. It is based on the script in this blog entry, which allows you to move the mouse cursor to the top left corner of the screen. First of all, you [...]

  3. 28/04/2010wireless alarms redditch says:

    isnt that coding all about the cursor positioning and placements?

  4. 28/04/2010wireless alarms redditch says:

    perhaps

  5. 28/04/2010wireless alarms worcestershire says:

    lolollol

  6. 19/08/2010First computer - Computer electronic - Computer networking first step says:

    [...] Hubionmac.com » Maus Zeiger in AppleScript via Python bewegen 18 Sep 2009. It is based on the script in this blog entry, which allows you to move the mouse cursor to the top left corner of the [...] Pingback from.hubionmac.com/.../maus-zeiger-in-applescript-via-python-bewegen/ - Hubionmac.com » Maus Zeiger in AppleScript via Python bewegen [...]

  7. 8/09/2010500 70s song top - Song top - 70s song says:

    [...] Hubionmac.com » Maus Zeiger in AppleScript via Python bewegen 18 Sep 2009. It is based on the script in this blog entry, which allows you to move the mouse cursor to the top left corner of the [...] Pingback from.hubionmac.com/.../maus-zeiger-in-applescript-via-python-bewegen/ - Hubionmac.com » Maus Zeiger in AppleScript via Python bewegen [...]

  8. 13/09/2010Hair information testing - Information testing - Hair testing says:

    [...] Hubionmac.com » Maus Zeiger in AppleScript via Python bewegen 18 Sep 2009. It is based on the script in this blog entry, which allows you to move the mouse cursor to the top left corner of the [...] Pingback from.hubionmac.com/.../maus-zeiger-in-applescript-via-python-bewegen/ - Hubionmac.com » Maus Zeiger in AppleScript via Python bewegen [...]

Write a comment:

CAPTCHA:


nine × 4 =