Source language: Translate to:

Double-Click Action

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Double-Click Action

Postby Cuttlas » Sat Mar 22, 2014 12:36 pm


So many objects have "left click" action, but maybe you need to use a "Double-Click" action, for example you have a picture and you want to show its detail by double-clicking on it, Here is a piece of code which I\m using for such actions:

put it in pub's start-up section:
Code: Select all
SetVar "[LCount]" "0"

or you can put it in "Mouse Enter" section of target object.

and put the codes below on "left-lick" actions of your target object like a picture:
Code: Select all
SetVar "[LCount]" "[LCount]+1"
If "[LCount]-2" "=" "0"
MessageBox "" "" "OK" ""
SetVar "[LCount]" "0"
Delay "200"
SetVar "[LCount]" "0"

Instead of (MessageBox "" "" "OK" "") you can copy your own action

Hope It can help and be useful,
If you know a better way or trick, I'll be glad to learn it ;)
Last edited by Cuttlas on Fri Apr 04, 2014 11:54 am, edited 1 time in total.
User avatar
Posts: 60
Joined: Wed Dec 07, 2011 10:45 am

Re: Double-Click Action

Postby Neosoft Support » Mon Mar 24, 2014 10:30 am

That's great. Thanks for sharing this with us.
NeoSoft Support
Neosoft Support
NeoSoft Team
Posts: 5621
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 1 guest