Its2l82die Posted September 18, 2010 Share Posted September 18, 2010 Hi, I'm trying to write a script that will post a message of a single mouse click so correct me if I'm wrong but the lines should look like this: DllCall("user32.dll","int","PostMessage","hwnd",$hwnd,"Int",0x00000201,"Int",0x00000001,"long",$cords) DllCall("user32.dll","int","PostMessage","hwnd",$hwnd,"Int",0x00000202,"Int",0x00000001,"long",$cords) My problem is in the $cords part. As I know there is a Macro in C++ which is called MakelParam that combines the X coordinates of the mouse and the Y coordinates into a single value that goes into $cords which is our lparam. Could someone help me understand what happens inside MakelParam in Autoit script language, or show it in a snippet. Thanks in Advance, Its2l82die Link to comment Share on other sites More sharing options...
seandisanti Posted September 18, 2010 Share Posted September 18, 2010 Neither MouseClick() nor ControlClick() do what you need? Link to comment Share on other sites More sharing options...
Its2l82die Posted September 19, 2010 Author Share Posted September 19, 2010 I understand that, thats why I'm asking if you could show me the function that MakelParam does in Autoit script language and not give me an alternative command. Hope you understand what I mean and sorry I'm not explaining myself right. Link to comment Share on other sites More sharing options...
Its2l82die Posted September 27, 2010 Author Share Posted September 27, 2010 I'm sorry for bumping this up but its been sometime since I started this thread and no one have helped me with my issue. What I'm asking is does anyone know what is the MakelParam function in VB(I believe it is), and what does it do to the X and Y values of the mouse's coordinates? @cameronsdad Sorry if you didn't understand me, but what I meant is that ControlClick() won't do for me cause the window doesn't have a Control ID and MouseClick() is not an option as I need the window do be minimized. Thanks in advance, Its2l82die. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now