Shoutbox

[release] Show debugger tool [UPDATED] - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [release] Show debugger tool [UPDATED] (/showthread.php?tid=68296)

[release] Show debugger tool [UPDATED] by EBFL on 11-11-2006 at 07:21 PM

This script adds a "Show Debugger" option to the Plus! Icon menu in chat window.
Updated!
New Feature: Now Does a message if you havent enabled the debugging options saying you need to turn it on before it can show the DeBugger.

Wanting:Someone to help with the next update

Note: If you downloaded it before the upgrade please uninstall that first before getting the updated version
This script is recommended mostly for script creators but all are welcome.

Either Click The Attachment Below to get it or click Here


RE: [release] Show debugger tool by Jesus on 11-11-2006 at 08:08 PM

nice script, I've been looking for an easier way to show the debug window for a while now, and apart from "Debug.DebuggingWindowVisible = 1", this is the best way I found yet.

Just an advice, you might want to let the script check whether
HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\ScriptEnableDebug is 1, to make sure debugging is enabled, or else the debug window won't show up anyway. Also, by doing this you can warn the users that the window isn't shown because debugging is disabled.


RE: [release] Show debugger tool by EBFL on 11-11-2006 at 08:10 PM

Hmm.
Ok(Y)
When i have done it i'll update the Attachment  :)

The Attachment has been updated (Y)


RE: [release] Show debugger tool by vaccination on 11-11-2006 at 09:53 PM

Cool, good job (Y)


RE: [release] Show debugger tool [UPDATED] by EBFL on 11-12-2006 at 03:30 PM

quote:
Originally posted by vaccination
Cool, good job (Y)
Thank you.
But, i should be updating it as requested by Jesus; Edit. It Has been done recommended by Jesus;
quote:
Originally posted by Jesus
nice script, I've been looking for an easier way to show the debug window for a while now, and apart from "Debug.DebuggingWindowVisible = 1", this is the best way I found yet.

Just an advice, you might want to let the script check whether
HKEY_CURRENT_USER\Software\Patchou\Messenger Plus! Live\GlobalSettings\Scripts\ScriptEnableDebug is 1, to make sure debugging is enabled, or else the debug window won't show up anyway. Also, by doing this you can warn the users that the window isn't shown because debugging is disabled.

RE: [release] Show debugger tool [UPDATED] by Ezra on 11-12-2006 at 04:39 PM

You do know there already is a Show Debugger menu option in the plus! menu right?


RE: [release] Show debugger tool [UPDATED] by EBFL on 11-12-2006 at 04:52 PM

quote:
Originally posted by Ezra
You do know there already is a Show Debugger menu option in the plus! menu right?
Yeah but not in a convosation.
RE: [release] Show debugger tool [UPDATED] by Jesus on 11-12-2006 at 05:45 PM

nice (Y)
I often have my contactlist minimized and this makes the debugger more accesible.

Although I'd even more appreciate a shortcut in the preferences and script editor windows;)


RE: [release] Show debugger tool [UPDATED] by EBFL on 11-12-2006 at 07:10 PM

quote:
Originally posted by Jesus
nice (Y)
I often have my contactlist minimized and this makes the debugger more accesible.
I also have it minimized and so thats why i think its useful, and it also saves you abit of time.

quote:
Originally posted by Jesus
Although I'd even more appreciate a shortcut in the preferences and script editor windows;)
:P Lol. I think this is easy and quick enough now[Image: tongue.gif]
RE: [release] Show debugger tool [UPDATED] by Keikonium on 11-12-2006 at 08:02 PM

I don't script, but good job none the less :).

Why not have your script <b>toggle</b> the enable/disable debug window as well.

So if the user has it disabled, then this script will enable it. And upon exiting the debug window, the debug would be disabled again :P.

Just a thought (don't even know if its possible).


RE: [release] Show debugger tool [UPDATED] by Plan-1130 on 11-12-2006 at 08:10 PM

it's possible, with a timer, but that uses quite some system resources, and it would be quite annoying going through disabling the script and then closing the window. just typing 1 command is easier if you accidentally close the window...


RE: [release] Show debugger tool [UPDATED] by CookieRevised on 11-12-2006 at 08:33 PM

quote:
Originally posted by Keikonium
So if the user has it disabled, then this script will enable it....
That's exactly what this script does.

quote:
Originally posted by Keikonium
...And upon exiting the debug window, the debug would be disabled again :P.
I don't quite get that...

But if you exit/close the debugging window than it stays closed already.

If you mean, closing the debugging window automatically when you move your cursor outside the window to another window on your computer (aka: the debugging window will loose focus), then that will be highly annoying to script developpers.

In fact, de purpose of the debugging window is to monitor stuff. This means that in most cases you even don't have the window in focus and visible, just active, and you switch to it to check some stuff. Automatically closing it upon loosing focus will therefore actually make the window useless.
RE: [release] Show debugger tool [UPDATED] by Sunshine on 11-12-2006 at 08:51 PM

Handy script, working fine here. (y)

Edit: keep up the good work


RE: [release] Show debugger tool [UPDATED] by EBFL on 11-13-2006 at 05:01 PM

quote:
Originally posted by Sunshine
Handy script, working fine here. (y)

Edit: keep up the good work
Thank you Sunshine :)
Will do, I just wish i could make bit more advanced scripts.
RE: RE: [release] Show debugger tool [UPDATED] by deAd on 11-13-2006 at 06:48 PM

quote:
Originally posted by CookieRevised
quote:
Originally posted by Keikonium
So if the user has it disabled, then this script will enable it....
That's exactly what this script does.

quote:
Originally posted by Keikonium
...And upon exiting the debug window, the debug would be disabled again :P.
I don't quite get that...
I think he means actually disabling debugging -- like in the preferences under Scripts where it says "Enable debugging options".
RE: RE: [release] Show debugger tool [UPDATED] by Huhu_Manix on 11-13-2006 at 07:26 PM

quote:
Originally posted by Keikonium
I don't script, but good job none the less :).

Why not have your script <b>toggle</b> the enable/disable debug window as well.

So if the user has it disabled, then this script will enable it. And upon exiting the debug window, the debug would be disabled again :P.

Just a thought (don't even know if its possible).


Why not a 'YES/NO message box' that's purpose to enable the debugging option instead of the information message ?
RE: RE: [release] Show debugger tool [UPDATED] by EBFL on 11-13-2006 at 07:27 PM

quote:
Originally posted by Keikonium
I don't script, but good job none the less :).

Why not have your script <b>toggle</b> the enable/disable debug window as well.

So if the user has it disabled, then this script will enable it. And upon exiting the debug window, the debug would be disabled again :P.

Just a thought (don't even know if its possible).


I'll have alook at it[Image: tongue.gif]
If i have any look i'll update the Attachment :D

No good. :(
Can't,
But if anyone can help me can they PM me Please as i would like that idea to be the next update :)
Thanks,
Nick.
RE: RE: RE: [release] Show debugger tool [UPDATED] by CookieRevised on 11-13-2006 at 09:30 PM

quote:
Originally posted by deAd
I think he means actually disabling debugging -- like in the preferences
Impossible. Messenger Plus! does not constantly read the registry settings for updates, almost no program does. You can manually change something in the registry all you want. It will no be read untill the next restart or when you actually open/close the preferences window (provided the setting isn't overwritten again with the value the program had in memory).
RE: [release] Show debugger tool [UPDATED] by Ezra on 11-13-2006 at 09:36 PM

Do I smell a new API request?

Force a reload of registry, file and resources.

Would come in handy for this kind of scripts.


RE: [release] Show debugger tool [UPDATED] by Spunky on 11-15-2006 at 02:15 AM

quote:
Originally posted by Keikonium

I don't script, but good job none the less .

Why not have your script toggle the enable/disable debug window as well.

For people who want to do this:

Change line 18 from
quote:
Debug.DebuggingWindowVisible = true;
To:
quote:
Debug.DebuggingWindowVisible = !Debug.DebuggingWindowVisible;

That should do the trick ;)
RE: [release] Show debugger tool [UPDATED] by EBFL on 11-16-2006 at 05:38 PM

quote:
Originally posted by SpunkyLoveMuff
quote:
Originally posted by Keikonium

I don't script, but good job none the less .

Why not have your script toggle the enable/disable debug window as well.

For people who want to do this:

Change line 18 from
quote:
Debug.DebuggingWindowVisible = true;
To:
quote:
Debug.DebuggingWindowVisible = !Debug.DebuggingWindowVisible;

That should do the trick ;)


That didnt do anything o.0
RE: [release] Show debugger tool [UPDATED] by Spunky on 11-16-2006 at 06:00 PM

It does work... In fact I've edited your script slightly for my own purposes. I've managed to trim it to this:

code:
function OnEvent_MenuClicked(sMenuId, nLocation, ChatWnd){
    if(sMenuId=="debugger"){
        Debug.DebuggingWindowVisible = !Debug.DebuggingWindowVisible;
    }
}

I moved the menu code to the ScriptInfo file. I took out the nLocation = 2 check as I want it in chat windows too. For most people that will be using the script, checking the registry to see if debugging is enabled will not be needed.