File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes screen capture scheduler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "screen capture scheduler" Watch "screen capture scheduler" New topic
Author

screen capture scheduler

bhavit pant
Greenhorn

Joined: May 22, 2012
Posts: 21



1->this code works perfactly fine. i triedto make A little modification , i want image to to be saved in a folder specified by date, but this is not working, i tried to create a dir, but dont know how to save it in a that dir(in every 10 mins).
please help.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

You can't write a file into a directory which doesn't exist. You'll have to create the directory first.

Hint: the java.io.File class has a method which you can use to create a directory.
bhavit pant
Greenhorn

Joined: May 22, 2012
Posts: 21


thanks for the reply sir, even after creating a dir, and trying to write onto that, , this ain't working...
used this constructor
public File(String parent,
String child).. form IO api..
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41096
    
  44
Please read https://www.coderanch.com/how-to/java/ItDoesntWorkIsUseless. What is or is not happening if you run the code? What is the return value of the mkdir call and the ImageIO.write call?


Ping & DNS - my free Android networking tools app
bhavit pant
Greenhorn

Joined: May 22, 2012
Posts: 21

sorry for the sub standard post,
-> what is happning is a file named as currrent date is created , and mkdir() call is returning false(i wonder why??).
bhavit pant
Greenhorn

Joined: May 22, 2012
Posts: 21

file not found exception, null pointer exception
bhavit pant
Greenhorn

Joined: May 22, 2012
Posts: 21

done txx..gurus for your help
 
 
subject: screen capture scheduler
 
Similar Threads
Robot().createScreenCapture() to capture 2nd monitor?
how to implement the processing of events without creating a window
How to Save applet page as a JPG file
showing applet embedded in jsp
how do i capture screenshot via network in java swing