Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: nickispeaki on April 15, 2009, 07:58:35 PM

Title: how to make screenshot?
Post by: nickispeaki on April 15, 2009, 07:58:35 PM
and where is it?
Title: Re: how to make screenshot?
Post by: Jason W on April 15, 2009, 08:03:12 PM
On the menu, Tools -> Screenshot.
Title: Re: how to make screenshot?
Post by: nickispeaki on April 15, 2009, 09:05:59 PM
i know it! But where are my screenshot pics?  ???
Title: Re: how to make screenshot?
Post by: MikeLockmoore on April 15, 2009, 11:14:04 PM
nickispeaki: I wondered the same thing.  I could not find where Menu | Tools | Screenshot dumps data (if anyplace).   :-\  Maybe someone can enlighten us.   

However, I've found I can open a terminal and enter:

   imlib2_grab {myfilename.jpg}

Also, .png works.   That's how I made the screen grabs of my picture viewer app in action in another thread.
Title: Re: how to make screenshot?
Post by: mikshaw on April 15, 2009, 11:31:15 PM
the menu command is "sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png", so it should be in your home directory and look something like this: screenshot_04.15_23:30:39.png
Title: Re: how to make screenshot?
Post by: Roberto A. Foglietta on April 17, 2009, 07:50:16 AM
the menu command is "sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png", so it should be in your home directory and look something like this: screenshot_04.15_23:30:39.png

it does not work for me but this it does:

Code: [Select]
exec /bin/sh -c "sleep 1 && /usr/bin/imlib2_grab screenshot_`date "+%Y%m%d%H%M%S"`.png"
Title: Re: how to make screenshot?
Post by: jpeters on April 17, 2009, 01:56:54 PM
Isn't 'usr/bin' in PATH?

Title: Re: how to make screenshot?
Post by: Roberto A. Foglietta on April 17, 2009, 05:44:12 PM
Isn't 'usr/bin' in PATH?

Yes, it is. Aterm says:

Code: [Select]
tc@box:~$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
Title: Re: how to make screenshot?
Post by: jpeters on April 17, 2009, 07:10:47 PM
`sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png should work.  (you just included the path....shouldn't be necessary.   
Title: Re: how to make screenshot?
Post by: Roberto A. Foglietta on April 18, 2009, 04:50:24 AM
`sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png should work.    

I does not work with out the path!  >:(
Title: Re: how to make screenshot?
Post by: jpeters on April 18, 2009, 07:42:34 AM
`sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png should work.    

I does not work with out the path!  >:(

What if you type "whoami"  ?

note: if you get anything profound, you may need an exorcism 

 

Title: Re: how to make screenshot?
Post by: Roberto A. Foglietta on April 18, 2009, 08:21:57 AM
`sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png should work.    

I does not work with out the path!  >:(

What if you type "whoami"  ?

I am using Tinycore 1.2, here you are:

Code: [Select]
tc@box:~$ whoami
tc
tc@box:~$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin

note: if you get anything profound, you may need an exorcism 

 ;D
Title: Re: how to make screenshot?
Post by: jpeters on April 18, 2009, 03:07:09 PM
OK, then  "imlib2_grab" should also be working. 

Note:  Do you copy/paste examples, or type them in yourself?
Title: Re: how to make screenshot?
Post by: nickispeaki on April 19, 2009, 11:39:33 AM
nickispeaki: I wondered the same thing.  I could not find where Menu | Tools | Screenshot dumps data (if anyplace).   :-\  Maybe someone can enlighten us.   

However, I've found I can open a terminal and enter:

   imlib2_grab {myfilename.jpg}

Also, .png works.   That's how I made the screen grabs of my picture viewer app in action in another thread.

i installed imlib2.tce and:
>imlib2_grab d.jpg  (4974)
>imlib2_grab d.jpg (4974) returned '0'

>gview "d.jpg"
Failed to execute child process "gview" (No such file or directory).

now i must to install some grapical viewer.... like gview.

I installed feh. Then I'm  viewing a picture from emelFM2. Right button  - Open with... -  feh

Title: Re: how to make screenshot?
Post by: jpeters on April 19, 2009, 01:19:03 PM

i installed imlib2.tce and:
>imlib2_grab d.jpg  (4974)
>imlib2_grab d.jpg (4974) returned '0'

>gview "d.jpg"
Failed to execute child process "gview" (No such file or directory).

now i must to install some grapical viewer.... like gview.

I installed feh. Then I'm  viewing a picture from emelFM2. Right button  - Open with... -  feh


try 'imlib2_view d.jpg' 
Title: Re: how to make screenshot?
Post by: Roberto A. Foglietta on April 19, 2009, 01:30:57 PM
OK, then  "imlib2_grab" should also be working. 

Note:  Do you copy/paste examples, or type them in yourself?

It works from console (aterm) but it does not from the menu (if called without the full pathname)
Title: Re: how to make screenshot?
Post by: roberts on April 19, 2009, 01:36:02 PM
the menu command is "sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png", so it should be in your home directory and look something like this: screenshot_04.15_23:30:39.png

it does not work for me but this it does:

Code: [Select]
exec /bin/sh -c "sleep 1 && /usr/bin/imlib2_grab screenshot_`date "+%Y%m%d%H%M%S"`.png"

adding this mod to the next cut. Thanks for the report.
Title: Re: how to make screenshot?
Post by: jpeters on April 19, 2009, 02:56:08 PM
OK, then  "imlib2_grab" should also be working. 

Note:  Do you copy/paste examples, or type them in yourself?

It works from console (aterm) but it does not from the menu (if called without the full pathname)

It seems to work fine with no imlib extensions (thus no menu). I hotkey the script to "CA-s" 

Code: [Select]
#!/bin/ash

sleep 1 && imlib2_grab screenshot_`date "+%m.%d_%H:%M:%S"`.png
Title: Re: how to make screenshot?
Post by: Roberto A. Foglietta on April 20, 2009, 01:05:11 PM
OK, then  "imlib2_grab" should also be working. 

Note:  Do you copy/paste examples, or type them in yourself?

It works from aterm but it does not from desktop-menu (without path).