Ive made a java program to do automated tasks for a game. It takes screen shots with java.robot every 250 milliseconds. The program is working great, but it will always crash at around the 30min mark Im running this program on my mac, and this is the crash report that I get. I believe the plugin is what is crashes. I watched how much memory the program took up on Activity moniter and it never used more than 125mb of real memory. Process: java [44066] Path: /usr/bin/java Identifier: net.java.openjdk.cmd Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: java [44032] …

Member Avatar
Member Avatar
+0 forum 30

Ive made a java program to do automated tasks for a game. It takes screen shots with java.robot every 250 milliseconds. The program is working great, but it will always crash at around the 30min mark Im running this program on my mac, and this is the crash report that I get. I believe the plugin is what is crashes. I watched how much memory the program took up on Activity moniter and it never used more than 125mb of real memory. Process: java [44066] Path: /usr/bin/java Identifier: net.java.openjdk.cmd Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: java [44032] …

Member Avatar
Member Avatar
+0 forum 5

Hello all Im trying to make java robot hold down the command key. I have used the following code. robot.keyPress(KeyEvent.VK_META); robot.Delay(5000); robot.keyRelease(KeyEvent.VK_META); This doesant seem to do the trick. Yes I have searched on how to do this but cannot find a working answer. Am I using the wrong keycode? Ive also tried robot.keyPress(KeyEvent.META_MASK); and robot.keyPress(KeyEvent.META_DOWN_MASK); Ive also tried keycodes, 91 and 93.

Member Avatar
Member Avatar
+0 forum 2

Hi again. I want to create a robot or spider or crawler with python urllib. Still couldn't find any good tutorial. Any suggestion?!

Member Avatar
Member Avatar
+0 forum 3

# I want to give a button in my JSP page, which on click of it should store an image in the filesystem. # Following is the code ScreenCapture.java which is a servlet. Purpose: To capture the screen of working area and store it in file system. Problem: - An image file is stored in file system with blank image. ## Please help me to fix what is wrong ## . import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Robot; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; import java.util.logging.Logger; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import …

Member Avatar
Member Avatar
+0 forum 1

Hi there, Recently I've started using a client called Tribot which allows me to automate playing a game. The Client has been crashing (for example I was running 8 clients simultaniously last night) and one by one, they crashed over time and produced there error logs in the start-up directory http://gyazo.com/433e92435372a28cccd859c0aaee76e7 Computer Specs: Itel i7 2600k 3.4Gz Quad Core CPU AMD Radeon HD 6800 Series GPU ASUS P8Z77-V Motherboard 16GB DDR3 1333Mhz RAM My hard-drive is not full, or close to. (>30gb of space free) http://gyazo.com/f450d3f08baf89bc86c3bb00626449db Is there any chance somebody could help me understand what is going wrong and …

Member Avatar
Member Avatar
+0 forum 2

I have an online forun i just finished building. Now i need to build a script that moderates my forum witout me there.

Member Avatar
Member Avatar
+0 forum 14

Hi, I'm working on a robotic project in university and searching for a good robot programming language. If C++ can help PLEASE give me some advise that how can i start robot programming in C++.

Member Avatar
Member Avatar
+0 forum 8

Hi all, I have a robot which detects an object using hsl filtering and a blob counter to draw a rectangle around the object. What I am trying to do is get the robot to move to its right if the object is on the right side, else it moves to the left. Essentially I want it to work as a goalkeeper, so as the object comes towards it, it moves into the objects path. I am far from a C# expert and have tried various ways to get it to function properly, to no avail. When the program runs …

Member Avatar
Member Avatar
+0 forum 1

my friend and I want to make and program our own computer hardware, such as a very simple robot ( a thing with wheels that can avoid objects and stuff like that). I have expiraince with C++ and i have heard that it is posible to program such things using c++. however, I have no idea how to program such a thing, or how stuf like that works. Can you tell me making such a "robot" works?

Member Avatar
Member Avatar
+0 forum 9

> tl;dr: MegaMan's storyline sucks. I want advice in writing it as realistically as possible. I want to dip my toes into the realm of fiction (due to much prodding by my wife). I decided I wanted to start with a fan-fiction project based on the popular game MegaMan (also thanks to my wife). Regrettably, the canon story-line is too far-fetched to be plausible (especially for the time they specify). The fanon (fan writing) is worse. I want to write a fan story to set a new standard. I want to write a story where: * Actual human emotions and …

Member Avatar
+0 forum 0

Hi, I've created a small application that allows the user to capture the screenshot and save the image at a user defined location. It also allows the user to capture the screenshot of the active window as well. The issue is with the active window. I have learnt that Java does not provide a method to get the screenshot of the active window. So, I googled and found that developers have been using the Alt+PrntScrn to get the screenshot and get the image from the clipboard. The code for this is: robot.keyPress(KeyEvent.VK_ALT); robot.keyPress(KeyEvent.VK_PRINTSCREEN); robot.keyRelease(KeyEvent.VK_PRINTSCREEN); robot.keyRelease(KeyEvent.VK_ALT); Thread.sleep(1500); RenderedImage image = (RenderedImage)getClipboard(); …

Member Avatar
Member Avatar
+0 forum 2

Hi, I am trying to get a screenshot of the active window on the screen, for which unfortunately Java does not have an API. It allows me to capture the screenshot of the whole screen but not of the active window. Now, I did a bit of workaround but it is not working as expected. What I did was first press the Alt+PrntScrn keys using the robot class object. Then I get the contents from the clipboard and save the image to a file. The code is working fine, however it is not getting me the latest image. It gets …

Member Avatar
Member Avatar
+0 forum 2

First off im sorry if this is the wrong place to be asking. Im looking for some advice on where I should start, heres some background information on my experience. Iv been software developing for several years now working with websites, computer applications and computer games and have an understanding of many computer languages. When I was younger (at college) one of our assignments was to program a cnc machine to create a complex aluminum joint for a steam powered engine and program a micro robot to follow a line. None of which i can remember how to do at …

Member Avatar
Member Avatar
+0 forum 2

I am making a [I]Wi-Fi robot[/I] by modifying the controls of an RC car with Micro-controller to steer, IP camera, both of these connected to a Link-sys router that streams the video to my desktop where a C# based application shows video and arrows to steer the vehicle. Plus a GPS to locate the vehicle. It will have a range <= 500m. [B]i want to ask what feature i am missing that can make this project innovative? In other words what can be a new addition or modification to make this a wow:-O project.[/B]

Member Avatar
Member Avatar
+0 forum 1

[ATTACH=RIGHT]22424[/ATTACH]When it comes to robotic pets I still have my heart set on one day owning a Sony AIBO as I always wanted one when they arrived on the geek scene, but could never justify the cost. The Desk Pet TankBot is no AIBO; for a start it's a tank and not a dog, it's a lot smaller and far less intelligent no matter what the packaging blurb tells you. Oh, and it's nowhere near as cute either. But then again, a second hand AIBO (should you be able to find one for sale in good working condition) is going …

Member Avatar
+0 forum 0

is robot.txt files important? how do we remove it please?

Member Avatar
Member Avatar
+0 forum 12

Hello, I got a MacBook Pro for college and i'm trying to program on it. It's all good except when i use the robot class, i don't see any key codes or key events for keys such as function, option, and command. Can i use those keys when using the robot class? Thanks in advance! -Nick

Member Avatar
Member Avatar
+0 forum 4

hi experts, using a robot.txt on a site. Will it help to increase the web traffic? or what are your thoughts and suggestion on this? Thank you.

Member Avatar
Member Avatar
+0 forum 3

I've been working hard all day to get this to work. I'm playing around with the math module in python. I eventually want the following code to help me control the speed of a servo motor. The idea is to get the servo speed to accelerate and then decelerate as it reaches its set position--in a parabolic way you might say. The problem is I'm getting wavy numbers apparently from the algorithm I've set up and it needs to be a nice smooth transition. [CODE=Python]from __future__ import division import math import time def Interpolation(): EffectPercentage = 1 Step = 1 …

Member Avatar
Member Avatar
+0 forum 2

Before I ask the question I realize that selection of a programming language depends on the context of a problem at hand. Related to this I would like to know (if anyone) how many of you use which language for programming microcontrollers, embedded systems and even generally on PC. Here is an example: [LIST] [*]Webcam interface for face recognition. (USB or inbuilt) [*]Visualizing the data in real-time plus GUI. [/LIST] [B]Example[/B] languages which could be used for the above: [LIST] [*]C [*]C++ [*]Python [*]Java [*]C# [/LIST] [B]What do you recommend and why? [/B] (I am asking this question because a …

Member Avatar
Member Avatar
+0 forum 4

[ATTACH=RIGHT]16417[/ATTACH]Telecommuting is one thing but how about actually being there. Imagine you’re working from New York and you need to check up on a production plant in Seattle. Imagine being able to walk around the building in Seattle while sitting at your desk in New York, talking to people around the remote office, going in and out of meetings in the conference room, even keeping a close eye on the production line. Well Menlo Park, CA based Willow Garage is making that possible with their Texai communication systems. Now humans can actually inhabit a robot-like unit (think Avatar minus the …

Member Avatar
Member Avatar
+3 forum 4

Have you ever envisioned being Robocop? Have you ever envisioned being Robocop with the funding of Lockheed Martin? Enter the hydraulic-powered anthropomorphic exoskeleton known as the Human Universal Load Carrier (HULC), the result of Lockheed Martin’s partnership with Berkeley Bionics that was unveiled earlier today. Like something straight out of a James Cameron movie, the HULC exoskeleton has recently begun eight weeks of rigorous field tests in Afghanistan. The system, comprised of primarily titanium components, offers strength without compromising weight. Managed by an on-board processor, the hydraulics at the leg joints are put into action as sensors all over the …

Member Avatar
Member Avatar
+0 forum 7

I am old enough to remember the Westworld movie which starred Yul Brynner as a malfunctioning robot cowboy. It also featured sex robots, androids which allowed paying punters to indulge their every sexual fantasy. Of course, Westworld was a big hit in 1973 and I guess it was only ever going to be a matter of time until that fantasy became a technological reality. Some 27 years on and the world's first sex robot has made an appearance in Las Vegas at, perhaps somewhat fittingly, the recent AVN Adult Entertainment Expo. The Roxxxy TrueCompanion is said to be more than …

Member Avatar
+0 forum 0

Hi I have selected to create a Robocup simulation team as my final year project. and i want to do it in JAVA. even though my interest is AI area i have no idea how to start this project. im still in my research time so have some time to develop a team. but i must submit how am i going to do this. what i need is what game engine should i use and should i do it in JAVA C++ or another language. basically how should i start.. i have downloaded many team binaries and read lot of …

Member Avatar
+0 forum 0

Hi all, I'm new to Java. *question:* Can this be done in Java as a desktop application? * * * * * * Among other projects I've been thinking is a Software Robot... kind of a super macro that goes across multiple programs. For example (it could be anything really): say I've got a large spreadsheet with thousands of records and I want to copy cell A1, then in the program (Java) I process it (maybe read the numbers only and add a "." every two digits) and finally copy it to say a third party database. I came across …

Member Avatar
Member Avatar
+0 forum 1

Hi, I want to "click" with the mouse using a Robot object like this: [code] Robot bot = new Robot(); bot.mousePress(InputEvent.BUTTON1_DOWN_MASK); bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK); [/code] This results in: [B]Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Invalid combination of button flags[/B] I even delayed the process before it starts clicking to have time to release the mouse but the same exception appears

Member Avatar
Member Avatar
+0 forum 1

Hi, been working on this project and just confusing the heck out of myself with classes and stuff and was hoping maybe someone could lend a hand on what I might be doing wrong? The general idea of this is to get the arrow (int 231-234) to point in the direct that the use clicked (n/s/w/e) and then when they press go 1 or go 10 it goes the direction selected and go either 1 or 10. But I have to limit it from going over 100 in any direct and show a message that they can't do that. And …

Member Avatar
Member Avatar
+0 forum 26

Those clever boffins at the University of Bath, England have managed to develop a machine called [URL="http://dev.www.reprap.org/bin/view/Main/WebHome"]RepRap[/URL] which can, effectively, replicate itself. The boffins themselves describe it as being a 3D printer which can print, or rather produce, real mechanical parts. Perhaps most interesting is the claim that RepRap can actually copy and produce the parts needed to build another RepRap. In other words it is a machine that can replicate itself. RepRap itself stands for Replicating Rapid-prototyper and works by building up the component in layers of plastic to produce something akin to a Lego brick in terms of …

Member Avatar
+0 forum 0

Although it could be argued that your average fanboy has already got the present they wanted this xmas in the continuing growth of Linux in terms of both actual deployment and media popularity, or maybe the arrival of the [URL="http://www.beyondunreal.com/daedalus/singlepost.php?id=11383"]Linux server for Unreal Tournament 3[/URL] or even the fact that the [URL="http://www.bbc.co.uk/iplayer/"]BBC iPlayer[/URL] is now Linux compatible. But no, believe me, when they see the dancing plastic penguin that announces the arrival of new email all that will change. Anyone into weird and wonderful geeky gadgets will probably recall the manic WiFi rabbit that was [URL="http://www.nabaztag.com/en/index.html"]Nabaztag[/URL] and which could tell …

Member Avatar
Member Avatar
+0 forum 3

The End.