Windows XP Event Viewer

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
Dan
Newbie
Posts: 5
Joined: Fri Jan 11, 2008 6:45 pm

Windows XP Event Viewer

Post by Dan » Fri Jan 11, 2008 7:09 pm

Started my first "real" macro to open the Event Viewer to select each log file, open and delete logs. Got stuck right after the second line and can't figure out what to do next. Macro opens the Event Viewer just fine but, no matter what approach I use, the macro will not move the selection bar down to the first menu bar (Application). When I click the run button, and the Event Viewer comes up just fine and then just sits there? I can use the arrow keys and tab keys on my keyboard and move around in the window just fine, just won't respond to movement commands from the macro. Sure that I'm doing something wrong, just can't figure out what. Any suggestions are appreciated.

Thanx,
Dan

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jan 11, 2008 7:42 pm

Does your script WaitWindowOpen then SetFocus the Event Viewer window before sending the keystrokes?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Dan
Newbie
Posts: 5
Joined: Fri Jan 11, 2008 6:45 pm

Post by Dan » Fri Jan 11, 2008 8:25 pm

No, I'll give that a try and let you know wat happens.

Thanx,
Dan

Dan
Newbie
Posts: 5
Joined: Fri Jan 11, 2008 6:45 pm

Post by Dan » Fri Jan 11, 2008 9:00 pm

Thanx Marcus - that worked!

Dan

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts