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:


5 − five =

Subscribe without commenting

  • Seite übersetzen:


    Paypal for Pizza:




  • Kategorien


  • Letzte Kommentare

    • Niklas: Vielen Vielen Dank! So klappt es!
    • hubi: Servus Niklas, ich habe mir den Quellcode noch einmal angesehen und habe nun unter 10.7.3 einen Weg gefunden...
    • Niklas: Klingt super das Script. Leider bekomm ich immer folgende Fehlermeldung: error “„Mail“ hat einen Fehler...
    • Jürgen: Hallo Hubi, beim Abfragen von Kennworten gibt es noch eine böse Falle: Das Format, in dem security antwortet,...
    • hubi: Am einfachsten Du öffnest im AppleScript-Editor mal das Funktionsverzeichnis (unter Ablage) von iTunes. Ein...