0

Any sample scripts of controlling brightsign by Mouse ?



The example in HD600ObjectReferencev4.pdf is too simple, when i modify the script from touchscreen control to mouse control, there're some problem occurs.

3 comments

  • 0
    Avatar
    RokuAnthony


    download the "autoplay.zip" scipt from our web site.  The ".CSV" playback section supports a mouse (in the "elo" section).



    The download can be found in the brightsign support section of our web site.



    anthony
  • 0
    Avatar
    eaglexp


    can you provide some sample scirpt, not the .csv file, because the script will be more functional.



    Thanks.
  • 0
    Avatar
    RokuAnthony


    If you look in the autorun.bas script that executes the csv files ("play_csv") subroutine, it has code to support the mouse.  Here are the important sections:



           
           REM assumes p is a roMessagePort object already created
           t=CreateObject("roTouchScreen")
           t.SetPort(p)
           REM Puts up a cursor if a mouse is attached
           REM The cursor must be a 16 x 16 24 bit BMP that ONLY
           REM uses black, white, and a third color
           REM The x,y position is the “hot spot†point
           REM you can find an example cursor in the brightsign demo download
           t.SetCursorBitmap(root+"cursor.bmp", 16, 16)
           t.SetResolution(1024, 768)
           t.SetCursorPosition(512, 512)


    and (use your correct parameters)


       t.AddRectangleRegion(xval,yval,wval,hval, numevents)
       t.EnableCursor(1)




    Note that brigthsign is incompatible with some USB mice.  We will improve this in the next software update.



    anthony
Please sign in to leave a comment.