Claudia Fong said:
Hiya,
I'm looking for a scripting language that can programmatically press
several buttons in my c# application. The script will be running
overnight.. is there any scripting language that will do the job?
It sounds like you might be able to kludge up a test framework to do
something like that, as there are some to play with UI. It is probably an
expensive option, however.
I would consider refactoring the code and moving the actual bits that the
buttons call into another library and then slapping a console UI with
switches on top of it. You can then do something like this:
AutomatedAppThatIsUsuallyAWinForm.exe 1
AutomatedAppThatIsUsuallyAWinForm.exe 2
AutomatedAppThatIsUsuallyAWinForm.exe 4
AutomatedAppThatIsUsuallyAWinForm.exe 8
I am using binary here, as you can set up an enum of button choices and then
use a bitmask to fire off one button after another rather than having to
call the exe many times from a script.
--
Peace and Grace,
Greg
Twitter: @gbworld
Blog:
http://gregorybeamer.spaces.live.com
UI != Application
************************************************
| Think outside the box! |
************************************************