• 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
Re: reading Wii Remote values (GUI scripting WiiSaber?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading Wii Remote values (GUI scripting WiiSaber?)


  • Subject: Re: reading Wii Remote values (GUI scripting WiiSaber?)
  • From: Hugh Dixon <email@hidden>
  • Date: Sat, 06 Jan 2007 13:06:35 +0000
  • Thread-topic: reading Wii Remote values (GUI scripting WiiSaber?)

Hi

Try this:

tell application "System Events"
tell process "WiiSaber"
activate
get value of static text 4 of window 1 -- 0 or whatever, the Roll value
get value of static text 5 of window 1 -- 0 or whatever, the Tilt value
end tell
end tell

Static text 6 is the first value of Force, static text 8 is the second.

Couldn't find out any more than that, kids are too busy being Darth Vader...

HTH

H


On 6/1/07 12:57, "hackmiester   (Hunter Fuller)" <email@hidden>
wrote:

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


 _______________________________________________
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: RE: Can I script Inkmanager in Indesign CS?
  • Next by Date: Re: AS and Unicode characters
  • Previous by thread: reading Wii Remote values (GUI scripting WiiSaber?)
  • Next by thread: cutting and pasting script for Indesign CS2
  • Index(es):
    • Date
    • Thread