Skrip Posted November 29, 2007 Posted November 29, 2007 Gah, I've been seraching and am coming up dry... Do you guys remember that one script, that would show you what your script was executing, when it executed it? I can't find it, and I really need it right now. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
Iklim Posted November 29, 2007 Posted November 29, 2007 this ?http://www.autoitscript.com/forum/index.php?showtopic=53023 Iklim
Skrip Posted November 29, 2007 Author Posted November 29, 2007 Thanks, but no. It has an edit box, that would show what part the script was using at the point. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
martin Posted November 29, 2007 Posted November 29, 2007 (edited) Gah, I've been seraching and am coming up dry...Do you guys remember that one script, that would show you what your script was executing, when it executed it? I can't find it, and I really need it right now.I may not have understood, but do you mean something like a debugger which allows you to step through the lines of your script?If that's what you mean then the link Iklim gave was close but it's not a debugger. There are 3 debuggers that I know of-1) Stumpii's graphical debugger. This has the disadvantage for me that it requires the .NET framework2) Klaatu's3) and mine which is here. Edited November 29, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
FreeSiker Posted November 29, 2007 Posted November 29, 2007 This is a good internet explorer script that monitor the process of your script in a seperate GUI expandcollapse popup; Example script, showing the usage of COM Event functions. ; Requires at least AutoIt beta version 3.1.1.104 ! ; ; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp ; We use a very simple GUI to show the results of our Events. #include "GUIConstants.au3" $GUIMain=GUICreate ( "Event Test", 600,500 ) $GUIEdit=GUICtrlCreateEdit ( "Test Log:" & @CRLF, 10, 20, 580, 400) $GUIProg=GUICtrlCreateProgress ( 10, 5, 580, 10) $GUIExit=GUICtrlCreateButton ( " Close ", 250, 450, 80, 30) GUISetState () ;Show GUI ; We prepare the Internet Explorer as our test subject $oIE=ObjCreate("InternetExplorer.Application.1") With $oIE .Visible=1 .Top = (@DesktopHeight-400)/2 .Height=400 ; Make it a bit smaller than our GUI. .Width=600 .Silent=1 ; Don't show IE's dialog boxes $IEWnd=HWnd(.hWnd) ; Remember the Window, in case user decides to close it EndWith ; We choose for a specific Internet Explorer interface 'DWebBrowserEvents' because the IE is subject ; to modifications by e.g. Visual Studio and Adobe Acrobat Reader. If you have IE-plugins installed, ; AutoIt might not be able to find the correct interface automatically. $EventObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents") if @error then Msgbox(0,"AutoIt COM Test", _ "ObjEvent: Can't use event interface 'DWebBrowserEvents'. Error code: " & hex(@error,8)) exit endif ; Now starting to load an example Web page. $URL = "http://www.AutoItScript.com/" $oIE.Navigate( $URL ) sleep(1000) ; Give it some time to load the web page GUISwitch ( $GUIMain ) ; Switch back to our GUI in case IE stealed the focus ; Waiting for user to close the GUI. While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE or $msg = $GUIExit Then ExitLoop Wend $EventObject.Stop ; Tell IE we don't want to receive events. $EventObject=0 ; Kill the Event Object If WinExists($IEWnd) then $oIE.Quit ; Close IE Window $oIE=0 ; Remove IE from memory (not really necessary). GUIDelete () ; Remove GUI exit ; End of our Demo. ; A few Internet Explorer Event Functions ; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/webbrowser.asp Func IEEvent_BeforeNavigate($URL, $Flags, $TargetFrameName, $PostData, $Headers, $Cancel) ; Note: the declaration is different from the one on MSDN. GUICtrlSetData ( $GUIEdit, "BeforeNavigate: " & $URL & " Flags: " & $Flags & " tgframe: " & $TargetFrameName & " Postdat: " & $PostData & " Hdrs: " & $Headers & " canc: " & $Cancel & @CRLF , "append" ) EndFunc Func IEEvent_ProgressChange($Progress,$ProgressMax) If $ProgressMax > 0 Then GUICtrlSetData($GUIProg, ($Progress * 100) / $ProgressMax ) EndIf EndFunc Func IEEvent_StatusTextChange($Text) GUICtrlSetData ( $GUIEdit, "IE Status text changed to: " & $Text & @CRLF , "append" ) EndFunc Func IEEvent_PropertyChange( $szProperty) GUICtrlSetData ( $GUIEdit, "IE Changed the value of the property: " & $szProperty & @CRLF , "append" ) EndFunc Func IEEvent_DownloadComplete() GUICtrlSetData ( $GUIEdit, "IE has finished a navigation operation" & @CRLF , "append" ) EndFunc Func IEEvent_NavigateComplete($URL) ; Note: the declaration is different from the one on MSDN. GUICtrlSetData ( $GUIEdit, "IE has finished loading URL: " & $URL & @CRLF , "append" ) EndFunc Func IEEvent_($EventName) ; This is an optional event function to catch non-defined events. ; The parameter contains the name of the event being called. GUICtrlSetData ( $GUIEdit, "Uncatched event: " & $EventName & @CRLF , "append" ) EndFunc
martin Posted November 29, 2007 Posted November 29, 2007 (edited) This is a good internet explorer script that monitor the process of your script in a seperate GUI expandcollapse popup; Example script, showing the usage of COM Event functions. ; Requires at least AutoIt beta version 3.1.1.104 ! ; ; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp ; We use a very simple GUI to show the results of our Events. #include "GUIConstants.au3" $GUIMain=GUICreate ( "Event Test", 600,500 ) $GUIEdit=GUICtrlCreateEdit ( "Test Log:" & @CRLF, 10, 20, 580, 400) $GUIProg=GUICtrlCreateProgress ( 10, 5, 580, 10) $GUIExit=GUICtrlCreateButton ( " Close ", 250, 450, 80, 30) GUISetState () ;Show GUI ; We prepare the Internet Explorer as our test subject $oIE=ObjCreate("InternetExplorer.Application.1") With $oIE .Visible=1 .Top = (@DesktopHeight-400)/2 .Height=400 ; Make it a bit smaller than our GUI. .Width=600 .Silent=1 ; Don't show IE's dialog boxes $IEWnd=HWnd(.hWnd) ; Remember the Window, in case user decides to close it EndWith ; We choose for a specific Internet Explorer interface 'DWebBrowserEvents' because the IE is subject ; to modifications by e.g. Visual Studio and Adobe Acrobat Reader. If you have IE-plugins installed, ; AutoIt might not be able to find the correct interface automatically. $EventObject=ObjEvent($oIE,"IEEvent_","DWebBrowserEvents") if @error then Msgbox(0,"AutoIt COM Test", _ "ObjEvent: Can't use event interface 'DWebBrowserEvents'. Error code: " & hex(@error,8)) exit endif ; Now starting to load an example Web page. $URL = "http://www.AutoItScript.com/" $oIE.Navigate( $URL ) sleep(1000) ; Give it some time to load the web page GUISwitch ( $GUIMain ) ; Switch back to our GUI in case IE stealed the focus ; Waiting for user to close the GUI. While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE or $msg = $GUIExit Then ExitLoop Wend $EventObject.Stop ; Tell IE we don't want to receive events. $EventObject=0 ; Kill the Event Object If WinExists($IEWnd) then $oIE.Quit ; Close IE Window $oIE=0 ; Remove IE from memory (not really necessary). GUIDelete () ; Remove GUI exit ; End of our Demo. ; A few Internet Explorer Event Functions ; See also: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/webbrowser.asp Func IEEvent_BeforeNavigate($URL, $Flags, $TargetFrameName, $PostData, $Headers, $Cancel) ; Note: the declaration is different from the one on MSDN. GUICtrlSetData ( $GUIEdit, "BeforeNavigate: " & $URL & " Flags: " & $Flags & " tgframe: " & $TargetFrameName & " Postdat: " & $PostData & " Hdrs: " & $Headers & " canc: " & $Cancel & @CRLF , "append" ) EndFunc Func IEEvent_ProgressChange($Progress,$ProgressMax) If $ProgressMax > 0 Then GUICtrlSetData($GUIProg, ($Progress * 100) / $ProgressMax ) EndIf EndFunc Func IEEvent_StatusTextChange($Text) GUICtrlSetData ( $GUIEdit, "IE Status text changed to: " & $Text & @CRLF , "append" ) EndFunc Func IEEvent_PropertyChange( $szProperty) GUICtrlSetData ( $GUIEdit, "IE Changed the value of the property: " & $szProperty & @CRLF , "append" ) EndFunc Func IEEvent_DownloadComplete() GUICtrlSetData ( $GUIEdit, "IE has finished a navigation operation" & @CRLF , "append" ) EndFunc Func IEEvent_NavigateComplete($URL) ; Note: the declaration is different from the one on MSDN. GUICtrlSetData ( $GUIEdit, "IE has finished loading URL: " & $URL & @CRLF , "append" ) EndFunc Func IEEvent_($EventName) ; This is an optional event function to catch non-defined events. ; The parameter contains the name of the event being called. GUICtrlSetData ( $GUIEdit, "Uncatched event: " & $EventName & @CRLF , "append" ) EndFunc That's an interesting example FreeSiker, but it doesn't monitor your scipt, the script monitors IE doesn't it? Edited November 29, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Klaatu Posted November 29, 2007 Posted November 29, 2007 Perhaps the program in my sig? My Projects:DebugIt - Debug your AutoIt scripts with DebugIt!
Skrip Posted November 30, 2007 Author Posted November 30, 2007 YES! Klaatu, that is it! Thank you. [left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]
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