Jump to content
Macro Express Forums

Keystrokes not working in an MMC window


Recommended Posts

Hi all,

 

I have created a simple macro for getting the properties of an entry in a Microsoft Management Console window:

 

Alt+ A, R ( for properties), Tab (to relevant entry), Enter ( to open properties) , Copy highlighted field to clipboard - dead simple. If I just do this manually with key presses, all works well. If I use the script, it does nothing. I have added a message box at the end to check it finishes but that doesn't work either.

 

I had thought that because I was running this from my own PC, into a Citrix session, and on to and RDP session, it was getting lost in the mix somewhere, but I have installed MEX on the RDP machine and it still fails. I added some long pauses in case of latency.

 

I also tested on my own PC in an MMC window displaying Local users and groups, and that fails too.

 

It seems that I cannot run any scripted keyboard presses in a console window.

 

Can anyone shed any light on this or let me know if there is a workaround?

 

Many thanks

 

Andy

 

 

Link to comment
Share on other sites

That seems to be working , thanks for the pointer. 

 

Running as Admin is a bit of a pain, but when it is finished, it will be a once-only script to export several hundred databases. so worth persevering with.

 

Thanks

 

Andy

Link to comment
Share on other sites

This is by design. Many sensitive Windows system apps require admin level privileges in order to work. It's a security measure. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...