SysAdmin2
Mar 9th, 2000, 03:23 AM
Here is the lowdown. I have a form that has a picture on it. I want the user to click on the picture and hold the mouse button down. Then..... the user will drag the mouse to a position anywhere in Windows (any position). Then the user will let go of the mouse button. Once they let go of the mouse button, I want to grab the mouse coordinates. I want to capture these coordinates, so I can automate the mouse movements and clicks so that the mouse will move and click on the objects on the desktop that the user selected. Example: User clicks on picture in my program. They drag the cursor over to an icon and let go of the mouse button. I capture the mouse coordinates. The user runs the program and i automatically go to the icon the user selected and double click. Understand?
Also... is there a way to get the current screen resolution through code? 640 * 480? 800 * 600? I need to get that as well.
Also... is there a way to get the current screen resolution through code? 640 * 480? 800 * 600? I need to get that as well.