1 Replies - 6122 Views - Last Post: 23 July 2009 - 12:32 PM Rate Topic: -----

#1 Yaroslav94  Icon User is offline

  • D.I.C Regular

Reputation: 5
  • View blog
  • Posts: 294
  • Joined: 15-July 09

Sendkeys.send but with mouse?

Posted 23 July 2009 - 11:59 AM

Can u do tht with mouse?

 sendkeys.send("{ENTER}")
' something like this - mouseclicks.click("{LEFTCLICK}}") idk the real code so...


Is This A Good Question/Topic? 0
  • +

Replies To: Sendkeys.send but with mouse?

#2 T3hC13h  Icon User is offline

  • D.I.C Regular

Reputation: 65
  • View blog
  • Posts: 337
  • Joined: 05-February 08

Re: Sendkeys.send but with mouse?

Posted 23 July 2009 - 12:32 PM

	Public Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer)


	Public Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down
	Public Const MOUSEEVENTF_LEFTUP = &H4 ' left button up
	Public Const MOUSEEVENTF_MIDDLEDOWN = &H20 ' middle button down
	Public Const MOUSEEVENTF_MIDDLEUP = &H40 ' middle button up
	Public Const MOUSEEVENTF_RIGHTDOWN = &H8 ' right button down
	Public Const MOUSEEVENTF_RIGHTUP = &H10 ' right button up

'use:

mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
 mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1