Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

scripting code to move mouse pointer

1,986 views
Skip to first unread message

Larry

unread,
Jun 26, 2004, 12:27:38 PM6/26/04
to
Is there a way, from within Windows, to move the mouse pointer to the
corner of the screen using a keyboard command? This is possible in
Word, using the below macro. But I'd like the same capability in
Windows.

The reason I want this is that I have various keyboard shortcuts that
open Windows folders, but if I've forgotten to move the mouse prior to
running the shortcut, and if the pointer ends up in the middle of the
newly opened folder or Explorer window, it makes the focus jump to the
file icon that it happens to fall on. So for example I open Explorer,
and instead of the focus being in the Explorer pane, it jumps to the
folder pane and then I have to correct it. I want to be able to avoid
this with a keyboard command (maybe running a .vbs file with a Winkey
assignment) without reaching for the mouse. In fact, if such scripting
code exists, I might combine it in my existing .vbs files that I use to
open various folders.

Sub MouseMove()

' This macro operates in conjunction with the
' Public Declare Function SetCursorPos Lib "user32" at the top of this
module.

' moves mouse pointer to place on screen marked by coordinates.
' (0,0) would be the upper left corner of computer screen

ret = SetCursorPos(180, 80)
End Sub

AlmostBob

unread,
Jun 26, 2004, 2:10:54 PM6/26/04
to
search for a dowload, called mouseaway deigned to move the mouse cursor out of
focus, may be what you require, cant remember the url

--
Adaware http://www.lavasoft.de
spybot http://security.kolla.de
AVG free antivirus http://www.grisoft.com
Panda online AntiVirus scan http://www.pandasoftware.com/ActiveScan/
Catalog of removal tools http://www.pandasoftware.com/download/utilities/
Blocking Unwanted Parasites with a Hosts file
http://mvps.org/winhelp2002/hosts.htm
links provided as a courtesy, read all instructions on the pages before use
Grateful thanks to the authors/webmasters

"Larry" <larr...@att.net> wrote in message
news:O5XMbE6W...@TK2MSFTNGP10.phx.gbl...

Larry

unread,
Jun 26, 2004, 3:32:09 PM6/26/04
to

Thanks, AlmostBob. I checked that out, but what it does is check
everytime you press on a key to make sure the pointed is not in the way
of the text you're working on. What I want is to move the pointer out
of the way whenever I open a Windows Explorer window.

Larry


PCR

unread,
Jun 26, 2004, 6:00:36 PM6/26/04
to
(1) Try Details View. I never saw anything like that happen in Details
View.

(2) See what happens with...

"Control Panel, Mouse, Motion tab, enable Smart Move".

HOWEVER, that drove me NUTS the one/only time I tried it!


--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
should things get worse after this,
PCR
pcr...@netzero.net


"Larry" <larr...@att.net> wrote in message
news:O5XMbE6W...@TK2MSFTNGP10.phx.gbl...

Larry

unread,
Jun 27, 2004, 5:11:00 PM6/27/04
to
No "enable smart move" feature in Windows 98.

Thanks.
Larry


PCR

unread,
Jun 27, 2004, 6:35:14 PM6/27/04
to
I guess you are actually lucky, then! So, go to Details View, or set
yourself back to... "START, Settings, Folder Options, Custom button,
check 'Double-click to open an item (single-click to select)'".

However, I like it the other way.


--
Thanks or Good Luck,
There may be humor in this post, and,
Naturally, you will not sue,
should things get worse after this,
PCR
pcr...@netzero.net
"Larry" <larr...@att.net> wrote in message

news:%23m7K%23rIXE...@TK2MSFTNGP10.phx.gbl...


| No "enable smart move" feature in Windows 98.
|
| Thanks.
| Larry

"PCR" <pcr...@netzero.net> wrote in message
news:e8glXi8W...@TK2MSFTNGP09.phx.gbl...

0 new messages