Jump to content

Recommended Posts

Posted

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!

Posted

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

Posted

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

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

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
×
×
  • Create New...