mIRC Home    About    Download    Register    News    Help

Topic Options
#29665 - 14/06/03 01:53 AM on keypress
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
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...


Edited by MTech (14/06/03 02:03 AM)

Top
#29666 - 14/06/03 02:04 AM Re: on keypress
Prizm Offline
Fjord artisan

Registered: 07/05/03
Posts: 177
Loc: 127.0.0.1
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.

Top
#29667 - 14/06/03 02:05 AM Re: on keypress
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
how do i do that?

Top
#29668 - 14/06/03 02:09 AM Re: on keypress
Prizm Offline
Fjord artisan

Registered: 07/05/03
Posts: 177
Loc: 127.0.0.1
/help on KEYDOWN

Example:

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

89 being the Y character.

Top
#29669 - 14/06/03 04:50 AM Re: on keypress
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
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.

Top
#29670 - 14/06/03 05:35 AM Re: on keypress
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
ok but can mirc save the clipboard ss itself?

Top
#29671 - 14/06/03 02:50 PM Re: on keypress
codemastr Offline
Hoopy frood

Registered: 12/12/02
Posts: 2809
No

Top
#29672 - 14/06/03 07:31 PM Re: on keypress
MTech Offline
Fjord artisan

Registered: 05/03/03
Posts: 437
oh well ill just do it manually

ty anyway

Top