bobek Posted April 30, 2007 Share Posted April 30, 2007 Hello all, I'd like to use it to test GUI of my Windows Forms app. In application I'm showing messagebox when error occurs. My question is how to create event that could catch just created messagebox during testing? Is it possible? Or maybe some other way? I was thinking about something like this but OnEvent functions look like working only with click events $error = WinActive("Error") xxxSetOnEvent($error, "ErrorFunc") While 1 testing code ... WEnd Func ErrorFunc() log it EndFunc Best regards! Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 30, 2007 Share Posted April 30, 2007 Hi, _FileWriteLog or ConsoleWrite will help you, I guess. So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
SadBunny Posted April 30, 2007 Share Posted April 30, 2007 Check the AdlibEnable example - it does exactly what you describe. Roses are FF0000, violets are 0000FF... All my base are belong to you. Link to comment Share on other sites More sharing options...
bobek Posted April 30, 2007 Author Share Posted April 30, 2007 AdlibEnable and _FileWriteLog are both extremly useful! Thanks guys for fast help, i really appreciate it! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now