JAVA Robot mouse event not working on login screen of oSX mavericks but works on lower version -


i run java application in login window using launchagents ,which captures mouse , keyboard events remotely , executes it. keyboard events work not mouse events.

<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict>     <key>label</key>     <string>com.ash.login</string>     <key>limitloadtosessiontype</key>     <string>loginwindow</string>     <key>runatload</key>     <true/>     <key>program</key>     <string>/usr/bin/java</string>     <key>programarguments</key>     <array>         <string>/usr/bin/java</string>         <string>-jar</string>         <string>-dapple.awt.uielement=true</string> (works without option)         <string>/library/ash_agent/data/remote.jar</string>     </array>         <key>keepalive</key>     <true/> </dict> </plist> 

captureimage.robot.mousepress( inputevent.button1_mask ); (used inside code)

i'm not able gain control of mouse @ loginwindow. works fine in aqua or when logged in. *console errors :*

untrusted apps not allowed connect or launch window server before login. window server not available 

i believe because robot internally uses cgeventpost rather deprecated cgpostmouseevent, cgeventpost doesn't work prelogin.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -