0

HD2000 Wireless USB



I am trying to use an HD 2000 with wireless USB connecting to a HAPP trackball. Any recommended hardware for that?
Thanks

6 comments

  • 0
    Avatar
    RokuLyndon


    Are you asking about a usb mouse or usb keyboard, a wireless version? Either should work with the HD2000.



    If this isn't what you mean, please explain further.
  • 0
    Avatar
    Charles Wildenauer


    Hi Lyndon



    I did find a possibility with a product from Gefen, a USB wireless extender.I'll let you know how the test goes.



    I am trying to use a Happ trackball and utilize its 3 buttons (trackball has 3 buttons left, right and center button like on a mouse).

    A sample of the cvs script to do that would be great.





    Here are a couple of links for the trackball.

    <!-- m --><a class="postlink" href="http://www.happcontrols.com/images/pdf/ins-0053.pdf">http://www.happcontrols.com/images/pdf/ins-0053.pdf</a><!-- m -->

    <!-- m --><a class="postlink" href="http://www.happcontrols.com/trackballs/565600xx.htm">http://www.happcontrols.com/trackballs/565600xx.htm</a><!-- m -->



    Thanks
  • 0
    Avatar
    RokuLyndon


    Normally, for a USB mouse,  I don't believe we differentiate between the one button versus another, but I haven't tested that. IF the buttons were sent to the brightsign like keyboard buttons, then that wouldn't be a problem.



    At this point, I'm not sure if this will work.
  • 0
    Avatar
    Charles Wildenauer


    Understood, I will go at it with keyboard hardware instead then.

    I am going to try the Gefen USB extender with a Hagstrom KE-USB36 keyboard encoder. I will let you know how it goes.



    Thanks for the Help.
  • 0
    Avatar
    Charles Wildenauer


    Lyndon,





    How would I go about creating a script for using keyboard?

    Could you please send me a sample script, I just need to hit a key and have a video clip play... for two clips.



    Thanks
  • 0
    Avatar
    RokuLyndon


    This is something I had written previously to do some testing. It has lots of comments in it, otherwise, it could be much shorter. You can copy it to at ext file, and name the file autorun.brs:



    REM Start of script



    debug = true



    REM

    rem This script waits for a button press to starting playing a video

    rem It plays numbered videos from 1 - 4. It plays each video in a loop

    rem until it detects another button press. Pressing a button 1 when video1

    rem is playing will restart video1. Assumes video1.mpg, video2.mpg,

    rem video3.mpg, video4.mpg are present. Use buttons 1 - 4 to play videos 1 - 4.

    rem



    REM Initialize Video & Button

    video=CreateObject("roVideoPlayer")

    rem mode=CreateObject("roVideoMode")

    kbpress=CreateObject("roKeyboard")

    p=CreateObject("roMessagePort")

    video.SetPort(p)

    kbpress.SetPort(p)





    REM Set Constants

    REM **************************************

    MEDEN=8

    video_to_play$=""

    one=49 'value returned when you press #1 on the keyboard

    two=50 'value returned when you press #2 on the keyboard

    three=51 'value returned when you press #3 on the keyboard

    four=52 'value returned when you press #4 on the keyboard





    rem

    rem Waiting for a keyboard press to start playback

    rem All buttons are ignored except for buttons 1 - 4

    rem



    wait_for_key:

    If debug print "Waiting for a key to be pressed."

    msg=wait(0,p)



    if type(msg)="roKeyboardPress" then



    if msg.GetInt() = one then

    video_to_play$="video1.mpg"



    else if msg.GetInt() = two then

    video_to_play$="video2.mpg"



    else if msg.GetInt() = three then

    video_to_play$="video3.mpg"



    else if msg.GetInt() = four then

    video_to_play$="video4.mpg"



    endif



    else if type(msg)="roVideoEvent" then

    status=msg.GetInt()

    if status <> MEDEN then goto wait_for_key

    goto play_video

    endif





    play_video:

    if debug print "Current file is: "; video_to_play$

    video.PlayFile(video_to_play$)



    goto wait_for_key





    REM End of Script
Please sign in to leave a comment.