mIRC Homepage
Posted By: MTech on keypress - 14/06/03 12:53 AM
is there a way to do this?

i want a script so that when i push printscreen, it opens PSP7 and pastes the ss in PSP7 and saves it as jpg

or just save it as jpeg however mirc can...
Posted By: Prizm Re: on keypress - 14/06/03 01:04 AM
This is only possible to do with custom @windows with the on KEYDOWN event. Even if you were to use the on KEYDOWN event with an @window to check and see if a user pressed the 'Print Screen' key, it wouldn't work. I just tried this:

on *:KEYDOWN:@Test:*:{
echo -a $keyval
}

And it did not respond after pressing the 'Print Screen' key.
Posted By: MTech Re: on keypress - 14/06/03 01:05 AM
how do i do that?
Posted By: Prizm Re: on keypress - 14/06/03 01:09 AM
/help on KEYDOWN

Example:

on *:KEYDOWN:@Test:89:{
echo -a You pressed the 'Y' key.
}

89 being the Y character.
Posted By: codemastr Re: on keypress - 14/06/03 03:50 AM
Well this isn't PSP7 support. How do we even know if PSP7 has the ability to do what you requested? Does PSP7 have a commandline option that allows you to tell it to read from the clipboard? Does PSP7 allow you to, from the commandline tell it to take the data read from the clipboard then save it to a jpg file? If the answer is no to either of those questions, then the answer is no to your question. If you don't know the answer to my questions, then I don't know the answer to your questions. And if the answer is yes to both of my questions, then the answer would be to use ON KEYDOWN in combination with /run. But my guess is PSP7 has no such features, therefore it can not be done.
Posted By: MTech Re: on keypress - 14/06/03 04:35 AM
ok but can mirc save the clipboard ss itself?
Posted By: codemastr Re: on keypress - 14/06/03 01:50 PM
No
Posted By: MTech Re: on keypress - 14/06/03 06:31 PM
oh well ill just do it manually

ty anyway
© mIRC Discussion Forums