Shoutbox

Request - Escape key script - 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: Request - Escape key script (/showthread.php?tid=69701)

Request - Escape key script by Fraisie on 12-19-2006 at 08:30 PM

Hewwo people!

So I am a World of Warcraft addict... if any of you guys play the game, you know that when chatting, pushing the escape key deletes what you had typed and that wasnt sent. Annnnnd well, i got the bad habit of pushing my escape key to try and do the same in Messenger, and then I feel very stupid for not thinking about it, when I see my chat window close -_- SO! I am looking for a script that would simply use the escape key as trigger that would delete everything i would have typed and that hadnt been sent.

Help the poor WoW addict that I am regain faith in my use of Messenger!

Yours truly,

Fraisie the nub.


RE: Request - Escape key script by MattyRid on 12-19-2006 at 08:37 PM

I think this would be what you are after. :D


RE: Request - Escape key script by Fraisie on 12-19-2006 at 08:40 PM

Thanks, but that's not really what I mean :)

I want a script that would do the following: when I would push Escape, I dont want my chat window to close, I just want to delete what I had typed and that wasnt sent yet :)


RE: Request - Escape key script by MattyRid on 12-19-2006 at 08:52 PM

I suppose you want it similar to this just that instead of using a command, use the Esc key instead I would assume?


RE: Request - Escape key script by Fraisie on 12-19-2006 at 08:56 PM

I dont want everything that has been said to be deleted: just what was in the "Type your message here" window and that wasnt sent yet :)


RE: Request - Escape key script by Spunky on 12-19-2006 at 09:56 PM

Escape can't be detected by the OnEvent_ChatWndKeyDown function so it might have to be a hotkey (and even then it might not be possible). I think it's because Esc is a reserved key that is mainly used for OS functions


RE: Request - Escape key script by matty on 12-19-2006 at 10:01 PM

Here you go Fraisie (L).

I can't guarantee it works I am at work lol.

I hope you have fun testing SendTo and SS4 when I submit it for the contest ;).

Script pack didn't work.


RE: Request - Escape key script by Spunky on 12-19-2006 at 10:07 PM

quote:
Originally posted by Matty
I can't guarantee it works I am at work lol.

Tested: Doesn't work

I already tried that method, but when you press Esc, Plus! doesn't trigger the event, probably deliberatley so that scripts can't interfere with normal Windows functionality
RE: Request - Escape key script by MattyRid on 12-19-2006 at 10:10 PM

Isn't this the a similar problem to the "/clear" command anyway? From memory hasn't it got somethiung to do with the way conversation windows are handled in Windows Live Messenger, thus not allowing you clear the conversation area without having to close the whole window?


RE: Request - Escape key script by matty on 12-19-2006 at 10:15 PM

Fraisie is not taking about the chat history. She is talking about where you type your message.


RE: Request - Escape key script by ShawnZ on 12-19-2006 at 10:15 PM

quote:
Originally posted by MattyRid
Isn't this the a similar problem to the "/clear" command anyway?

quote:
Originally posted by Fraisie
that hadnt been sent
quote:
Originally posted by Fraisie
just what was in the "Type your message here" window and that wasnt sent yet

RE: Request - Escape key script by matty on 12-19-2006 at 11:06 PM

This one may work it registers a hotkey and intercepts it. Again I can't test it and I don't think it will actually work but its worth a shot.

PLSC had some scripting errors.


RE: Request - Escape key script by Spunky on 12-19-2006 at 11:10 PM

Still closes the window. I do actually think that this is impossible, but may be possible with a combination of Esc and CTRL for example, or a different key, but obviously that undermines the purpose of the script

EDIT: 750th Post :dances:


RE: Request - Escape key script by matty on 12-19-2006 at 11:23 PM

quote:
Originally posted by SpunkyLoveMuff
Still closes the window. I do actually think that this is impossible, but may be possible with a combination of Esc and CTRL for example, or a different key, but obviously that undermines the purpose of the script

EDIT: 750th Post :dances:
Well it is possible with a keyboard hook. But that has to be done in a dll not a script.
RE: Request - Escape key script by alexp2_ad on 12-19-2006 at 11:37 PM

Edited your version to work, there were some incorrectly named functions etc.  But this version works perfectly for me.

Most of the code is by matty btw.  So all credit to him. :P

Happy Winter Veil! :o)


RE: Request - Escape key script by Spunky on 12-19-2006 at 11:38 PM

quote:
Originally posted by alexp2_ad
Edited your version to work, there were some incorrectly named functions etc.  But this version works perfectly for me.

Most of the code is by matty btw.  So all credit to him. :P

Happy Winter Veil! :o)

Awesomeness :p

I'll shut my mouth about it not being possible then :(

RE: Request - Escape key script by alexp2_ad on 12-19-2006 at 11:39 PM

My bad, that script breaks esc in everything else... hold on...

EDIT:  I have no idea how to fix that. :/


RE: Request - Escape key script by matty on 12-20-2006 at 12:08 AM

Ya let me fix that

This should work.


RE: Request - Escape key script by Fraisie on 12-20-2006 at 01:57 AM

Working GREAT!!

thank you so much ^^ you saved my MSN!


RE: Request - Escape key script by matty on 12-20-2006 at 02:23 AM

quote:
Originally posted by Fraisie
Working GREAT!!

thank you so much ^^ you saved my MSN!
glad i could help :)
RE: Request - Escape key script by johnhazen on 09-09-2011 at 06:32 PM

I believe the script posted in post 7965 by Matty still kills ESC throughout all programs.  Not just messenger.


RE: Request - Escape key script by matty on 09-09-2011 at 07:06 PM

quote:
Originally posted by johnhazen
I believe the script posted in post 7965 by Matty still kills ESC throughout all programs.  Not just messenger.
You're right it does do that. But considering the thread is 5 years old (almost) it isn't that big of a deal.
RE: Request - Escape key script by johnhazen on 09-09-2011 at 08:31 PM

Rats.  I was hoping that "feature" was gone for good.  Dunno why MS would even consider that a good thing in the first place.  Way too easy to clobber your session.  At least for some of us.