Author Topic: nid help on double click  (Read 5138 times)

Offline jamesKL

  • *
  • Posts: 83
  • Karma: +0/-0
    • View Profile
on: September 25, 2008, 09: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



Offline UndCon

  • Support Admin
  • *
  • Posts: 566
  • Karma: +11/-3
    • View Profile
    • UndCon
Reply #1 on: September 26, 2008, 12:44:46 AM
Without the code its very difficult to help you out...



Offline jamesKL

  • *
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Reply #2 on: September 26, 2008, 01: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?



Offline boonjin

  • *
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #3 on: September 26, 2008, 03:20:05 AM
You just have to separate the down and up into two separate events.

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline jamesKL

  • *
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Reply #4 on: September 26, 2008, 03:39:45 AM
your double click rite, require the LEFTDOWN, LEFTUP to act 2 time is it?



Offline jamesKL

  • *
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Reply #5 on: September 26, 2008, 03:46:06 AM
Also, why rightup and rightdown can be in the same event but leftup and leftdown cannot?



Offline jamesKL

  • *
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Reply #6 on: September 28, 2008, 11:22:18 PM
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?



Offline jamesKL

  • *
  • Posts: 83
  • Karma: +0/-0
    • View Profile
Reply #7 on: September 29, 2008, 04:07:10 AM
ok my problem solve thx:)