maestrith / AHK-Studio

Created with AHK Studio
http://www.maestrith.com
363 stars 68 forks source link

Add setting: clear debugwindow on start #206

Closed dmtr99 closed 4 years ago

dmtr99 commented 4 years ago

It would be helpfull to add a option to clear the debugwindow when running a script. Currently, in every script I write I add a line to clear the debugwindow. DebugWindow("",Clear:=1)

I would also update the function debugwindow to only work if AHK Studio is running. This way you do not need to remove the lines when distributing the script to other people. Something like:

DebugWindow(Text,Clear:=0,LineBreak:=0,Sleep:=0,AutoHide:=0,MsgBox:=0){
    if WinExist("AHK Studio - ")
        x:=ComObjActive("{DBD5A90A-A85C-11E4-B0C7-43449580656B}"),x.DebugWindow(Text,Clear,LineBreak,Sleep,AutoHide,MsgBox)
}
dmtr99 commented 4 years ago

I found the option "CLEAR DEBUG ON RUN", this is what I was looking for.

maestrith commented 4 years ago

Sorry I missed this question. I have been working on developing for Android and kind of got lost.