Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Send mouse click?

I'm looking for a command like "Sendkey" but "send mouse click" (left
button)

I would appreciate if someone posted a code example, just a simple
click of the left mouse button and my day would be saved ;)

/Johan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Send mouse click?

Hi,

Don't know any other way then by API

First declare this:
Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As
Integer

Then adapt and insert this somewhere

If GetAsyncKeyState(1) < 0 Then MsgBox "leftbutton"
If GetAsyncKeyState(2) < 0 Then MsgBox "rightbutton"
Regards,
ManualMan
http://www.gamesXL.tk

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADD A COMMAND TO MOUSE RIGHT CLICK frankoklahoma Setting up and Configuration of Excel 1 August 23rd 09 09:45 PM
Right Mouse Click StephenD Excel Discussion (Misc queries) 4 May 27th 09 04:24 PM
right mouse click not working VSLAU1 Excel Discussion (Misc queries) 1 March 18th 08 03:55 AM
right mouse click in excel Carol Excel Discussion (Misc queries) 1 January 4th 06 11:21 PM
Each Click of the Mouse D.Parker Excel Discussion (Misc queries) 13 April 28th 05 11:24 PM


All times are GMT +1. The time now is 07:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"