Modify

Opened 15 years ago

Closed 14 years ago

#1633 closed Bug (Fixed)

Second AdlibRegister function starts at once when first function is to slow

Reported by: funkey Owned by: Jon
Milestone: 3.3.7.7 Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description

If you have at least two funtions startet by AdlibRegister an one function is to slow, then the second one starts at once.
See the example. Try with less and more sleep time.

Opt('GUIOnEventMode', 1)
GUICreate("Bugtest AdlibRegister", 300, 50)
GUISetOnEvent(-3, "_Exit")

GUICtrlCreateCheckbox("Switch adlib function", 10, 20)
GUICtrlSetOnEvent(-1, "_StartAdlib")
GUICtrlSetState(-1, 4)

GUISetState()
AdlibRegister("_Something", 100)

While 1
	Sleep(100000)
WEnd

Func _StartAdlib()
	Local $CheckBoxState = GUICtrlRead(@GUI_CtrlId)
	ToolTip($CheckBoxState)
	If $CheckBoxState = "1" Then
		AdlibRegister("_Adlib", 60000 * 10)	;10 Minutes
		ConsoleWrite("1" & @cr)
	Else
		AdlibUnRegister("_Adlib")
		ConsoleWrite("0" & @cr)
	EndIf
EndFunc

Func _Something()
	Sleep(50)	; with 50 msec delay sometimes _Adlib() is called!
;~ 	Sleep(100)	; with 100 msec delay _Adlib() is called allways!
EndFunc

Func _Adlib()
	ConsoleWrite("Adlib function called!!" & @cr)
EndFunc

Func _Exit()
	Exit
EndFunc

Attachments (0)

Change History (4)

comment:1 Changed 15 years ago by Jpm

  • Milestone set to 3.3.7.0
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5841] in version: 3.3.7.0

comment:2 Changed 14 years ago by Jon

  • Resolution Fixed deleted
  • Status changed from closed to reopened

comment:3 Changed 14 years ago by TicketCleanup

  • Milestone 3.3.7.0 deleted

Automatic ticket cleanup.

comment:4 Changed 14 years ago by Jon

  • Milestone set to 3.3.7.7
  • Owner changed from Jpm to Jon
  • Resolution set to Fixed
  • Status changed from reopened to closed

Fixed by revision [6087] in version: 3.3.7.7

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.