Modify ↓
#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 by , on May 21, 2010 at 5:10:00 PM
| Milestone: | → 3.3.7.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
comment:2 by , on May 28, 2011 at 4:40:49 PM
| Resolution: | Fixed |
|---|---|
| Status: | closed → reopened |
comment:4 by , on May 30, 2011 at 10:02:29 PM
| Milestone: | → 3.3.7.7 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | reopened → closed |
Fixed by revision [6087] in version: 3.3.7.7
Note:
See TracTickets
for help on using tickets.

Fixed by revision [5841] in version: 3.3.7.0