Jump to content



Photo

Possible Bug in OnAutoItStart()


  • Please log in to reply
4 replies to this topic

#1 jlandes

jlandes

    Wayfarer

  • Active Members
  • Pip
  • 93 posts

Posted 19 January 2005 - 06:50 PM

I believe that there might be a bug in the newest OnAutoItStart() function. Try these two pieces of code to see what I mean:

This code works:
Global Const $TEST = "Hello World!" Main() Func Main()     MsgBox(4096, "Test", $TEST) EndFunc


This code throws a variable undeclared error:
Global Const $TEST = "Hello World!" Func OnAutoItStart()     MsgBox(4096, "Test", $TEST) EndFunc


Is it possible that I'm doing something wrong, or is this possibly a bug?
Sincerely yours,Jeremy Landesjlandes@landeserve.com





#2 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 19 January 2005 - 06:56 PM

I would assume that OnAutoItStart() is called before ANY other piece of user-code, thus, the error is correct. Otherwise, what's the point of it being called "OnAutoItStart" if it's possible for other code to be executed first.

#3 Jon

Jon

    Up all night to get lucky

  • Administrators
  • 9,529 posts

Posted 19 January 2005 - 07:15 PM

Correct, it is called before anything else.

NOBUG then? :lmao:

#4 SlimShady

SlimShady

    AutoIt lover

  • Active Members
  • PipPipPipPipPipPip
  • 2,383 posts

Posted 19 January 2005 - 07:16 PM

Valik's right.
It's not a bug. It works exactly like it should.

#5 jlandes

jlandes

    Wayfarer

  • Active Members
  • Pip
  • 93 posts

Posted 19 January 2005 - 07:29 PM

Okay. I guess this isn't a bug then. Thanks.
Sincerely yours,Jeremy Landesjlandes@landeserve.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users