Source language: Translate to:

Right button Menu on Mousse Over (List Area)

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Right button Menu on Mousse Over (List Area)

Postby UltraVox » Fri Mar 26, 2010 4:44 am

Hello all,

I would like to create a menu on the right button mouse over an Area List (Zone List in english version ?). The option does not exist in NeoBook, but I am convinced that a possibility exists.

If it helps, there is a variable [Function] for the tray, hover the mouse (tab Entry Mouse and Exit Mouse) :

Code: Select all
SetVar "[Function]" "Function name flown by the mouse"

Is it possible to generate a specific Menu, from the right button of the mouse, where this variable is active ?

Thank you for your help.
Posts: 419
Joined: Sat Jul 28, 2007 11:14 am
Location: France

Postby Neosoft Support » Fri Mar 26, 2010 10:06 am

I don't think there is any way to use the right click for a list box. However, you might be able to do something with this example pub:

The pub demonstrates how to create a simulated list box that's actually made up of push buttons - which do support right click actions.
NeoSoft Support
Neosoft Support
NeoSoft Team
Posts: 5593
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby Ndzn » Sat Mar 27, 2010 6:46 am

I think I recall a plugin (MouseHook?) that detects mouse events. X/Y positions, Right-click, Left-click, Wheel, etc. Using such a plugin you could create a right-click menu anywhere.


Mouse Enter Action:
SetVar "[M_Object]" "MyListBox"
TimerStart "MouseEventTimer" "25"

Mouse Exit Action:
TimerStop "MouseEventTimer"

Interval Action:
IfEx "[M_Object]=MyListBox AND [Mouse.Event]=RightClick"
TimerStop "MouseEventTimer"
GoSub "ListBoxMenu"

Subroutine "ListBoxMenu"
GetMousePos "[mX]" "[mY]"
MenuEx "[mX]-10" "[mY]-10" "This|That|The Other Thing" "[Menu#]"
... do stuff here

It might look something like that at least. Does anyone know where this plugin is??
User avatar
Posts: 134
Joined: Sun Sep 20, 2009 8:37 am

this one?

Postby AlfB » Sat Mar 27, 2010 9:20 am

hi ndzn,
should be tmMousehook, an ancient plugin from Alberto of Techmedia (2007) to find here

hope that helps

User avatar
Posts: 132
Joined: Sun Apr 03, 2005 12:43 am

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 1 guest