Maus Zeiger in AppleScript via Python bewegen

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.
This entry was posted in AppleScript and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Posted April 28, 2010 at 5:17 pm | Permalink

    isnt that coding all about the cursor positioning and placements?

  2. Posted April 28, 2010 at 5:18 pm | Permalink

    perhaps

  3. Posted April 28, 2010 at 5:18 pm | Permalink

    lolollol

5 Trackbacks

  1. By Sleep displays via AppleScript on April 20, 2010 at 5:00 pm

    [...] 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. By Sleep displays via AppleScript on April 20, 2010 at 6:31 pm

    [...] 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. [...] 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 [...]

  4. By 500 70s song top - Song top - 70s song on September 8, 2010 at 4:31 pm

    [...] 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 [...]

  5. [...] 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 [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA:


one × = 1

Subscribe without commenting

  • Seite übersetzen:


    Paypal for Pizza:




  • Kategorien


  • Letzte Kommentare

    • Hubi: Servus Sameer, versuche es doch mal mit der vorherigen Version, die hatte ich für 10.8 angepasst. Wegen des...
    • Sameer: Hallo Hubi, hallo Franz, danke für Eure Hinweise. Ich habe leider folgendes Problem: This Script was only...
    • Franz Damm: Hallo Sameer, das Aufrufen über shortcut kannst du auch über eine Automator-Script lösen. Dazu einfach...
    • hubi: Hallo Markus, leider bietet einem AppleScript nicht direkt ein GUI mit einem Fortschrittsbalken…....
    • Hubi: Hallo Sameer, also den Script-Code kopierst Du Dir in die Zwischenablage und speicherst Ihn in ein neues...