We studied basic stupid java, where all you did was draw pictures with "sop" statements, and program, HARDCODED, "Now what if i entered $10 for that item, how much change would i get back"
waiiiit... "now wat if i went into your code and changed that value"
lol and alot more junk, but i decided, THANKFULLY, to teach myself on my own.
Unforunatly, the bad thing about java is so far, as i can see (and this is from a consistent perspective) that theres very little, if not, ZERO ground for beginngers, all the stuff isn't dum'd down for you (take for example when i google questions, they simply refer to a class page on sun's website, but even then, with the crappy examples, i (AND ALOT OF OTHER PPL << just self reassuring message to myself to sustain my pride hehe) cannot understand it.
Something even worse is, i live in canda, in the sense, we do "turing", more precisely, is viable only in ontario (which is a province in a country called canada) In that language, it dums it down for you alot, and so the commands are easy, but u cant get too far, in terms of building complexity. What this means is that there things i can do on there, but not on here, java.
Which is why, this is my first time ever asking for help in java, for if i cant solve the problem below, il just resort to building programs upon a dead language, that reigns through the population of approx 10,000.
First off all i dont understand this swing dum stuff, i tried googling for many days, and all of that other dum stuff, as u may have noticed, its called dum, cause i dont understand it yet, itl become smart stuff, when i do though .
Either way; starting off from 0.. scratch...ground zero...or just zero... of java... i got this far.. (p.s i dont even know wat a project is, or how to call class's from each other LOL, all i know is wat a class file is)
i somehow, learned 1 command, and OMG from that one command, i used my brain (left side of it only, the right side (artistic) doesnt mind sleeping)
that one command, was
Robot myRobot = new Robot();
and from there, i learned 3 other sub commands,
myRobot.mouseMove(x,y);myRobot.delay(time);myRobot.mousePress(InputEvent.BUTTON1_MASK) myRobot.keyPress()
if u know more than me, then just know im better than u at everything else.. hehe
either way, i need help
i wrote several programs with these 3 commands of line, and set up em in methods and etc (i dont know how to return a value from method)... but one program, made me stuck..
if i can figure it this one problem i have, THEN OMG il learn 4 commands, thats like omg 4^4= 64 possibilities! dudes, i can make so many programs out of that, that does sick things,
either way before i go and ask, read this, i made several programs, using those 3 lines of commands, that all u have to do is click, and it directs your mouse (MOVES AND TYPES FOR YOU) like a robot! to the designated place, ie you wanna chk ur bank account or face book? itl do it for you. and then i wanted to make another that would take you to your lets stay bank page, BUT THIS IS WAT I HARD TIME ABOUT! AND IL ASK THIS PROBLEM IN ANOTHER POST, but was essentially was supposed to take picture of screen (i googled many times, for many hours, tryin to find a viable solution for this) and then from there, it interprets the image u just saved, and goes and does logic by analyzing pixel by pixel, and in a simple page, without u havin to go access your bank page, it puts it u p for you, like in a small click of hitting the .exe file, it tells you....
either "OMG YOU OWE MORE MONEY AS YOUR BALANCE IS NOW:: X AT THIS TIME Y" and etc lol
but I like i said in bracket above, this is for another thread, as i feel already POWERFUL with 3 commands i know, so its okay atm. ACtually i feel powerful only because i hope someone will help me increase the number to 4!!
Either way my present problem is very simple, very difficult for me, (tried googling SO MANY TIMES, GOOGLE FEELS SERVER DRAG FROM MY ABUSE)
;; kk serious now;;;
i wrote up a simple program, (IF U KNOW WHERE TO APPLY IT, YOU WILL FEEL POWERFUL LIKE ME, ELSE :rockon: )
it goes like this, i hard coded mouse coordinates, meaning i hard coded values for where the mouse should move to, and it clicks on those coordinates;
seems simple;
this is wat i want,
i want the program to run like this; this is the 4th command im asking for;
when the USER (right) CLICKS ANYWHERE! it saves that mouse coordinate, or its x, y values.
if that was easy for you, then write me up a program thats in a loop, that prints out the mouse coordinates, because to find specific coordinates of mouse, i hav to guess and check lol;
it should go like this;
start with endless loop;
for (int x= 1000; x>0; x--) {
(your command on how u retrieve mouse coordinates here)
System.out.println("X value is " + X + "Y value is " + Y);
}
this holds 2nd priority, what holds first priority is the person who can teach me 1 more command line, that will put me up to 4, on how to save mouse coordinates when they click.
ive gotten very far in java, and i like it because it requires logic, but it makes me very upset, when i have syntax issues, il nEVER EVER EVER EVER EVER EVER EVER EVER EVER EVER ask, or be man enough to ask, if the issue is a logic one only, because then i shouldnt be programming java in the first place duhhhh....
i rmember when i was writing my 3k line code, i was alone, lonely, with my logic, teacher wouldnt help me, and so, only excuse i can use for help is when its a syntax issue, lik its not my fault i dont kno my abc's! DUH!
either way thanks...
ps that 3k line code program, omg if u saw it, it would of amazed you!!!!!!!!!!!!!!!!!