Jump to content
Sign in to follow this  
JoeCool

silly debugger ;-)

Recommended Posts

JoeCool

No real one so there's a silly debugger ;-)

Or how to be dangerous while playing with adlib funcs ...

Of course u have to put that dumb ctrl in your application but ...

:-)

#include <GuiConstants.au3>
#include <date.au3>


func close()
   adlibDisable( )
   exit
endfunc

func debug()
   $str = _NowCalc() & @CRLF
   $str = $str & "loop " & $loop & @CRLF
   guiCtrlSetData ( $mlTxtdebug, $str )
endfunc


Opt("GUIOnEventMode", 1)

guiCreate(":-)", 220, 220, 200, 200 )
guiSetOnEvent($GUI_EVENT_CLOSE, "close")

$mlTxtdebug = guiCtrlCreateEdit("",10, 10, 200, 200 )
adlibEnable ( "debug", 500 )

guiSetState(@SW_SHOW)

$loop = 0
while 1
   sleep(800)
   $loop = $loop + 1

wend

adlibDisable( )
exit
Edited by JoeCool

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  

×