schilbiz Posted February 6, 2008 Share Posted February 6, 2008 (edited) I did look to see if this was a bug and didn't find anything on it in the No Bug, Open, Fixed etc forums. http://www.autoitscript.com/forum/index.php?showforum=3I was just messing around trying to get a better understanding of GuiTab and tabbed items when I ran this script then hit F1 for AutoIt help. It created a duplicate script. I would close Help then hit F1 again to open it and it would open another script.I realize there is a lot of junk in this script that is not needed but like I said I was just playing around changing tabs trying multiple windows experimenting etc and wanted to leave it all there in case there was a bug involved and someone wanted to duplicate it.So maybe on of you experts will tell me what is happening. Just hit F5 (GO) and then hit F1 to open Help, close help then make sure you have the ScITE window active and hit F1 again, or just click on Help > Help.Ran on:Win XP Pro V 2002 SP 2AutoIt Version 3.2.20.0November 24th 2007SciTE4AutoIt3 Version 1.71Nov 25 2007 09:22:42#include <GUIConstants.au3> ;#Include <GuiListBox.au3> Opt("GUIOnEventMode", 1) #Include <GuiTab.au3> $gui = guicreate("Test tabbed GUI", 500, 500, 150, 350) $tab = GUICtrlCreateTab(5, 35, 490, 460) $tab0 = GUICtrlCreateTabitem("tab0") $tab1 = GUICtrlCreateTabitem("tab1") $tab2 = GUICtrlCreateTabitem("tab2") GUISetOnEvent($GUI_EVENT_CLOSE, "XButton") GUICtrlCreateTabitem ("tab3") GUISetState(@SW_SHOW) ;GUISetState(@SW_ENABLE) while 1 sleep(500) WEnd Func XButton() Exit EndFunc Edited February 6, 2008 by schilbiz Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 6, 2008 Share Posted February 6, 2008 I did look to see if this was a bug and didn't find anything on it in the No Bug, Open, Fixed etc forums. http://www.autoitscript.com/forum/index.php?showforum=3The Bug-Tracker replaced the bugs-forum, did you check there?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
schilbiz Posted February 6, 2008 Author Share Posted February 6, 2008 (edited) The Bug-Tracker replaced the bugs-forum, did you check there??Yeah I looked through the lists but did not see anything that addresses this specific issue. I thought I would check to see if it was something to do with the code before submitting anything. One of the experts on the forums will at the least give a better idea what is causing it so that if it needs to be submitted I will have a better understanding what is causing it.Edit: Have looked here http://svn.autoitscript.com/trac/ and here http://www.autoitscript.com/forum/index.php?showforum=3 Edited February 6, 2008 by schilbiz Link to comment Share on other sites More sharing options...
MrCreatoR Posted February 6, 2008 Share Posted February 6, 2008 I notice this bug too, and this one is an old bug i think (i notice it when i started using AutoIt).I just could not figure out the consistence or how to reproduce it every time. But now i know that this happen only when script is executed .Just hit F5 (GO) and then hit F1 to open Help, close help then make sure you have the ScITE window active and hit F1 again, or just click on Help > Help.For me the script executed again on the first atempt, i mean when i press F5, focus SciTE window, and press F1 - i see the help file, and another copy of the GUI.Tested under AutoIt 3.2.8.1 and 3.2.10.0 (with supplied SciTE version). Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
whim Posted February 6, 2008 Share Posted February 6, 2008 Not sure if this has anything to do with it, but your code seemsto be missing the closing statement as recommendedin the helpfileDon't forget to close your tabitem creation with GUICtrlCreateTabItem(""). Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 6, 2008 Share Posted February 6, 2008 For me the script executed again on the first atempt, i mean when i press F5, focus SciTE window, and press F1 - i see the help file, and another copy of the GUI.Tested under AutoIt 3.2.8.1 and 3.2.10.0 (with supplied SciTE version).Now when i think about it, I have also experienced that bug, running under 3.2.10.0 with latest SciTE.... Maybe someone should report it on the bug-tracker?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
schilbiz Posted February 6, 2008 Author Share Posted February 6, 2008 Not sure if this has anything to do with it, but your code seems to be missing the closing statement as recommended in the helpfile I was just checking that but I still got the duplicate script. I just tried a few other scripts that have no tab stuff in them at all and it is still occuring. I don't think it has anything to do with tabbing at this point. This code below will cause it to occur as well, the only similarity is that it has a while statment and sleep(). You will see it dup in the tray. $a = Number(1+2) While 1 Sleep(1000) WEnd Link to comment Share on other sites More sharing options...
MrCreatoR Posted February 6, 2008 Share Posted February 6, 2008 the only similarity is that it has a while statment and sleep()Just a Sleep(5000) is enough to trigger this bug Spoiler Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1 AutoIt Russian Community My Work... Spoiler Projects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize ProgramUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF Examples: ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating ) * === My topics === * ================================================== ================================================== AutoIt is simple, subtle, elegant. © AutoIt Team Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted February 6, 2008 Share Posted February 6, 2008 Just a Sleep(5000) is enough to trigger this bug OR While 1 WEnd .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
schilbiz Posted February 6, 2008 Author Share Posted February 6, 2008 (edited) So basically if you execute a script from SciTE then try to open Help while the script is running, it duplicates the script. Anyone find otherwise? Edit: added "while the script is running", for clarity. Edited February 6, 2008 by schilbiz Link to comment Share on other sites More sharing options...
schilbiz Posted February 6, 2008 Author Share Posted February 6, 2008 (edited) Did a thorough search on Bug Trac and found that this issue had already been submitted.Edit: To save face the reason I didn't find it originally is because I was searching for issues with tabbed Guis and not just SciTE. After a few people responded and the issue was narrowed down I was able to do a more thorough search on Bug Trac and found the existing but closed ticket.http://svn.autoitscript.com/trac/ticket/62 Edited February 6, 2008 by schilbiz Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2008 Developers Share Posted February 6, 2008 Did a thorough search on Bug Trac and found that this issue had already been submitted.http://svn.autoitscript.com/trac/ticket/62Correct ... It has been an issue since day one we're using SciTE. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now