Jump to content

Adlib issues


Recommended Posts

This is the first time i've attempted to learn about adlib, and here is my problem\misunderstanding

SciTE - uses AdlibRegister\AdlibUnregister (the code syntax is blue)

Autoit Helpfile - Has AdlibEnable\AdlibDisable (with a small example theory

I tried SciTE's way first and it gives me this error

$gui = GUICreate ('')
GUISetState ()
AdlibRegister ('_Event')
While GUIGetMsg () <> -3
WEnd
Func _Event ()
    ConsoleWrite ('Event Occured' & @LF)
EndFunc

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "E:\Scripts\1.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams    
+>14:33:10 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0409  Keyboard:00000409  OS:WIN_XP/Service Pack 3  CPU:X64 OS:X86)
>Running AU3Check (1.54.14.0)  from:C:\Program Files\AutoIt3
E:\Scripts\1.au3(3,24) : ERROR: AdlibRegister(): undefined function.
AdlibRegister ('_Event')
~~~~~~~~~~~~~~~~~~~~~~~^
E:\Scripts\1.au3 - 1 error(s), 0 warning(s)
!>14:33:10 AU3Check ended.rc:2
>Exit code: 0    Time: 1.803

i assumed it worked because the syntax highlighting was Blue, but no funcion existed in the helpfile, so i tried the helpfiles way, with a black highlighting akin to a UDF... THIS worked

$gui = GUICreate ('')
GUISetState ()
adlibEnable ('_Event')
While GUIGetMsg () <> -3
WEnd
Func _Event ()
    ConsoleWrite ('Event Occured' & @LF)
EndFunc

does anyone understand why this happened?

EDIT: after posting this.. i see that the forums syntax is opposite what of what i said, and that it may appear that nothing is wrong when looking at the forums code. - i'd still like to know why my SciTE has a func that doesn't exist

Edited by CodyBarrett
Link to comment
Share on other sites

i just installed the beta SciTE and the last release (unless there was a new one in the last week)

EDIT: hmm, well thank you :idea: it works now that i installed the newest version of autoit... maybe i got my Copies mixed up.. i don't know, but i AM a little curious WHY it wasn't working, the Beta SCITE and a slightly older version of Autoit. its interesting.. does anyone know?

Edited by CodyBarrett
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...