Jump to content

AutoEditDebugger


Recommended Posts

I get this:

The variable $ToRun is

Local $ToRun = '"' & $AutoItexePath & '\AutoIt3.exe" AutoMonItdb.au3'

so maybe the problem is with finding AutoIt3.exe

Can you try running this little script to see if the location of AutoIt3.exe can be found.

Global $AutoItexePath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","betaInstallDir")
MsgBox(0,'the path to Autoit3.exe beta is',$AutoItexePath)

Otherwise it means the file AutoMonitbd.au3 is missing, or the files have not been kept all together. This is a list of the main files which should have been unzipped from the download.

AutoEditorDebugger.au3

AutoMonItDB.au3

BBMonIt.au3

config.ini

DBeditor.au3

<DIR> Defs

Docs.aed

DIR> Icons

mgDebugIt001.au3

ModernMenu.au3

NomadMemory.au3

SciLexer.dll

scintilla.h.au3

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.
Link to post
Share on other sites
  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

New version with small improvements including better buttons which have hotkeys - see first post

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.
Link to post
Share on other sites

New version with small improvements including better buttons which have hotkeys - see first post

martin

Could you please explain the the contents of At Line box in AutoMonItor window? I'm curious about what it means

Foe example when stepped to line 6 in my script, shown below the box displays +6,-1,0

Opt("CaretCoordMode",2)

The new additions seem to be working OK

Cheers

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Link to post
Share on other sites

martin

Could you please explain the the contents of At Line box in AutoMonItor window? I'm curious about what it means

Foe example when stepped to line 6 in my script, shown below the box displays +6,-1,0

Opt("CaretCoordMode",2)

The new additions seem to be working OK

Cheers

Ah, it's something I forgot about, but still it could be useful.

The debugger can stop before and after script lines.

Some lines it ca't stop before, for example Case, Func etc. because the program jumps straight to those lines.

Some lines it can't stop after, such as EndFunc, Return, Endif etc.

The step into stops at every line it can, before and after.

The Step over tries to get to the next line number rather than stopping before and after the line number.

When it stops before a line the line number shown is negative, when it is after a line then it's positive.

One awkward situation to be dealt with is the 'if then' line. My debugger breaks single line if then into 3 lines but you are only told about the original script line, so when you step through these lines it will take a lot of steps and apparently nothing is happening. I intend to highlight the section of the line being dealt with but haven't got round to it yet- getting the new buttons to work took too much time.

The other numbers shown after current line were meant to be removed. They are line to halt at (-1 if none set) and the current run status which is 0 for stopped, 1 for running, 2 for stopped at first line after starting. If the script was started with run rather than step then when the run status is 2 a continue command is issue to get it running again after updating the displayed variables.

Line 422 of AutMonitDB.au3 should be

GUICtrlSetData($IpLine,'+' & $CurrentLine)

because the other information is no use but helped me when I had a problem.

Edited 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.
Link to post
Share on other sites

Thanks for the explanation.

I had noticed that it seemed to stick on a line occasionally but I just assumed that I'd been to quick with my click or key press.

I see what's happening now.

Thanks

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Link to post
Share on other sites

Here is the version that finally runs on my PC.

I fixed some small problems and changed the default from 'Beta' -> 'Product'

http://peppie.cwsurf.de/AutoEditDebugger_28Oct07_Fix2.7z

New Updates: (since editing this post)

* added "/Debug" commandline switch
  So "!AutoEditorDebugger.au3 /Debug myscript.au3" will launch the debugger

* used Open_LoadFile($sFileName) for the "/File" commandline switch

* Splitted up 'Open()' into 
        Open_GetFileNameFromUser() and
        Open_LoadFile($sFileName).
________________________________________________________________________

If you found&fixed some bug and like to upload it here is the FTP:

ftp://usr_ftp_54315:peppie@ftp.cwsurf.de/htdocs

(If you don't have a ftp-client installed; copy and paste the link into your WindowsExplorer addressbar and then drag or paste file - just as you normally copy files in Windoze)

-> Ah yes forgot to mention; rename File.zip to File.ZiP(File.zIp or File.ZIP) because the ftp-server blocks the extension '.zip' (<-but only in lowercase <_< )

Edited by Robinson1
Link to post
Share on other sites

Here is the version that finally runs on my PC.

I fixed some small problems and changed the default from 'Beta' -> 'Product'

http://peppie.cwsurf.de/AutoEditDebugger_f...ct07_ForA328.7z

Well done Robinson1! :)

The change in defined Consts does cause problems sometimes.

The only fix I know of is to change the problem lines as in this example

;Global Const $ILC_COLOR32 = 0x0020

;changed to 

If Not IsDeclared("ILC_COLOR32") Then Assign("ILC_COLOR32",0x0020); needed for < 3.2.9.3, but won't stop warnings

But to keep up to date all Consts need to have this change. <_<

Making the default as Production or Beta will be fixed with later versions where I will save settings in an ini file. I plan to have preferred default setting and remember the last 10 scripts so the settings are as last set. However there are lots of other things to do so it might be a few weeks as I can't give this project much time.

I am open to persuasion on priorities.

EDIT:Corrected mistake where I wrote Execute instead of Assign in my code example. + spelling.

Edited 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.
Link to post
Share on other sites

If Not IsDeclared("ILC_COLOR32") Then Execute("Global $ILC_COLOR32 = 0x0020"); needed for < 3.2.9.3
has somehow no effect i just get 'ILC_COLOR32 is not declared' the girst time it is used later.

I just keep it to

Global $ILC_COLOR32 = 0x0020
:)

I did uploaded new version to

http://peppie.cwsurf.de/AutoEditDebugger_28Oct07_Fix2.7z

(^- see my 'edited' post above for details) <_<

Link to post
Share on other sites

I did uploaded new version to
http://peppie.cwsurf.de/AutoEditDebugger_28Oct07_Fix2.7z
(^- see my 'edited' post above for details)
I'm glad you are enthuiastic about the debugger, and thanks for your input so far.

I have no problem with anyone changing the code in any way they want, but I would like to explain something about my approach with this project.

The file AutoEditDB.au3 is RazerM's script with only 2 changes-
1) I replaced GuigetMsg(1) with DBGuiGetMsg(1). 
    This allowed me to add my own buttons and menu items without otherwise changing his script.
2) I changed the size of a label because it stopped my extra buttons working.

I don't want to change this file any more than I have to because it is RazerM's script and if he makes any improvements I want to be able to include his new script as easily as possible. If his changes conflict with my script then I expect to change my script not his.

I am keen to get the script developed as well as I can and ideas like yours make it easier for me. Any good ideas or improvements will be considered.

Bear in mind that this is an early stage for this project and there will be plenty of changes over the next months.


            
        

        

        
            

    
        

        
            
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.
        
    

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

Robinson1
                

    
        
    
             3
    
        
    

            
            
                Posted 
                
            
        
    
    
        

Robinson1

        
            
                Seeker
            
            

            
                


    
        
    

                
            
            Active Members
            
            
                
                    

    
        
    
             3
    
        
    

                    
                
                48 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            
Mmh yep I see.
When I saw how you add the menu 'Open Debugger' I already had that strange feeling about 'AutoEditorDebugger.au3'...
To keep changes in 'AutoEditorDebugger.au3' minimalistic to easy integrate a new version of it makes sense.  


So let's ask RazerM what he thinks about the changes.

Finally I got that other 'AutoIt Debugger GUI' .NET-App running !   (...and I found out myself that AutoItX3.dll must be 'registered' and 'SciLexer.dll' on inside the path or inside the 'AutoIt Debugger GUI')


            
        

        

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

gcriaco
                

    
        
    
             2
    
        
    

            
            
                Posted 
                
            
        
    
    
        

gcriaco

        
            
                Polymath
            
            

            
                


    
        
    

                
            
            Active Members
            
            
                
                    

    
        
    
             2
    
        
    

                    
                
                230 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            Thank you Martin.
Your debugger is awesome.

Keep up the good work.

Peppe


            
        

        

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

martin
                

    
        
    
             87
    
        
    

            
            
                Posted 
                
            
        
    
    
        

martin

        
            
                ~~\o/~~~/0\=¬''~~~
            
            

            
                


    
        
    

                
            
            MVPs
            
                
            
            
                
                    

    
        
    
             87
    
        
    

                    
                         

     3


                    
                
                7,148 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            Thank you Martin.Your debugger is awesome.Keep up the good work.PeppeThanks, glad you find it useful. There are still many improvements to make. Let me know if you find any problems with it.


            
        

        

        
            

    
        

        
            
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.
        
    

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

martin
                

    
        
    
             87
    
        
    

            
            
                Posted 
                
            
        
    
    
        

martin

        
            
                ~~\o/~~~/0\=¬''~~~
            
            

            
                


    
        
    

                
            
            MVPs
            
                
            
            
                
                    

    
        
    
             87
    
        
    

                    
                         

     3


                    
                
                7,148 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            New version available - see the first post.Added Debug setting in menu. Set defaults and set by script. Any script run will use the defaults until you change its settings.Improved stepping and added highlighting of relevant section of a line for single line If/Then statements.I hope I've got rid of situations where Step or Step Into appears to do nothing.Improved the speed significantly.


            
        

        

        
            

    
        

        
            
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.
        
    

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

martin
                

    
        
    
             87
    
        
    

            
            
                Posted 
                
            
        
    
    
        

martin

        
            
                ~~\o/~~~/0\=¬''~~~
            
            

            
                


    
        
    

                
            
            MVPs
            
                
            
            
                
                    

    
        
    
             87
    
        
    

                    
                         

     3


                    
                
                7,148 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            Another update - see the first post.

Instead of 1 line which you might want the script must stop at there can now be up to 4, and conditions can be given for each line so that the script only stops when the condition is met. The condition can be anything which can be executed so you could say stop at line 321 with the condition '@MON = 11', but something like '$var1 > $maxval' is more likely.


            
        

        

        
            

    
        

        
            
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.
        
    

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

martin
                

    
        
    
             87
    
        
    

            
            
                Posted 
                
            
        
    
    
        

martin

        
            
                ~~\o/~~~/0\=¬''~~~
            
            

            
                


    
        
    

                
            
            MVPs
            
                
            
            
                
                    

    
        
    
             87
    
        
    

                    
                         

     3


                    
                
                7,148 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            Another update, see first post.
Stepping responds much faster now.
New button for identifying a variable.

I've pretty much achieved what I wanted with this debugger so not much will change, and any changes will be slow unless someone has a problem.

I wrote the debugger to run as a Beta version although it can debug either Beta or Production scripts. This was possibly a mistake, so if there are people who would have preferred a production version please let me know. Or would a compiled version be preferred?


            
        

        

        
            

    
        

        
            
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.
        
    

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                        
                            
                            
                                
                                    3 weeks later...
                                
                            
                        
                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

martin
                

    
        
    
             87
    
        
    

            
            
                Posted 
                
            
        
    
    
        

martin

        
            
                ~~\o/~~~/0\=¬''~~~
            
            

            
                


    
        
    

                
            
            MVPs
            
                
            
            
                
                    

    
        
    
             87
    
        
    

                    
                         

     3


                    
                
                7,148 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            One more update
Added ConsoleWrite handling so if the script being debugged uses consolewrite then the text will appear in the output window of the editor as expected.

Added tab with information on a selected function on the second page.
Added vertical scrollbar to allow for extra variables to be monitored.

See first post for the update.


            
        

        

        
            

    
        

        
            
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.
        
    

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                        
                            
                            
                                
                                    3 weeks later...
                                
                            
                        
                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

microsoft
                

    
        
    
             0
    
        
    

            
            
                Posted 
                
            
        
    
    
        

microsoft

        
            
                Wayfarer
            
            

            
                


    
        
    

                
            
            Active Members
            
            
                
                    

    
        
    
             0
    
        
    

                    
                
                65 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                
            
        
    

    


    
        
        
            
Please > Link Download GuiComboBox.au3  


            
        

        

        
    

    

    
        Link to post
        
            
        
        
        

        
            Share on other sites
            

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    

        
    

    

                    
                    
                    
                

                    

                    
                    






    

    

    
        
            


    
        
    

            
        
        
            
                

martin
                

    
        
    
             87
    
        
    

            
            
                Posted 
                
            
        
    
    
        

martin

        
            
                ~~\o/~~~/0\=¬''~~~
            
            

            
                


    
        
    

                
            
            MVPs
            
                
            
            
                
                    

    
        
    
             87
    
        
    

                    
                         

     3


                    
                
                7,148 posts

                
                

            
        
    
    
        



    
        
            
                
                    
                        Author
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted  
            
            
                
                    (edited)
                
                
            
        
    

    


    
        
        
            
Please > Link Download GuiComboBox.au3  
GuiComboBox.au3 is supplied with the most recent versions of AutoIt. If you have an earlier version which uses GuiCombo then here is the list of changed function names.
If you don't want to use a later version or you don't want to make the changes then I can PM you a compiled version so that it doesn't matter which version of AutoIt you are using.
; #OLD_FUNCTIONS#=====================================================================================


===========================
; Old Function/Name                 ; --> New Function/Name/Replacement(s)
; ====================================================================================================


===========================
; _GUICtrlComboAddDir                 ; --> _GUICtrlComboBox_AddDir
; _GUICtrlComboAddString            ; --> _GUICtrlComboBox_AddString
; _GUICtrlComboAutoComplete         ; --> _GUICtrlComboBox_AutoComplete
; _GUICtrlComboDeleteString         ; --> _GUICtrlComboBox_DeleteString
; _GUICtrlComboFindString             ; --> _GUICtrlComboBox_FindString, _GUICtrlComboBox_FindStringExact
; _GUICtrlComboGetCount             ; --> _GUICtrlComboBox_GetCount
; _GUICtrlComboGetCurSel            ; --> _GUICtrlComboBox_GetCurSel
; _GUICtrlComboGetDroppedControlRECT; --> _GUICtrlComboBox_GetDroppedControlRect
; _GUICtrlComboGetDroppedState       ; --> _GUICtrlComboBox_GetDroppedState
; _GUICtrlComboGetDroppedWidth       ; --> _GUICtrlComboBox_GetDroppedWidth
; _GUICtrlComboGetEditSel             ; --> _GUICtrlComboBox_GetEditSel
; _GUICtrlComboGetExtendedUI        ; --> _GUICtrlComboBox_GetExtendedUI
; _GUICtrlComboGetHorizontalExtent   ; --> _GUICtrlComboBox_GetHorizontalExtent
; _GUICtrlComboGetItemHeight        ; --> _GUICtrlComboBox_GetItemHeight
; _GUICtrlComboGetLBText            ; --> _GUICtrlComboBox_GetLBText
; _GUICtrlComboGetLBTextLen         ; --> _GUICtrlComboBox_GetLBTextLen
; _GUICtrlComboGetList               ; --> _GUICtrlComboBox_GetList
; _GUICtrlComboGetLocale            ; --> _GUICtrlComboBox_GetLocale
; _GUICtrlComboGetMinVisible        ; --> _GUICtrlComboBox_GetMinVisible
; _GUICtrlComboGetTopIndex           ; --> _GUICtrlComboBox_GetTopIndex
; _GUICtrlComboInitStorage           ; --> _GUICtrlComboBox_InitStorage
; _GUICtrlComboInsertString         ; --> _GUICtrlComboBox_InsertString
; _GUICtrlComboLimitText            ; --> _GUICtrlComboBox_LimitText
; _GUICtrlComboResetContent         ; --> _GUICtrlComboBox_ResetContent
; _GUICtrlComboSelectString         ; --> _GUICtrlComboBox_SelectString
; _GUICtrlComboSetCurSel            ; --> _GUICtrlComboBox_SetCurSel
; _GUICtrlComboSetDroppedWidth       ; --> _GUICtrlComboBox_SetDroppedWidth
; _GUICtrlComboSetEditSel             ; --> _GUICtrlComboBox_SetEditSel
; _GUICtrlComboSetExtendedUI        ; --> _GUICtrlComboBox_SetExtendedUI
; _GUICtrlComboSetHorizontalExtent   ; --> _GUICtrlComboBox_SetHorizontalExtent
; _GUICtrlComboSetItemHeight        ; --> _GUICtrlComboBox_SetItemHeight
; _GUICtrlComboSetMinVisible        ; --> _GUICtrlComboBox_SetMinVisible
; _GUICtrlComboSetTopIndex           ; --> _GUICtrlComboBox_SetTopIndex
; _GUICtrlComboShowDropDown         ; --> _GUICtrlComboBox_ShowDropDown
; ====================================================================

EDIT: Since this thread has now been bumped to the top I might as well mention that there was a newer version in the first post on 22nd Dec.

Edited 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.
Link to post
Share on other sites

I discovered a bug:

If you erase Varables in functions with dim (primary used at Arrays),

then it wont preserve the Scope (Global, local)

So if you run the script normal first MsgBox is empty, second has value 1

if you run it under the debugger both MsgBoxes are emty.

Took me some time to discover this bug in a 4k line script :)

Besides great work on this debugger, but still needs finetuning.

Dim $Playerinfo[1][1]

MsgBox(0,0,$Playerinfo[0][0]) ; Before Dim in Function
_Overwrite()
MsgBox(0,0,$Playerinfo[0][0]) ; After Dim in Function


Func _Overwrite()
    Dim $Playerinfo[1][1] ; should preserve the previous Scope but dont if debugging
;   Global $Playerinfo[1][1] ; so if you want to erase global variables in functions use the right Scope
    $Playerinfo[0][0] = "1"
EndFunc
Teamspeak 3 User Viewer - Quick and functional TS3 Query script, which shows online users.Cached Screenshot Deleter - Deletes older Fraps Screenshots if they exceed a specified limit.Unresolved Topics:Intercept and modify dragdrop text behaviour in scite
Link to post
Share on other sites

I discovered a bug:

If you erase Varables in functions with dim (primary used at Arrays),

then it wont preserve the Scope (Global, local)

So if you run the script normal first MsgBox is empty, second has value 1

if you run it under the debugger both MsgBoxes are emty.

Took me some time to discover this bug in a 4k line script :)

Besides great work on this debugger, but still needs finetuning.

Dim $Playerinfo[1][1]

MsgBox(0,0,$Playerinfo[0][0]) ; Before Dim in Function
_Overwrite()
MsgBox(0,0,$Playerinfo[0][0]) ; After Dim in Function


Func _Overwrite()
    Dim $Playerinfo[1][1] ; should preserve the previous Scope but dont if debugging<---------------------yes it does as far as my test go.
;   Global $Playerinfo[1][1] ; so if you want to erase global variables in functions use the right Scope
    $Playerinfo[0][0] = "1"
EndFunc
I think I see what you mean. Could you try something for me since you have the script that shows the problem? When you are debugging and have the variable $Playerinfo in an edit box, could you choose the scope and set it to global. This should make sure it's not confused with the array of the same name which you should set as in the function Overwrite.

If that works then I will consider that there is no bug. If it doesn't work then I agree it's a bug.

Edit spelling. and again

#######################################################################

EDIT:

I've tried it and the debugger displays different results for the global array and the locally declared array so there is no bug. The msgbox displays the global value each time and not the locally declared one in Overwrite. If a variable is used in more than one function, or globally and in a function, then without being told which one to display the debugger will normally choose the global one, but it might choose the last one used, so to be sure you must tell the debugger which one you are interested in. It is quite possible to have 10 different functions all using a locally declared variable of the same name and the debugger can display 10 different values. It just needs to be told which functions to look in.

Apart from that I think it is better to avoid having duplicate variable names if possible because it can lead to confusion.

#######################################################################

Edited 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.
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...