WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Mouse and Cursor Topics

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Click Drag and Copy with Mouse Functions

Keywords:  MouseClick(@LCLICK, @LBUTTON) mousemove    drag and drop

Question:

I have a proprietary communication software program that runs under Win95 and emulates a DOS terminal session. I have automated login procedures and can download a file. I do need the ability to scrape one screen so I can know when to end my session. I can copy a screen by placing the mouse in the upper right hand corner of the window, press & hold left button, move mouse to desired ending point and press ctl-c buttons to copy to clipboard. For some... I'm sure good reason, I can't get Winbatch to duplicate keystrokes. I can see the cursor positioned in the upper left hand corner. Then it moves to its ending position but no click and hold?

Answer:

  1. Is there any way to select the contents of the screen without using the mouse? Maybe an "Edit | Select All" menu item? if so you might consider sendking key strokes with Sendkeysto.

  2. If you have WinBatch 99k or newer there is a function called MousePlay that may be of help. I found that the easiest way to code MousePlay is from the utility WinMacro that can be accessed from the PopMenu utility that sits in the system tray. You simply record the macro. Save the macro as a WinBatch file, and the code is done for you....

    MousePlay allows you to perform the full range of mouse associated activities with a single function. You can simulate drag-and-drop operations by specifying the drop location in the "X-Y-coordinates" parameter and adding the @MPLAYLBUTTON constant to the "buttons" parameter. This tells MousePlay to move the mouse to the position x,y with the left mouse button down.

  3. NOTE: Earlier versions (99K and older) of WinBatch do not support (one would think that a mouse drag is the same as a mouse move with a button held down, but it's not).

Article ID:   W13296
Filename:   Mouse Click Drag and Copy.txt
File Created: 2001:01:16:13:28:38
Last Updated: 2001:01:16:13:28:38