SRL Archive - Java Help and Tutorials

To Freddy and Yakman...and anyone else


osmm

2008-04-20 01:28:42

Since you guys (Freddy and Yakman) seem to run Java around here I got a few questions for ya.

Any ideas on moving the mouse (as we do in SRL)? And same for typing in keybored. Or even locating colors. (Not for runescape…just for general intreset - I'm way over rs).

Also how do I do like an "or" statment,
example:

if (name.equals ("multiplaction"))
OR
if (name.equals ("*"))

into one line?
My guess:

if (name.equals ("multiplaction") || ("*"))

cause I heard || is or, but I'm not sure how correct that is…

Freddy I expect a reply within 2 days or I'm double posting :p jk.


Oh lastly. You guys know any really good java forms I can go to? I saw Yakman and Freddy are prety active here, and to be honest that is the only reason I posted, cause I doubt anyone else will respond with an answer.

Thanks.

bullzeye95

2008-04-20 01:34:27

I'm not a Java person, but I assume that if (name.equals ("multiplaction") || name.equals ("*")) would work

Yakman

2008-04-20 06:48:42

well you shouldnt really make threads addressed to specific people,

and for double posting without good reason we would have the right to punish you :P

also, to put it in a diplomatic way, freddy1990 much prefers delphi, he doesnt enjoy java very much :)

you might want to include benland100 on your next uber spamming thread, he wrote smart in java (and c++)

so do you enjoy making threads like these? how does it make you feel? important? special?
you dont even have the capacity to use google for a bit.

From: osmm
cause I heard || is or, but I'm not sure how correct that is…


why dont you Try It And See
you would:
1. Learn the answer and
2. Not make a thread like this


For the keyboard-pressing, mouse-moving and color-finding, you might want to look at the Robot class

which by the way is the first result when you google "java keyboard pressing"
didnt think of that did you


From: osmm
Oh lastly. You guys know any really good java forms I can go to?


well in java, we generally call that a GUI, which is odd cause you cant really go to them, you can only click on them or look at them.

unless you meant forums,
so if you cant be asked to spell the word properly, look in a dictionary or something, why should we be asked to give you a proper answer?

i've found that sloppy writing more-often-then-not leads to sloppy thinking, those java forums would better off without you.

Freddy1990

2008-04-20 08:31:16

As yakman said, I'm a delphi coder, however, I do know some java ;) Yakman is right, maybe you should try yourself first before posting… Trial and error is the best way of learning…

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html
Logical OR operator: ||

Not 100% sure, but I'd go with:
if (name.equals("multiplaction") || name.equals("*"))

(And I enjoy any language, I just prefer Delphi over any other ;) )

tankbf

2008-04-20 10:21:24

Unless you have a specific reason for using name.equals, I would just say:
if(name == "multiplication" || name == "*");

im not sure if you can macro with java though.

bullzeye95

2008-04-20 12:26:37

Of course you could macro with Java. That's what most, if not all, bots are made in. ;)

HyperSecret

2008-04-20 22:59:07

From: tankbf
Unless you have a specific reason for using name.equals, I would just say:
if(name == "multiplication" || name == "*");

im not sure if you can macro with java though.


ever heard of iBot?

ShawnjohnSJ

2008-08-06 17:07:32

To move the mouse with java… you need to import Robot I think… I don't remember which package it is. But it lets you move the mouse and I think type stuff.

MylesMadness

2008-08-06 20:06:36

From: ShawnjohnSJ
To move the mouse with java… you need to import Robot I think… I don't remember which package it is. But it lets you move the mouse and I think type stuff.
04-20-2008 10:59 PM
Gravedig

Laur€ns

2008-08-13 11:04:17

From: Mylesmadness
04-20-2008 10:59 PM
Gravedig


What he says :)

the scar noob

2008-08-13 11:08:39

From: Laur€ns
What he says :)


You don't have to repeat it..!

-Tsn.