Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,804 of 42,547    |
|    Robert Roland to All    |
|    Re: Execute CTRL + O , Windows key + M,     |
|    03 Apr 20 09:27:55    |
      From: fake@ddress.no              On Thu, 2 Apr 2020 10:14:49 -0700 (PDT), sanjaymkotabagi@gmail.com       wrote:              >hey even i need same function i need ctrl-'s' to be pressed on execution of       bat file       >any one help              While automation is a good thing, sending keystrokes is a terrible way       to do it. In addition to sending the proper keystrokes, you will need       to ensure the correct application maintains focus while the keystrokes       are being sent. An interactive user can very easily mess up the       process.              Plain batch has no built-in way to send keystrokes. You can use a       hybrid VBscript or PowerShell method, but it is risky, since the       VBscript or PowerShell process could accidentally grab focus.              If sending keystrokes is truly the only option, I would take a look at       AutoIt. It has very powerful features, such as setting focus and       waiting for focus. It is a full featured scripting language, and it       can even compile the scripts into standalone EXE files.       --       RoRo              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca