Sign in to follow this  
Followers 0
bobek

Is it possible?

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Check the AdlibEnable example - it does exactly what you describe.


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

AdlibEnable and _FileWriteLog are both extremly useful!

Thanks guys for fast help, i really appreciate it! :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0