in reply to Perl Tk ButtonPress Automation

I am trying to automate the that script for batch script testing

Why?

Instead of a script that only does "GoTk( @ARGV );" expand the script to have a "GoCLI( @ARGV ); " then you won't need to "automate" the GUI

See guitest as in X11::GUITest or Win32::GuiTest