Qbix wrote:you might want to play with the output setting.
It seems that sdl has diffirent keyboard control depending on the output. You might want to try a cvs build of dosbox as well as that one forces sdl to use a different keyboard method as well.
Ok.. found out the problem. SDL uses Directinput to obtain keystrokes. Sendkeys is ignored. So all the DOS based key emulators, as well as WSH.Sendkeys will fail.
So then to send a CTRL-F6, the SendInput method will be required. AutoHotKey, an open source keystroke emulator available at http://www.autohotkey.com does use SendInput!
I installed AutoHotKey it and created the following script, which I run at CMD as 'capture-sound.ahk' and it executes. If anyone else uses it just change the lines with the name of the title screen the script looks for. In my case it is "DOSBox 0.65`, Cpu Cycles: 8000`, Frameskip 10`, Program: FUTRMIND":
----- capture-sound.ahk -----------------------------------------------------
Run, C:\Program Files\DOSBox-0.65\dosbox.exe
WinWait, DOSBox 0.65`, Cpu Cycles: 8000`, Frameskip 10`, Program: FUTRMIND,
IfWinNotActive, DOSBox 0.65`, Cpu Cycles: 8000`, Frameskip 10`, Program: FUTRMIND, , WinActivate, DOSBox 0.65`, Cpu Cycles: 8000`, Frameskip 10`, Program: FUTRMIND,
WinWaitActive, DOSBox 0.65`, Cpu Cycles: 8000`, Frameskip 10`, Program: FUTRMIND,
Send, {CTRLDOWN}{F6}{CTRLUP}
WinWaitClose
----------------------------------------------------------------------------------
Thank you for all your assistance. I hope this helps others who may wish to send keystrokes to DOSBOX.
Cheers,
sjsj