1.

Solve : Help write a .bat file?

Answer» HELLO,
This is my first post.
I am LEGALLY blind and only have use of one hand (NOT my
right hand, of course). I found a program that will speak the time for me but it needs to 'see' a control+alt+s to do it.
Would somebody write a .bat file that would 'press' that key combination for me?
I have a Remote Wonder 2 that I can program to run a batch file, but I have no idea how to 'simulate' key presses.

Thanks in advance very much for your help!
Eric T.
If you need to simulate key presses then i would suggest you take a LOOK at a very resourceful free program called autohotkey

It's very easy to useA script in autohotkey to do this action would simply be

---------------------
Send, {CTRLDOWN}{ALTDOWN}s{ALTUP}{CTRLUP}
----------------------

It can also be compiled into an executable so that it can be run nice an easily.

Hope that's what you're after and I'm not barking down the wrong tree.THANK YOU GUYS SOOO MUCH!!!!
I downloaded Autohoikey, pasted your script into the 'recorder' and converted it into an exe file.

Now I can get the time while watching TV in fullscreen, listening to FM radio (my All-In-Wonder card has a radio tuner too), watching DVD movies etc.
I truly appreciate the help!

Thanks again!

Eric T.
Glad i could be of help, and if it worked fine for you just click the Thanks option in the post thread to let people know.

Quote from: capteric36 on June 15, 2010, 11:33:23 PM

Would somebody write a .bat file that would 'press' that key combination for me?


VBScript:
Code: [Select]Option Explicit
Dim objShell, WshShell
set objShell = CreateObject("WScript.Shell")
objShell.SendKeys "^%s"
WScript.Quit


save as dot VBS. double-click to run.


Discussion

No Comment Found