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.

Select Text Using MousePlay

 Keywords: MousePlay @MPLAYLBUTTON @MPLAYLCLK Left Mouse Highlight Select Drag Drop 

tmpfile = FileCreateTemp( "MousePlaySample" )
sampletxt = "0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF
sampletxt = sampletxt:"0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789":@CRLF

FilePut( tmpfile, sampletxt )
RunZoom("Notepad.exe", tmpfile)

WinWaitExist("~Notepad", 10)

;Set starting point
MousePlay("5 50", "", "", @MPLAYLCLK, 0)

;Drag Mouse to Select the Text.
MousePlay("150 150", "", "", @MPLAYLBUTTON, 2)

WinClose("~Notepad")

FileDelete(tmpfile)

Article ID:   W17990
Filename:   Select Text Using MousePlay .txt
File Created: 2013:02:22:09:49:10
Last Updated: 2013:02:22:09:49:10