Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default simulate mouse movement

ok... tricky / unsolvable I think...

I've got a risk model, written in excel / vba which takes a few hours
to run and I've got to run lots (c100) of them...

I've written a vba script (with the help of this group) which automates
this running, setting all the inputs etc etc etc - this works perfectly
:)

However.. there's an issue with the machine I'm running it on which I
can't work out how to solve. Every 15 minutes it goes on its windows
programmed powersave task / logoff. This *shouldn't* be a problem with
the vba, but I believe its messing with another part of the model
(running in S plus).

I want to stop it doing this, without having to babysit think for hours
on end, and the easiest way seems to be to simulate a key press or a
mouse movement to stop it messing up.

rationale:

1. it's a corporate laptop, completely locked down and impossible to
adjust all the security / powersaving settings, so I can't adjust it
this way.

2. I can't install anything on it (including any compilers) so the only
two programming languages I have available to me are vba and python
(otherwise I'm sure I could do it in C, or with some windows API call)
- hence my asking here.

Like I said, not sure if it's possible, but any help / ideas would be
very gratefully received...

Cheers

Chris

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default simulate mouse movement

VBA gives access to pretty much all the Windows API.
Does this help ?

http://msdn.microsoft.com/library/de...metersinfo.asp

may be with
SPI_GETBLOCKSENDINPUTRESETS
SPI_SETSCREENSAVEACTIVE

NickHK

wrote in message
ups.com...
ok... tricky / unsolvable I think...

I've got a risk model, written in excel / vba which takes a few hours
to run and I've got to run lots (c100) of them...

I've written a vba script (with the help of this group) which automates
this running, setting all the inputs etc etc etc - this works perfectly
:)

However.. there's an issue with the machine I'm running it on which I
can't work out how to solve. Every 15 minutes it goes on its windows
programmed powersave task / logoff. This *shouldn't* be a problem with
the vba, but I believe its messing with another part of the model
(running in S plus).

I want to stop it doing this, without having to babysit think for hours
on end, and the easiest way seems to be to simulate a key press or a
mouse movement to stop it messing up.

rationale:

1. it's a corporate laptop, completely locked down and impossible to
adjust all the security / powersaving settings, so I can't adjust it
this way.

2. I can't install anything on it (including any compilers) so the only
two programming languages I have available to me are vba and python
(otherwise I'm sure I could do it in C, or with some windows API call)
- hence my asking here.

Like I said, not sure if it's possible, but any help / ideas would be
very gratefully received...

Cheers

Chris



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse movement in EXCEL Staanley Excel Discussion (Misc queries) 2 September 8th 08 10:15 PM
Macro to Simulate F2 Lil Pun Excel Programming 7 April 25th 06 11:06 PM
Mouse movement over a worksheet Edward Ulle Excel Programming 2 April 5th 06 09:29 PM
Mouse Location, Movement and Spreadsheet Location TCook Excel Programming 3 October 3rd 05 10:23 PM
Mouse movement on worksheet InExcelHell Excel Programming 1 January 11th 05 03:23 AM


All times are GMT +1. The time now is 07:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"