Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Forum » Wiimote Projects » Wiimote Interactive Whiteboard » nid help on double click
Pages: [1]
  Print  
Author Topic: nid help on double click  (Read 1028 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 83
Offline Offline
View Profile
« on: September 25, 2008, 10:18:43 PM »

I nid some help one double click base on johnny lee program. I know boon jin have double click function but i trying to use my own way to do double click. the solution is there but the problem is that whenever the double click function is trigger, the screen will black out for a second.

Thanks in advance

James
Logged
Support Admin
*
Karma: +11/-2
Posts: 564
Offline Offline
View Profile
« Reply #1 on: September 26, 2008, 01:44:46 AM »

Without the code its very difficult to help you out...
Logged

*
Karma: +0/-0
Posts: 83
Offline Offline
View Profile
« Reply #2 on: September 26, 2008, 02:09:23 AM »

 INPUT[] buffer = new INPUT[1];
                buffer[0].type = INPUT_MOUSE;
                buffer[0].lol.dx = 0;
                buffer[0].lol.dy = 0;
                buffer[0].lol.mouseData = 0;
                buffer[0].lol.dwFlags = MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP ;
                buffer[0].lol.time = 0;
                buffer[0].lol.dwExtraInfo = (IntPtr)0;
                SendInput(1, buffer, Marshal.SizeOf(buffer[0]));

everytime i write this code it gives the error that i have mention. Is it impossible to put left down and left up tgt?
Logged
*
Karma: +23/-0
Posts: 479
Offline Offline
Smoothboard Developer
View Profile WWW
« Reply #3 on: September 26, 2008, 04:20:05 AM »

You just have to separate the down and up into two separate events.
Logged

Smoothboard.net
Wii Whiteboard/Wiimote Whiteboard with annotation features, autoconnect to multiple Wiimotes and more!

Smoothboard/Wii Whiteboard Wiki
One stop guide to all your Wiimote Whiteboard needs

BoonJin.com
*
Karma: +0/-0
Posts: 83
Offline Offline
View Profile
« Reply #4 on: September 26, 2008, 04:39:45 AM »

your double click rite, require the LEFTDOWN, LEFTUP to act 2 time is it?
Logged
*
Karma: +0/-0
Posts: 83
Offline Offline
View Profile
« Reply #5 on: September 26, 2008, 04:46:06 AM »

Also, why rightup and rightdown can be in the same event but leftup and leftdown cannot?
Logged
*
Karma: +0/-0
Posts: 83
Offline Offline
View Profile
« Reply #6 on: September 29, 2008, 12:22:18 AM »

one more question, what is it that cause the scrren to black out for a sec? is it because of the 2 mouse input work tgt or the computer is unable to detect any mouse input?
Logged
*
Karma: +0/-0
Posts: 83
Offline Offline
View Profile
« Reply #7 on: September 29, 2008, 05:07:10 AM »

ok my problem solve thx:)
Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Clicky Web Analytics