ChrisL Posted December 19, 2007 Share Posted December 19, 2007 Windows XP Autoit Ver 3.2.10.0 Run this script then click on the item in row6 and it activates the function for the $fileMenu, how does this happen? (I've just spent hours trying to figure out why upgrading a script went mad with a listview and clicking on an item) Can anyone else confirm this behaviour? expandcollapse popup#include <GUIConstants.au3> #Include <GuiListView.au3> Opt("GuiOnEventMode",1) $main = GuiCreate("MyGUI", 1025, 459,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents") GUISetOnEvent($GUI_EVENT_MINIMIZE, "SpecialEvents") GUISetOnEvent($GUI_EVENT_RESTORE, "SpecialEvents") $h_listview = GUICtrlCreateListView(" ", 8, 10, 849, 337) $FileMenu = GUICtrlCreateMenu("File") $ExitItem = GUICtrlCreateMenuItem("Exit",$FileMenu) GUICtrlSetOnEvent(-1,"_Exit") GUIStartGroup() For $i = 0 to 10 _GUICtrlListView_InsertColumn ( $h_listview, $i, "Col " & $i , 75 ) Next GuiSetState() $hwnd = GUICtrlGetHandle($h_listview) For $x = 1 to 10 For $y = 1 to 11 If $y = 1 then $ret = _GUICtrlListView_AddItem($hWnd, "Row " & $x & " Col 0") Else $ret = _GUICtrlListView_SetItemText($hWnd, $x-1,"Row " & $x & " Col " & $y -1, $y-1) EndIf Next Next While 1 Sleep (100) WEnd Func _Exit() Msgbox(0,"","How the F**K did clicking row 6 activate this?") EndFunc Func SpecialEvents() ConsoleWrite("Special Events WinHandle = " & @GUI_WINHANDLE & " ControlID = " & @GUI_CtrlId & @crlf) Select Case @GUI_CTRLID = $GUI_EVENT_CLOSE $ans = Msgbox(4 + 262144,"Exit","Do you really want to exit?") If $ans = 6 then Exit Case @GUI_CTRLID = $GUI_EVENT_MINIMIZE WinSetState(@GUI_WINHANDLE,"",@SW_MINIMIZE) Case @GUI_CTRLID = $GUI_EVENT_RESTORE WinSetState(@GUI_WINHANDLE,"",@SW_RESTORE) EndSelect EndFunc [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Share Posted December 19, 2007 Runs fine for me V 3.2.9.3 beta AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ChrisL Posted December 19, 2007 Author Share Posted December 19, 2007 Runs fine for meV 3.2.9.3 betaYou failed on the first line [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Share Posted December 19, 2007 (edited) You failed on the first line LOL, what? how did I fail?EDIT: I am trying to help you get it running, not confirm that an outdated version of autoit will not run it. Edited December 19, 2007 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ChrisL Posted December 19, 2007 Author Share Posted December 19, 2007 (edited) LOL, what? how did I fail?EDIT: I am trying to help you get it running, not confirm that an outdated version of autoit will not run it.Autoit Ver 3.2.10.0 the latest released version!I just tried it with 3.2.9.14 and it goes wrong with that one as well, see if clicking any of the listview items does anything? (it shouldn't but it does on my computer)Edit: I think your running outdated Edited December 19, 2007 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Share Posted December 19, 2007 wow... my bad for being a retard that can't count.... I will download the latest > test > and post my results sorry for being such a putz... been a long day AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ChrisL Posted December 19, 2007 Author Share Posted December 19, 2007 wow... my bad for being a retard that can't count.... I will download the latest > test > and post my resultssorry for being such a putz... been a long dayNo worries and thanks [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Share Posted December 19, 2007 (edited) crazy... I get the same results as you EDIT: 3.2.10.0 - has the issue 3.2.9.14 - has the issue also Edited December 19, 2007 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ChrisL Posted December 19, 2007 Author Share Posted December 19, 2007 crazy... I get the same results as youGood! Thought I was going mad I'll report it as a bug then I thinkThanks again for confirming [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
GaryFrost Posted December 19, 2007 Share Posted December 19, 2007 You report it without looking for a bug report and I'll pop ya one http://www.autoitscript.com/forum/index.php?showtopic=59685 SciTE for AutoItDirections for Submitting Standard UDFs  Don't argue with an idiot; people watching may not be able to tell the difference.  Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Share Posted December 19, 2007 It gets more strange.... All I did was move a couple lines around... now it activates on row 5 !!! expandcollapse popupMsgBox(0, "test", @AutoItVersion ) #include <GUIConstants.au3> #Include <GuiListView.au3> Opt("GuiOnEventMode",1) $main = GuiCreate("MyGUI", 1025, 459,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents") GUISetOnEvent($GUI_EVENT_MINIMIZE, "SpecialEvents") GUISetOnEvent($GUI_EVENT_RESTORE, "SpecialEvents") $FileMenu = GUICtrlCreateMenu("File") $ExitItem = GUICtrlCreateMenuItem("Exit",$FileMenu) GUICtrlSetOnEvent( -1 ,"_Exit") $h_listview = GUICtrlCreateListView(" ", 8, 10, 849, 337) GUIStartGroup() For $i = 0 to 10 _GUICtrlListView_InsertColumn ( $h_listview, $i, "Col " & $i , 75 ) Next GuiSetState() $hwnd = GUICtrlGetHandle($h_listview) For $x = 1 to 10 For $y = 1 to 11 If $y = 1 then $ret = _GUICtrlListView_AddItem($hWnd, "Row " & $x & " Col 0") Else $ret = _GUICtrlListView_SetItemText($hWnd, $x-1,"Row " & $x & " Col " & $y -1, $y-1) EndIf Next Next While 1 Sleep (100) WEnd Func _Exit() Msgbox(0,"","How the F**K did clicking row 6 activate this?") EndFunc Func SpecialEvents() ConsoleWrite("Special Events WinHandle = " & @GUI_WINHANDLE & " ControlID = " & @GUI_CtrlId & @crlf) Select Case @GUI_CTRLID = $GUI_EVENT_CLOSE $ans = Msgbox(4 + 262144,"Exit","Do you really want to exit?") If $ans = 6 then Exit Case @GUI_CTRLID = $GUI_EVENT_MINIMIZE WinSetState(@GUI_WINHANDLE,"",@SW_MINIMIZE) Case @GUI_CTRLID = $GUI_EVENT_RESTORE WinSetState(@GUI_WINHANDLE,"",@SW_RESTORE) EndSelect EndFunc Func lv() MsgBox(0, "click", "click" ) EndFunc AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ChrisL Posted December 19, 2007 Author Share Posted December 19, 2007 You report it without looking for a bug report and I'll pop ya one http://www.autoitscript.com/forum/index.php?showtopic=59685LOL pop a cap in my ass I had done a general search on the whole forum but I think it was pretty specific search termsCheers [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Share Posted December 19, 2007 (edited) why would declaring a GUI variable later on, have that result.... man this is odd Edited December 19, 2007 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ChrisL Posted December 19, 2007 Author Share Posted December 19, 2007 why would declaring a GUI variable later on, have that result.... man this is oddHave a look at the thread Gary pointed out, I've applied his fix and it works fine now. Thanks Gary [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire 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