Double click event (VBScript) in DesktopX

Saturday, February 13, 2010 by wc2005 | Discussion: DesktopX Tutorials

Everybody, please help me! I have problem with using OnDblClick event in VBScript (DesktopX pro 3.1, Windows XP 32 bit), the code does not work when i double click on the object, i think the syntax of the event is incorrect, the code is below, please help me correct it, thanks.

Code: vbscript
  1. Sub Object_OnDblClick()
  2.  DesktopX.Object("MainFrame").Opacity = 29
  3. End Sub
sViz
Reply #1 Saturday, February 13, 2010 8:44 AM

As far as I know, double-click is not a supported event in DX scripting: DX SCRIPTING REFERENCE

wc2005
Reply #2 Saturday, February 13, 2010 11:14 AM

Maybe, you are right, double-click event is not supported, i have searched everywhere without result. So, i think i will use right-click event instead.  Thanks a lot for your help!

homer1324
Reply #3 Sunday, February 21, 2010 2:34 PM

just a suggestion; why dont you set the object activation to double click in the object settings and just add an event for onstate change or something?

-if you need the object to do something on single click you can still add the single click event and have it do what you want.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01