reading Wii Remote values (GUI scripting WiiSaber?)
- Subject: reading Wii Remote values (GUI scripting WiiSaber?)
- From: hackmiester (Hunter Fuller) <email@hidden>
- Date: Fri, 5 Jan 2007 18:57:31 -0600
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=SIL//x3oCUNKh91zJTEp5+on8sIGZyWTENZtO5VkHT2i6LXa+35ZvAQpLpNLvginpy3uTWqTSfqxkp28A2u+PatIpbjK/DSRbISVzkdv73DTsyIpFT+8Q6a0xReW/6w5dhOy/zxw1zRM23KMJhUIPjxZkR3NFppEURlv89mFM4g=
can anyone either
1) hint as to how I can read Wii Remote acceleration data using
Applescript, or 2) help me write this script to use WiiSaber to do this.
Here is what Accessibility Inspector has to say:
<AXApplication: “WiiSaber”>
<AXWindow: “WiiSaber”>
<AXStaticText>
Attributes:
AXRole: “AXStaticText”
AXRoleDescription: “text”
AXHelp: “(null)”
AXValue: “ 59”
AXEnabled: “true”
AXFocused: “true”
AXParent: “<AXWindow: “WiiSaber”>”
AXWindow: “<AXWindow: “WiiSaber”>”
AXTopLevelUIElement: “<AXWindow: “WiiSaber”>”
AXPosition: “x=718 y=128”
AXSize: “w=114 h=17”
AXChildren: “<array of size 0>”
AXSelectedText: “”
AXSelectedTextRange (W): “pos=5 len=0”
AXNumberOfCharacters: “5”
AXVisibleCharacterRange (W): “pos=0 len=5”
AXInsertionPointLineNumber: “0”
Actions:
AXShowMenu - show menu
Parameterized Attributes:
AXLineForIndex
AXRangeForLine
AXStringForRange
AXRangeForPosition
AXRangeForIndex
AXBoundsForRange
AXRTFForRange
AXStyleRangeForIndex
AXAttributedStringForRange
Here is the script I tried:
tell application "System Events"
tell process "WiiSaber"
tell window 1
set theRoll to the value of text field 1
end tell
end tell
end tell
It doesn't work. I think you can try WiiSaber enough to see the value
0, if you don't have BT and a Wii Remote.
Thanks in advance.
--
hackmiester (Hunter Fuller)
<badaboom> who can help me ? i'm french and i don't know irc
<Paladine> can't help you with the being french part, you are screwed
their mate
Phone
Voice: +1 251 589 6348
Fax: Call the voice number and ask.
Email
General chat: email@hidden
Large attachments: email@hidden
SPS-related stuff: email@hidden
IM
AIM: hackmiester1337
Skype: hackmiester31337
YIM: hackm1ester
Gtalk: hackmiester
MSN: email@hidden
Xfire: hackmiester
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.