in VB I would like to send keys to a cmd box. Now I use the VBHide option to hide it and it still shows up in the process list. Now does anyone know how to send keys to a process? (If it's something really simple please don't bite my head off)
Posts: 2468 Location: Brighton, UK Joined: 30.11.04 Rank: Uber Elite
Posted on 05-06-05 11:38
instead of sending keys into the cmd box. Just do a shell command.
Shell ("shutdown -f", vbHide)
RE: Sending keys to a process
Posts: Location: Joined: 01.01.70 Rank: Guest
Posted on 05-06-05 12:50
Well it depends, there are a few ways
first if it's just one command use the thing Mr_Cheese said.
Else make it run a bat file if you want a series of commands being executed.
If you just want to send random shit you need to get the window handle, you can do it llike this :