Making a image clicker

im learning java and i just want to know a few things that i cant seem to find any where so if anyone can show me any links that can help that would be nice
all i really need is a program that can watch my computer screen and click on an image that that comes up
and checking a list of pre-defined images

noodude wrote:
im learning java and i just want to know a few things that i cant seem to find any where so if anyone can show me any links that can help that would be niceTry learning to use all the keys on your keyboard, first.
1) Every sentence should start with an upper case letter.
2) Every sentence should end with a full-stop '.' or question mark '?'.
3) The word 'I' should be upper case no matter where it appears in a sentence.
all i really need is a program that can watch my computer screen and click on an image that that comes upAll I need is a pony.
The Robot class provides the basics of this functionality. It can provide screen captures and 'do clicks' at any point on the screen as specified to the methods. The tricky bit is the Java program knowing where and when to click. I guess for that you are going to need to get screen shots at regular intervals, and compare the screen shots for changes, to detect 'an image'.
and checking a list of pre-defined imagesHuhh? What does that mean in your head? It means nothing to me.
As an aside. This is not a trivial or simple project (the little that I do understand of it).

Similar Messages

  • Photoshop crashes when I try and save for web and devices. Making the image size smaller does not help.

    I'm trying to make a lopping .gif from an animation that I made. It's 147 total frames. It's crashed about 6 times now every time I either try and Save for Web or even just save the document on my desktop so in case it crashes I can reopen PS and recover it. Making the image size smaller (original size is 1920 x 1080 with resolution 72) does not help, it still makes the *ding* error when I attempt to save. I made the image more than half of the original size and the Save for Web box actually came up that time, but when I tried clicking save it said there was an error and PS crashed without warning.

    Look at the crash report for your Photoshop crashes see what they show

  • "Authentication error", making disk image

    I'm trying to make a disk image of my OS X boot disk, as an emergency backup. I'm booting from the Installation CD that came with my Mac Pro, and using Disk Utility. I select my boot drive, click New Image, and tell it to save to an external firewire drive, compressed and encrypted. It starts and quickly errors out, with "Authentication error." What does this mean?
    I've used 250 GB of the 500 GB on my boot drive, and my external drive is 120 GB. I'd rather tell it to skip some files to save space, but it doesn't give me the option to do that. Will "compress" get it to be small enough? Is this why I'm getting an error? I've repaired permissions before booting from the CD.

    I don't know about the authentication error; however, to make a disk image of 250 GB source drive to a 120 GB target is an exercise in futility. There's not enough room. 250 GB? What are storing? A complete music store, the movies of Hollywood, or the pictures in an art gallery?
    If you want an emergency backup of your 500 GB HD, then you'll need an external at least as big. BTW, making disk images for this purpose is fraught with danger since you can't ensure that it's good until you restore it to a bootable HD. I strongly recommend something like Carbon Copy Cloner, SuperDuper!, etc. instead. BTW, you can just drag & drop any data files from one HD to another. There's no need to put them in a disk image and certainly no need to encrypt things. If you decide to go the bootable backup route, move the data files to root-level and don't back those up. That should make your emergency backup a lot smaller.

  • After importing an image from cs5 back into lightroom, lightroom is making the image darker

    Lightroom is making my images darker after i edit them in photoshop cs5 and I dont know why. When i open the image back into photoshop it looks fine. Even when i save it as a jpeg lightroom is making the image darker. When i imported the raw image into lightroom before i edited into photoshop it looked fine. Is there a way to fix lightroom?

    See screen shot:
    Click on the two small triangles and under <Lightroom General Presets> select <Zeroed>. Sorry, it seems that the option <None> is not available anymore in Lr 4.3. But <Zeroed> has the same effect.
    Alternatively, in the Develop Module, bottom right, just above the film strip click on <Reset>.  See screen shot:

  • "input/output error' when making disc image from DVD

    I've had problems installing Logic, and a Pro Apps Genius at Applecare suggested I try making an image of the problematic DVD (Audio Content 1) and then trying an install that way.
    While I can make an image of the Install disc to my desktop fine, the Audio Content 1 disc reports an "input/output error".
    This means I'm unable to copy the disc and then successfully install my Logic Studio.
    Any ideas?

    Thanks for your answer.
    Yes, I thought that might be the case - but I'd taken my Mac and Logic disks to a Genius bar, and the 'Genius' had said he'd fixed the issue. I just wish he'd explained what he did and why he didn't replace the faulty disk(s)!
    But is there any way around having the claim a disk, now I'm living abroad and my 'warrantee' has run out? It's going to be a pain in the fundament trying to claim a replacement set.

  • I purchased a Macbook Air 11" in January 2011. It has one key on the keyboard which sticks making an irritating clicking sound that I would like to get fixed. I took it into my local iStore and they were not at all encouraging, saying they doubt that the

    I purchased a Macbook Air 11" in January 2011. It has one key on the keyboard which sticks making an irritating clicking sound that I would like to get fixed. I took it into my local iStore but they were not at all encouraging, saying they doubt that Apple warranty will cover something like this, and also that the whole keyboard would have to be replaced as they don't do individual key repairs.
    This is very unreasonable to me. Firstly, the keyboard does work (is not actually broken) although the intermittent clicking sound of a single key is very irritating to me and I expect more from an Apple product than a flawed keyboard.
    Any thoughts, tips and insight on this greatly appreciated.

    Just wanted to conclude by saying that I did go to an Apple store and after supplying proof of purchase and verifying the warranty etc, I had my MacBook checked out by one of the technicians who (after finding that my machine was immaculate bar the sticky keyboard of course) they replaced the entire keyboard within a week.
    I was so happy with the helpful and prompt service and am now so happy with my new silent keyboard!
    Also wanted to add that the young guy who told me at the iStore that he doubted Apple would support this and guessed Apple likely say it was due to user damage was being a tool, and he was obviously assuming  that I had done something wrong to break my keyboard.
    This was my first Mac purchase and I was delighted to find that the support is genuine and not just a rumor... I have since gone on to purchase an iPad2 will probably buy the iMac too once my trusty PC needs replacing. I was never a PC hater and got on well with windows, and was actually reluctant to make the change - but so far so good :)
    Thanks for all the help!

  • Making the mouse click by itself

    If you are trying to use an automator workflow with a software that is
    not included in the automator list (and therefore there are no prebuilt actions for you to choose), but all you need to do is manually open
    the program yourself, place the mouse over the START button in the software,
    and you just need automator to click the mouse at a predetermined time,
    is there a way of doing that....just making the mouse click over a spot you
    have left the mouse, at a predetermined time?
    I know how to save the workflow as an ical plug in to trigger the workflow at a specific the time, but I have no idea if I can just make automator "click the mouse" button by itself any place you just leave the mouse.
    Any input would be appreciated. Thanks.

    QuickTime Broadcaster is scriptable, and has commands to start and stop broadcasts:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">     tell application "QuickTime Broadcaster"
              if (exists document 1) then
                   start document 1
                   delay 30 -- ...or however many seconds
                   stop document 1
              end if
         end tell
    </pre>

  • Link Image Click with Image Preview

    Use of Bridge with DW lacking. Too many clicks to see what an
    image in site folder is. Multiply x 100s of images = tons of extra
    clicks.
    Link Image Click (in Site Folder > Local Files) with Auto
    Image Preview in DW CS 4 -Please
    Please hotlink selection: Bridge W/DW and DW with
    Bridge

    I have done everything described but nothing has helped. It has nothing to do with the Type Tool, but with the new rendering. It occurs every time I want to insert a picture into the text flow. There is no workaround and the whole feature is completely broken.
    UPDATE: I have found out that it only occurs when I use the method via alt-clicking the anchor icon and dragging the cursor into the text. (Quick anchoring introduced in CS6) When I copy and paste the image frame into the text, it does not crash.

  • Lenovo G530 making an image

    I want to install XP on my new G530 but before I do I want to close the drive incase for some reason I need to revert back to Vista. DOes anyone have experience with this? Any suggestions
    Thanks

    how would I go by making an image of a disc(age of empires II) so that I dont have to keep inserting the disk in.
    The application you need is Drive-In. It can be obtained from
    http://www.flip4mac.com/drivein.htm
    It is currently available as a free beta, which works just fine.
    This does precisely what you want. Giving you this information does not contravene the terms of use of this forum. I will explain:
    Drive-In has one use only: it makes a disk image of any DVD, including commercial copy protected ones, so that you can store the DVD on your hard disk for playback only. You will not be able to copy it, or burn a DVD from it, as it preserves the copy protection on the DVD it makes the disk image from. It is for convenience only. For full details refer to the above link.
    Message was edited by: Klaus1

  • My iMac (6 months old) is making a constant clicking noise?

    Hi, my iMac (6months old) is making a constant clicking noise?

    If you haven't already, make a backup now. I don't want to be alarmist but a clicking sound is often a sign of impending hard disk failure.
    Your best option might be to make an appointment with Apple to get it checked over - you have 1 year warranty. If you haven't purchased AppleCare it is well worth considering as it will extend your cover to 3 years and also gives you telephone support for the whole period. You can extend your AppleCare anytime within the first year, after that is too late. Mac repairs can be scary-expensive.

  • HP Officejet Pro 8600 making a grinding-clicking noise before it prints

    There is no "accept as solution" button on the solution.

    Hello wwob,
    I am sorry to hear that your Officejet Pro 8600 is making grinding and clicking noises when you print.
    I have researched this issue for you and have found a document I recommend following.
    I hope this helps resolve your issue!
    The Product Makes Noise when Printing
    Regards,
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Image Click Event in html text

    Is there a way to attach event with the image inside html
    text in TextArea control. Just like we can attach text event with
    link tag?
    One possible solution is to enclose the image in <A>
    tag making it a link and setting its href to generate text event. I
    have already tried this and it works fine. But is there any other
    way to do that.
    Thanks

    Hi Prabhavathi,
    Here is how you handle double click events in Textedit control.
    1)Create a custom control in screen (say TEXT_CONTROL)
    2)In main program,
    a) Declarations:
    data: obj type ref to cl_gui_custiom_control.
          text type ref to cl_gui_textedit.
    b) Create the instance of custom container
    c) Create the instance of textedit control.
    3)Now to handle double click events , create a local class as follows.
    class shail_event definition.
    public section.
    methods:
    handle_doubleclick for event dblclick of cl_gui_textedit .
    endclass.
    class shail_event implementation.
    method handle_doubleclick .
    here do the coding for handling the double click.
    endmethod.
    endclass.
    4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
    5) Define varibles for event.
    DATA: i_events TYPE cntl_simple_events,
          wa_events TYPE cntl_simple_event.
    SET HANDLER hand->handle_doubleclick for text.
    wa_events-eventid = cl_gui_textedit=>event_double_click.
    wa_events-appl_event = 'X'. "This is an application event
    APPEND wa_events TO i_events.
    6)
        CALL METHOD texte->set_registered_events
          EXPORTING
            events                    = i_events
          EXCEPTIONS
            cntl_error                = 1
            cntl_system_error         = 2
            illegal_event_combination = 3
            OTHERS                    = 4.
        IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
    If you want the program, kindly send your mail-id so that I can mail it to you.
    Regards,
    Sylendra.

  • Quicktime to iDVD - iDVD quits when making disk image

    You folks helped me a hugely with the arduous process of producing a nice 45 minute iMovie->iDVD movie last year from my digi camera, which actually works (http://www.galfromdownunder.com/peru). Thank you! Last year I was flummoxed by misplaced chapter markers. It's not the case this time.
    I am doing another one of a similar size, and am at the stage of trying to burn a disk image, but it keeps falling over with 'iDVD unexpectedly quits' after about an hour and half. This time I saved the little log that pops up with 'send to Apple' (does anyone actually read it if you do?) and have posted it here:
    http://www.galfromdownunder.com/ftp/iDVD-crash-report-may2106.txt
    I would really be so grateful if an extreme geek would mind taking a look before I try to reverse engineer this whole process further. The log always seems to stop at a place that says:
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000000
    The difference between this project and last year's is as follows:
    1) In an attempt to save time and space, I bypassed iMovie, and concatenated the QT7 clips and moved the resulting final movie directly into iDVD.
    2) Yes, I did see that the Chapter Markers I painstakingly inserted (using that arduous text file process described in QT Help, mindful of not putting one within 2 secs of beginning, end, etc etc) into the movie are not picked up by iDVD. Groan. Still, the disk image burn quit. Then I tried again with the second concatenated QT movie without chapter markers, but it still quit with the above report.
    3) I moved individual files to iDVD fudge a separate 'scenes' menu. I know it means there is redundancy in the data now, but there is 4 Gb to play with, so why not....
    4) The total capacity comes to 4.3 Gb according to the Status section in iDVD. When I clicked on the DVD Capacity button it said the total was 62 minutes. I thought it was under ... hmmm... had it set to Best Performance.
    5) I have about 11.47 Gb free on my laptop. I even tried making the disk image to a 20 gb Lacie external Firewire drive but it still quit.
    6) Is there any difference between moving a reference movie to iDVD vs a self-contained? Does the s/w resolve them for you at the end of the day?
    Really appreciate help - I realize could/should get iLife06 and a bigger machine etc etc but since I managed to do it last year, why spend more money unless there is an insurmountable tech reason to do so.
    Thanking you,
    Lynette
    Powerbook G4 12" 1gHz 60 gb   Mac OS X (10.4.6)   1.25 Gb RAM

    My. You sound like an advanced user, but that sounds like a very advanced crash....
    You know, I'm not one of the great experts, and I'm here to try to learn why iDVD won't start with a "Missing (iDVD) Image" in the crash log, but I've also had very little success with QT editing. Assembling clips frequently produces a video that is corrupted between clips, and a save doesn't really produce a truly complete file from a series of clips. Usually, the file plays up to a broken video, and the video then freezes, while sound continues. Yet picking on the video at the cursor will restart the video, so it's in there, just broken. Common occurance, this. This can be validated when that malformed file is imported into MPEG Streamclip (free app, and a good one), with the import only loading the clips up to the malfunctioning clip. I'm guessing that iDVD is running up against a malformed section in your QT file, causing a crash against a incorrect behavior in how the code accesses memory.
    What would I do?
    Since there doesn't seem to be any "self-healing" ability in QT, and since you already have a QT file with times and bookmark names, you might be happier if you went ahead with iMovie, and used the QT file for a ready reference to recreate the video in iMovie. I've done this in remakiing a DVD from another DVD I've created. The recreation process only takes maybe 1/2 hour compared to the much longer first effort. Copying is easy.
    I use Final Cut express myself, and like its quality, and use an external drive for movie making, so you can live with the 11gigs you have onboard using your Lacie. Given the sad behavior of iDVD on my G5 recently, not starting and all, I'm thinking that maybe another 3rd party product, like the highly recommended "Toast" may help me elude what I'm beginning to recognize as substandard Apple apps. Apple has annoyed me endlessly with my need to "convert" the standard 'mpeg' to use in Apple products, like Final Cut (even after the $10US upgrade to play mpeg). Perhaps that would be a long term positive for you too.
    Like your current experience, I'm at the "had my fill" point with pure Apple apps. Too much dancing with them trying to get common communication to work and too little visibility into why malfunctions are occurring.
    In any case, good luck on this fix. Hope someone can get you rolling.
    Harley

  • Making new Images

    Im making a game and when you click a button and then click on the screen it makes a new tower. At first when you click the tower will show up where you clicked, but if you try to make a second tower and you click on the screen the first tower is deleted and the second tower is drawn where you clicked. I know why it dose this and I know how I COULD fix it but it would take a lot of programming and I would only be able to make a certain amount of towers. So I was wondering how can I fix it so that it wont delete the first tower?
    Here is the code that I have so far:
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.util.Timer;
    import java.util.TimerTask;
    import javax.imageio.ImageIO;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    public class Defense extends JPanel implements MouseListener{
         Timer update;
         static JFrame dframe = new JFrame("Battle!");
         static BufferedImage map1,rgtower;
         static JButton regtower = new JButton();
         static ImageIcon rgticon = new ImageIcon("imgs/rgtower.png");
         static boolean placetower,drawtower,drawwarning = false;
         static Graphics g;
         Font font = new Font("Arial",Font.PLAIN,30);
         int x,y = 0;
         static Container dcontain = dframe.getContentPane();
         public static void defGUI(){
              dcontain.add(regtower);
              dcontain.add(new Defense());
              regtower.setBounds(645,100,100,50);
              regtower.setIcon(rgticon);
              regtower.setBorder(null);
              regtower.setFocusable(false);
              regtower.addActionListener(new buttonlist());
              dframe.setSize(800,600);
              dframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              dframe.setResizable(false);
              dframe.setVisible(true);
              try {
                   map1 = ImageIO.read(new File("imgs/map1.png"));
                   rgtower = ImageIO.read(new File("imgs/rgtower.png"));
              } catch (IOException e) {
                   e.printStackTrace();
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              g.drawImage(map1,0,0,null);
              if(drawwarning == true){
                   g.setFont(font);
                   g.setColor(Color.black);
                   g.drawString("Cant Place it there!",300,50);
              g.create(x, y, 40, 40);
              g.drawImage(rgtower,x,y,40,40,null);
         public Defense(){
              UTimer task = new UTimer(this);
              update = new Timer();
              update.scheduleAtFixedRate(task,0,5);
              this.addMouseListener(this);
              this.setOpaque(false);
              dframe.repaint();
              System.gc();
         class UTimer extends TimerTask{
              private Defense def;
              public UTimer(Defense def){
                   this.def = def;
              public void run(){
                   def.repaint();
                   dcontain.repaint();
         public void mouseClicked(MouseEvent e) {
              if(placetower == true){
                   if(e.getX() >= 590){
                        drawwarning = true;
                   }else{
                        drawwarning = false;
                        placetower = false;
                        x = e.getX()-25;
                        y = e.getY()-25;
         public void mouseEntered(MouseEvent arg0) {}
         public void mouseExited(MouseEvent arg0) {}
         public void mousePressed(MouseEvent arg0) {}
         public void mouseReleased(MouseEvent arg0) {}
    }

    BigDaddyLoveHandles wrote:
    That wasn't that hard, was it? An array would work, but a list would be easier, wouldn't it?Oh well im not sure how to use a list but I could figure it out. Thanks for the help! Could you give me a sample code that would get that to work? You don't have to though lol.

  • Making Main Images Links in Photo Gallery

    Hello.
    I've made an image gallery and it works great. What I want to do is make the main image a link to a certain part of the site. The first link works great, but then I get: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Rockit_Front_Ad_fla::MainTimeline/frame1().
    Basically, I made an invisible button on each main image for the link.
    Can anyone help? Just want the links to work and can't get it. Any help is greatly appreciated. My AS3 is below:
    Mike
    stop();
    Button1.addEventListener(MouseEvent.CLICK,showPic1);
    Button2.addEventListener(MouseEvent.CLICK,showPic2);
    Button3.addEventListener(MouseEvent.CLICK,showPic3);
    Button4.addEventListener(MouseEvent.CLICK,showPic4);
    Button5.addEventListener(MouseEvent.CLICK,showPic5);
    Button6.addEventListener(MouseEvent.CLICK,showPic6);
    Button7.addEventListener(MouseEvent.CLICK,showPic7);
    IMG1.addEventListener(MouseEvent.CLICK,IMG1ClickHandler);
    IMG2.addEventListener(MouseEvent.CLICK,IMG2ClickHandler);
    IMG3.addEventListener(MouseEvent.CLICK,IMG3ClickHandler);
    IMG4.addEventListener(MouseEvent.CLICK,IMG4ClickHandler);
    IMG5.addEventListener(MouseEvent.CLICK,IMG5ClickHandler);
    IMG6.addEventListener(MouseEvent.CLICK,IMG6ClickHandler);
    IMG7.addEventListener(MouseEvent.CLICK,IMG7ClickHandler);
    function showPic1(Event:MouseEvent):void{
    gotoAndStop("Pic1");
    function IMG1ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=31"));
    function showPic2(Event:MouseEvent):void{
    gotoAndStop("Pic2");
    function IMG2ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/proddetail.asp?prod=BOOGIETA15"));
    function showPic3(Event:MouseEvent):void{
    gotoAndStop("Pic3");
    function IMG3ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=61"));
    function showPic4(Event:MouseEvent):void{
    gotoAndStop("Pic4");
    function IMG4ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/proddetail.asp?prod=MM25THANN"));
    function showPic5(Event:MouseEvent):void{
    gotoAndStop("Pic5");
    function IMG5ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=14"));
    function showPic6(Event:MouseEvent):void{
    gotoAndStop("Pic6");
    function IMG6ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=27"));
    function showPic7(Event:MouseEvent):void{
    gotoAndStop("Pic7");
    function IMG7ClickHandler(Event:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.rockitmusic.com/products.asp?cat=49"));

    That error usually means that some object doesn't exist in the frame where the Actionscript is located, or, that some object does not have an instance name. So, for instance, if your Actionscript is in frame 1, then Button1 through Button7 and IMG1 through IMG7 also need to be on frame 1.

Maybe you are looking for