Double click event (VBScript) in DesktopX

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

7,512 views 3 replies
Reply #2 Top

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!

Reply #3 Top

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.