Jump to content

silly debugger ;-)


JoeCool
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...