|
Home > Archive > Programming with dBASE > November 2005 > Simulating Mouse Clicks
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Simulating Mouse Clicks
|
|
| Agbeniga David 2005-11-08, 9:24 am |
| is there a way to simulate mouse clicks using the windows api or from dbase plus itself. also is there a way to programatically access the find menu on an editor control without first right clicking it
| |
| Glenn Johansen 2005-11-08, 9:24 am |
| Sure, set focus to the entryfield then access the entryfields properties
..copy( ) Copies selected text to the Windows clipboard
..cut( ) Cuts selected text and to the Windows clipboard
..keyboard( ) <expC> Simulates typed user input to the Entryfield object
..paste( ) Copies text from the Windows clipboard to the current cursor
position
..showMemoEditor( ) Opens the specified memoEditor
..undo( ) Reverses the effects of the most recent cut( ), copy( ), or
paste( ) action--
Thanks.
Glenn Johansen
Software Architects, Inc.
Phone: (864) 963-8402
Fax: (864) 963-1809
Pager: (864) 290-0676
Cell: (864) 320-5321
"Agbeniga David" <agbenigadavid@yahoo.com> wrote in message
news:wVeCF954FHA.1036@news-server...
> is there a way to simulate mouse clicks using the windows api or from
dbase plus itself. also is there a way to programatically access the find
menu on an editor control without first right clicking it
| |
| Agbeniga David 2005-11-08, 9:24 am |
| thanks, but u are missing the point, i'm asking about the "find text" option that is available on the editor control. how do you programatically call this up without first right clicking the control. Then i'm not talking about the entryfield control, rath
er the editor control.
i know there is the mouse_event command on the api, can someone show me how to use it correctly. with this i can lock the window display, then programmatically right click the control, and then pass a keyboard call of "f" to show the find text dialog box.
so i would appreciate it if someone shows me our to simulate mouse clicks with this command or using any other command at all.
Glenn Johansen Wrote:
> Sure, set focus to the entryfield then access the entryfields properties
>
> .copy( ) Copies selected text to the Windows clipboard
> .cut( ) Cuts selected text and to the Windows clipboard
> .keyboard( ) <expC> Simulates typed user input to the Entryfield object
> .paste( ) Copies text from the Windows clipboard to the current cursor
> position
> .showMemoEditor( ) Opens the specified memoEditor
> .undo( ) Reverses the effects of the most recent cut( ), copy( ), or
> paste( ) action--
>
> Thanks.
> Glenn Johansen
> Software Architects, Inc.
> Phone: (864) 963-8402
> Fax: (864) 963-1809
> Pager: (864) 290-0676
> Cell: (864) 320-5321
> "Agbeniga David" <agbenigadavid@yahoo.com> wrote in message
> news:wVeCF954FHA.1036@news-server...
> dbase plus itself. also is there a way to programatically access the find
> menu on an editor control without first right clicking it
>
>
| |
| Ronnie MacGregor 2005-11-08, 9:24 am |
| In article <wVeCF954FHA.1036@news-server>, agbenigadavid@yahoo.com
says...
> is there a way to simulate mouse clicks using the windows api
> or from dbase plus itself. also is there a way to programatically
> access the find menu on an editor control without first right clicking it
http://www.dbasedeveloper.co.uk/rmM...MouseEvents.htm
--
Ronnie MacGregor
Scotland
www.dBASEdeveloper.co.uk
| |
|
|
|
|
|