Wish for a plugin (printScreen)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Hakarien
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-07, 17:10 UTC
Location: Geneva

Wish for a plugin (printScreen)

Post by *Hakarien »

I like to find a plugin that create a file (bmp,tif,jpeg or whatever graphic format) with the content of the clipboard. This file must be placed in TC's current directory.

Or do you have a better idea to quickly save a print screen ?

Any answer with :
Open Wordpad or Irfanview, paste , select directory , select format, save and close
missed my point. :)
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

I've set a hotkey in my shell (You can always find a standalone-app to set custom hotkeys, or just use a batch or something...) to use irfanview for this purpose:

Code: Select all

...\i_view32.exe /capture /convert=x:\nameoffolder\nameofscreenshot.png
This will take a screenshot and save it to wherever you want (with preferred extension), without actually opening irfanview.

I didn't find a feature in irfanview that would let me append date to filename, but you can use "name_XX" and it will save it as name_01, name_02, etc.... In my setup I can append date/time through a module for the shell I'm using, though. PureLS
license #76904
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

btw, just check the docs for IrfanView for any additional options you'd like.

note: this way of taking a screenshot, does NOT leave a huge bitmap in your clipboard ;)
license #76904
User avatar
Hakarien
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-07, 17:10 UTC
Location: Geneva

Post by *Hakarien »

@TucknDar

Thanx for your tip.
But unfortunately Irfanview doest not capture anything else than the full screen when using the commandline.
I would like the equivalent of "Alt Print Screen" to capture the foremost window only in a quick and not so dirty way.
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

Found in i_options.txt:

--
Example for capture:
i_view32.exe /capture
=> Capture the whole screen and show the image in IrfanView
i_view32.exe /capture=1
=> Capture the foreground window and show the image in IrfanView
i_view32.exe /capture=2
=> Capture the client area of the foreground window and show the image
--

It seems that /capture=2 would be your wish!
Regards,
Cornelis
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

corny wrote:Found in i_options.txt:

--
Example for capture:
i_view32.exe /capture
=> Capture the whole screen and show the image in IrfanView
i_view32.exe /capture=1
=> Capture the foreground window and show the image in IrfanView
i_view32.exe /capture=2
=> Capture the client area of the foreground window and show the image
--

It seems that /capture=2 would be your wish!
I'd say /capture=1 is what he's looking for ;)

You're right about actually looking at the docs for it, though. Just assign one hotkey for plain /capture and one for /capture=1 (and for =2) if you need it.
license #76904
User avatar
Hakarien
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-07, 17:10 UTC
Location: Geneva

Post by *Hakarien »

Ok guys, thank you

The following line does the trick
..\IrfanView\i_view32.exe /capture=2 /convert=..\Capture\Histo\test.gif

I just thought I had done my home work after thoroughly checking the help file of irfanview, including command line options. Now I have found too the annexe the file were it's documented !
User avatar
corny
Junior Member
Junior Member
Posts: 96
Joined: 2003-02-07, 10:06 UTC

Post by *corny »

TucknDar wrote:I've set a hotkey in my shell (You can always find a standalone-app to set custom hotkeys, or just use a batch or something...) to use irfanview for this purpose
Hi,

Can you recommend a program for it? I've been looking for an app which is able to set a hotkey with PrintScreen, but I haven't found one yet (freeware).
Regards,
Cornelis
TucknDar
Senior Member
Senior Member
Posts: 227
Joined: 2003-02-07, 09:44 UTC
Location: Oslo
Contact:

Post by *TucknDar »

corny wrote:Hi,

Can you recommend a program for it? I've been looking for an app which is able to set a hotkey with PrintScreen, but I haven't found one yet (freeware).
Sorry, I don't know any... As I said, I just use my shell for this stuff. I'd take a look at SHELL EXTENSION CITY for it. There's tons of useful apps there (most are freeware), so you might find what you're looking for and a whole lot you didn't know you needed ;)
license #76904
Post Reply