Win32::CtrlGUI::State::DebugTk - Tk debugger of sorts for Win32::CtrlGUI::State
This document describes version 0.32 of Win32::CtrlGUI::State::DebugTk, released January 10, 2015 as part of Win32-CtrlGUI version 0.32.
If you want to try a cool demo, simply close all open Notepad windows and then open a single, empty Notepad window. Then run demotk.pl. Resize the Tk window that pops up so you can see stuff. Then do the same thing, but first open demotk.pl in Notepad and add a single carriage return to the end of the file. Then play with fresh Notepad windows that have random text in them (the contents will get save to C:\Temp\saved.txt, so if you have a file by that name in existence, be careful:).
The color scheme is: Red and bold: active state Black and bold: possible next state Black and not-bold: possible future state (but not possible next state) Black and crossed out: state will never be reached Dark red: state has been executed
Also notice that you can pause and resume scripts. You have to hit exit to terminate the script, but if you don't set $Win32::CtrlGUI::State::DebugTk::debugmode to 1, it will terminate as soon as the Win32::CtrlGUI::State stuff is finished, making it ideal for using with production scripts.
$Win32::CtrlGUI::State::DebugTk::debugmode
Also, try opening the Notepad window, waiting for the script to recognize it (state goes red), but then close it before it sends the text. Notice that it halts the script and alerts you.
Win32::CtrlGUI::State::DebugTk requires no configuration files or environment variables.
None reported.
No bugs have been reported.
Toby Ovod-Everett <toby AT ovod-everett.org>
<toby AT ovod-everett.org>
Win32::CtrlGUI is now maintained by Christopher J. Madsen <perl AT cjmweb.net>
<perl AT cjmweb.net>
Please report any bugs or feature requests to <bug-Win32-CtrlGUI AT rt.cpan.org> or through the web interface at http://rt.cpan.org/Public/Bug/Report.html?Queue=Win32-CtrlGUI.
<bug-Win32-CtrlGUI AT rt.cpan.org>
You can follow or contribute to Win32-CtrlGUI's development at http://github.com/madsen/win32-ctrlgui.
This software is copyright (c) 2015 by Toby Ovod-Everett.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
To install Win32::CtrlGUI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::CtrlGUI
CPAN shell
perl -MCPAN -e shell install Win32::CtrlGUI
For more information on module installation, please visit the detailed CPAN module installation guide.