izzy Posted November 6, 2005 Share Posted November 6, 2005 I downloaded the <GUIDebug.au3> and loved the notion that i didn't have to use MsgBox every time i needed to see a bunch of results that i ned t check again and again.I changed it a bit and used an Edit controlif thats ok.;;;;;;; <GUIDebug_2.au3> ;;;;;;;#include <GUIConstants.au3>Dim $LocalDebugMsg$EM_SCROLLCARET = 0x00B7 GuiCreate ("Debug Window",500,200,0,0,"",$WS_EX_TOPMOST)$DebugFont="Georgia"$DebugEdit = GUICtrlCreateEdit ("", 5,5,485,160, $ES_AUTOVSCROLL+$WS_VSCROLL)GUICtrlSetFont ($DebugEdit, 9, 400, 2, $DebugFont)GuiSetState (@SW_SHOW)Func Debug($DebugMsg) $LocalDebugMsg &= $DebugMsg & @CRLF GUICtrlSetData ($DebugEdit, $LocalDebugMsg) GUICtrlSendMsg ($DebugEdit, $EM_SCROLLCARET,0,0)EndFunc;;;;;;;;; END;;;;;;;;;;;;;;Maybe someone has some ideas on how to make it print out values you already declared in the script and is assigned some text, if you type ? and the variable and hit enter:?$SomeString<Enter>orDebug.Print $SomeString<Enter>...much like we do in VB's Immediate (debug) windowAny thoughts on how we could accomplish this?TY Link to comment Share on other sites More sharing options...
MHz Posted November 7, 2005 Share Posted November 7, 2005 (edited) Not sure what editor you use but most some here use Scite4AutoIt3 that uses an output pane that can print out messages from ConsoleWrite(). This is a very handy feature for the editor and does it easy along with all the other features that it offers. Some other editors may have the same output feature.If you still wish to create a debug window then a search in this forum should raise results as some others have done the same before. I believe that just a simple UDF with ControlSend() to your debug window would achieve your result.Edit: Biased assumption noted and changed. Edited November 8, 2005 by MHz Link to comment Share on other sites More sharing options...
Klaatu Posted November 7, 2005 Share Posted November 7, 2005 Not sure what editor you use but most here use Scite4AutoIt3"Most here"? May I ask where you get your information? Has there been some poll of forum participants where SciTE was found to be used more than others? Not doubting your word, just looking for the location of this empirical data. My Projects:DebugIt - Debug your AutoIt scripts with DebugIt! Link to comment Share on other sites More sharing options...
w0uter Posted November 8, 2005 Share Posted November 8, 2005 (edited) May I ask where you get your information?JdeB actually sayd "Not evryone uses SciTE" or something along those lines when i made a similar remark on a similar topic.*edit here it is: http://www.autoitscript.com/forum/index.ph...ndpost&p=118255 Edited November 8, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll 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