Discussion:
Need help getting started with controlling my application
(too old to reply)
Ron Hall
2007-05-17 23:23:38 UTC
Permalink
I apologize for not knowing the proper terminology here but I'm hoping by
describing what I want to do someone can point me at the proper topics or
example so I can get started learning and modifying my application. I have
a Win32 GUI application written in C++ (not MFC) and would like to implement
a "scripted" control of it. The application currently accepts user input in
the form of keystrokes and mouse clicks using the standard windows interface
items like the menu and dialog boxes etc... to collect user input and
commands. I would like to be able to "write" a file (editable ascii text)
that I ask the program to process that would automate these user inputs
making them repeatable and where I can run them over and over again. It
might also be real nice to be able to "record" in some fashion user inputs,
selections, etc... to help build this file that I could invoke later. I've
stumbled around the documentation looking at things like "scripting" but
everything I've thought of to look at seams to point to web development and
HTML things. Can someone please provide a few words, phrases or references
so I can go figure out how to start this, I've seen similar things in tutors
and the like where a help file or tutor will "invoke" some menu or dialog
box for you.

TIA
ron
Ron Francis
2007-05-18 00:21:49 UTC
Permalink
Well, you could write a file in any format you like and have you app read it
and issue appropriate commands to suit.
Eg: read a text file with one line "resize 100 300"
Parse the text into manful commands and use SendMessage() with WM_SIZE.
But there is a lot of coding there as you would have to write a handler for
every command.
If you want to actually record and playback keyboard and mouse events, have
a look at JournalRecordProc() in your help file.

Hope that helps.

Regards,
Ron Francis
www.RonaldFrancis.com
Post by Ron Hall
I apologize for not knowing the proper terminology here but I'm hoping by
describing what I want to do someone can point me at the proper topics or
example so I can get started learning and modifying my application. I have
a Win32 GUI application written in C++ (not MFC) and would like to
implement a "scripted" control of it. The application currently accepts
user input in the form of keystrokes and mouse clicks using the standard
windows interface items like the menu and dialog boxes etc... to collect
user input and commands. I would like to be able to "write" a file
(editable ascii text) that I ask the program to process that would automate
these user inputs making them repeatable and where I can run them over and
over again. It might also be real nice to be able to "record" in some
fashion user inputs, selections, etc... to help build this file that I
could invoke later. I've stumbled around the documentation looking at
things like "scripting" but everything I've thought of to look at seams to
point to web development and HTML things. Can someone please provide a few
words, phrases or references so I can go figure out how to start this, I've
seen similar things in tutors and the like where a help file or tutor will
"invoke" some menu or dialog box for you.
TIA
ron
Loading...