• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
reading Wii Remote values (GUI scripting WiiSaber?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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: Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden
  • Prev by Date: printing from Acrobat Reader?
  • Next by Date: RE: Can I script Inkmanager in Indesign CS?
  • Previous by thread: printing from Acrobat Reader?
  • Next by thread: Re: reading Wii Remote values (GUI scripting WiiSaber?)
  • Index(es):
    • Date
    • Thread