General Macro Scheduler discussion
Moderators: JRL, Dorian (MJT support)
-
KenHadley
- Junior Coder
- Posts: 28
- Joined: Thu Jul 14, 2011 5:02 pm
Post
by KenHadley » Fri Jul 29, 2011 2:36 pm
I have been having problems with MouseMove acting inconsistently, so I wrote the following trivial script and am using it across a wide range of Windows programs, all of which are tested at full screen with the window active. This script fails consistently with certain applications, such as Total Commander and Sysinternals Process Explorer. The mouse fails to move at all. More importantly, the script fails inconsistently with Excel. I have been unable to determine any reason why the mouse moves succeed on some spreadsheets and do not move on other spreadsheets. As I thought MouseMove simply called the Windows API, I would appreciate any help in solving this. The inconsistently in Excel is a show-stopper for my intended use.
Code: Select all
//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
Wait>1
MouseMove>150,150
Wait>1
MouseMove>300,300
Wait>1
-
Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
-
Contact:
Post
by Marcus Tettmar » Mon Aug 01, 2011 9:33 am
Very odd. I've never heard of MouseMove failing. As you say, it calls the Windows API to move the mouse and the underlying Window/APP should make no difference. I've never seen MouseMove fail in 15 years! Do you have some other mouse control software running?
-
KenHadley
- Junior Coder
- Posts: 28
- Joined: Thu Jul 14, 2011 5:02 pm
Post
by KenHadley » Mon Aug 01, 2011 5:39 pm
No, no other mouse control software at all. It is the strangest thing. I can execute that trivial script all day long in Notepad, never fails once. I can do the same in Outlook 2010 all day long, never fails. I move to Excel 2010 and *nothing*. I am running Win 7 Ultimate with Office 2010. I have lots of Excel add-ins, etc., but nothing that has anything to do with mouse control or Win APIs. I even checked to see if Get/SetMessagePos and CursorPos will run in Excel and they run fine. Weird.
I'll keep looking and come back if I find something.
Ken