|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
WM_LBUTTONDOWN and the lParam parameterHi there,
I'm trying to emulate mouse clicks using WM_LBUTTONDOWN, and WM_LBUTTONUP respectively. I can't quite remember how I am to create the lParam from the x and y coordinates, any imput on this would be greatly appreciated... -- Nick Pateman --------------------------------------------------------------- Please do not reply directly to me, but the entire newsgroup. Any views expressed above are my own Without predjudice Dim lParam as Long = MAKELONG(x, y)
Public Shared Function MAKELONG(ByVal low As Integer, ByVal high As Integer) As Long Return (low And &HFFFF) Or ((high And &HFFFF) << 16) End Function Show quoteHide quote "Nick" <nospam@nospam.com> wrote in message news:O6mW7HfFGHA.3532@TK2MSFTNGP14.phx.gbl... > Hi there, > > I'm trying to emulate mouse clicks using WM_LBUTTONDOWN, and > WM_LBUTTONUP respectively. I can't quite remember how I am to create the > lParam from the x and y coordinates, any imput on this would be greatly > appreciated... > > -- > Nick Pateman > > --------------------------------------------------------------- > Please do not reply directly to me, but the entire newsgroup. > Any views expressed above are my own > Without predjudice > Cheers Colin, just what I was after... :-)
Nick. Show quoteHide quote "Colin Neller" <cnel***@gmail.com> wrote in message news:ueNsCcfFGHA.1676@TK2MSFTNGP09.phx.gbl... > Dim lParam as Long = MAKELONG(x, y) > > Public Shared Function MAKELONG(ByVal low As Integer, ByVal high As > Integer) As Long > Return (low And &HFFFF) Or ((high And &HFFFF) << 16) > End Function > > > -- > Colin Neller > http://www.colinneller.com/blog > > > "Nick" <nospam@nospam.com> wrote in message > news:O6mW7HfFGHA.3532@TK2MSFTNGP14.phx.gbl... >> Hi there, >> >> I'm trying to emulate mouse clicks using WM_LBUTTONDOWN, and >> WM_LBUTTONUP respectively. I can't quite remember how I am to create the >> lParam from the x and y coordinates, any imput on this would be greatly >> appreciated... >> >> -- >> Nick Pateman >> >> --------------------------------------------------------------- >> Please do not reply directly to me, but the entire newsgroup. >> Any views expressed above are my own >> Without predjudice >> > > Hi Nick,
Try this: ~ lParam = CInt(y) << 16 Or x ~ Show quoteHide quote "Nick" <nospam@nospam.com> ñîîáùèë/ñîîáùèëà â íîâîñòÿõ ñëåäóþùåå: news:O6mW7HfFGHA.3532@TK2MSFTNGP14.phx.gbl... > Hi there, > > I'm trying to emulate mouse clicks using WM_LBUTTONDOWN, and > WM_LBUTTONUP respectively. I can't quite remember how I am to create the > lParam from the x and y coordinates, any imput on this would be greatly > appreciated... > > -- > Nick Pateman > > --------------------------------------------------------------- > Please do not reply directly to me, but the entire newsgroup. > Any views expressed above are my own > Without predjudice > >
VB2005 - Stop User from Leaving Row in DataGridView
vs2005 - Why all the errors? yet the code works. Problem With Insert into MySQL DB using VB.Net 2005 What mvp use for printing Random String labels Old value of a datagridview combobox cell Converting from VB6 to VB.NET 2003 Sending E-Mail from User's Machine How can I send mail on windows 98 using vb.net |
|||||||||||||||||||||||