Hi Jeff,

On Mac OS X, I had no problems selecting a line of a menu button using arrow keys. On Windows, it simply didn't work. The following scripts might help to get you started with a work-around.

Card script can be anything like this:

on arrowkey foo
  set the screenmouseloc to globalloc(the loc of of btn 1)
  if foo is "down" then
    click at the loc of btn 1
  else
    pass arrowkey
  end if
end arrowkey

Script for the menu button:

on arrowkey theKey
  if the platform is "Win32" then
    if theKey is "up" then
      put 1 into myDirection
    else if theKey is "down" then
      put -1 into myDirection
    end if
    put 0 into myV
    repeat until keysDown() is empty
      add myDirection to myV
      set the screenmouseLoc to (item 1 of the screenmouseloc & ¬
      comma & (item 2 of the screenmouseloc - myV))
      wait 50 millisecs with messages
    end repeat
  else
    pass arrowKey
  end if
end arrowkey

best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz

Op 26-jan-2007, om 17:11 heeft Jeff Honken het volgende geschreven:

I'm trying to use an option box and program it so I don't have to use
the mouse. When I enter the box I'd like to use my down arrow and have
the options displayed in the pull down.  I can do this by:

on arrowKey theKey
  if theKey is "down" then

     click at the loc of btn "PIC"

  end if
end arrowKey


The menu box pulls down but the problem is that it doesn't hilite the
first line in the choices.  I've tried something like

hitlite line 1 of me

but that seem to work.  Any help would be greatly appreciated.
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to