Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!

Shah Vishal

Ranch Hand
+ Follow
since Feb 28, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Shah Vishal

Originally posted by Chad McGowan:
Look at the Robot class in the API.


Thanks..That helped..I have one more question...How do I give 3 KeyEvents together..e.g. If I want to press ctrl+alt+del.... There is a method called keyPress(int code)in Robot class that presses the particular key..How can I get the combination as i mentioned above...
Thanks once again
Vishal Shah
19 years ago
Hi,
Can anyone tell me that how can I move my mouse curson using java application???
Thanks
Vishal Shah
19 years ago
Hi,
Can anyone tell me that how can I move my mouse cursor using java application???
Thanks
Vishal Shah
[This message has been edited by Shah Vishal (edited July 31, 2001).]
19 years ago
Hi,
I want to create a client/server application in which client sends the command to server to open notepad and then write somethings to the notepad. I know client/server concept and I know how to open notepad using Runtime but how to write to the notepad???
thanks in advance...
Vishal Shah
19 years ago
Hi,
I want to create a client/server application in which client sends the command to server to open notepad and then write somethings to the notepad. I know client/server concept and I know how to open notepad using Runtime but how to write to the notepad???
thanks in advance...
Vishal Shah
19 years ago
Hi,
Here is the sample code.

Runtime r = Runtime.getRuntime();
r.exec("d:\\Program Files\\Microsoft Office 2000\\Office\\Winword.exe h:\\ADDRESS.doc");

Hope this helps.
Vishal Shah
-----------
SCJP2
-----------
19 years ago
Hi,
Can you provide me the link for those??
Thanks a lot.
Vishal Shah
-----------
SCJP
-----------
19 years ago
Hi,
I know how americans have got their degrees. Here at our university in florida, students come to us and say they will pay 150-200$ for their data strutures programs. Forget about data structures they dont know simple c or c++ programs like calculating your gpa.....What do you call this??? Real degree with fake education. No wonder if americans are still paying their loans... When a foreign student goes to american university, they have to pay outstate fees for whole 4 years. That's 2-3 times what americans are paying. Still they pay off their loans from their home country...
So forget that only H1-Bs have spoiled the american economy. People are same everywhere....
Thanks
Vishal Shah
19 years ago
Hi,
Is there an API for J2ME, like we have for J2SE?
Thanks
Vishal Shah
19 years ago

You probably want to write a custom class that extends StringTokenizer and then override the methods that you want to enhance. Like so (here I create one that return the number of tokens x 2 when you call countTOkens() ).
code:
--------------------------------------------------------------------------------
public class MyTokenizer extends java.util.StringTokenizer { public Test( String s1 ) { super( s1 ); } public Test( String s1, String s2 ) { super( s1, s2 ); } public Test( String s1, String s2, boolean state ) { super( s1, s2, state ); } public int countTokens() { return super.countTokens() * 2; }}
--------------------------------------------------------------------------------
Sean

Hi Sean,
I think StringBuffer class is a final class so you can't extend it.
Thanks
Vishal Shah
SCJP
19 years ago
Hi,
My name is Vishal Shah and I am looking for junior software development position or web development position in USA.
I am Sun Certified Programmer and I have a BS degree in Computer Science from Florida Atlantic University(Fl, USA).
My emails is: vshah@cse.fau.edu
Resume available upon request.
Thanks
Vishal Shah
19 years ago
Hi,
Is there anyway that you can know that how many drives are there in the computer using java.
Thanks
Vishal Shah
19 years ago
Hi,
Basically what i want to do is that, when you open a word document using exec() then i want to write in that word document through my java application, so that needs keypresses.
Thanks
Vishal Shah
19 years ago
"Are you actually trying to CREATE a KeyEvent, or only to duplicate the EFFECTS of a KeyEvent? Certainly you can Listen for the user to press a Key and then Turn THAT KeyEvent into something else."
Actually what i want to do is that my java code sends the command and automatically particular alphabet is typed through the keyboard.
Thanks
Vishal Shah
19 years ago
Hi,
Is it possible using java, that from the code it presses any key from the keyboard. For an example,
Code presses A-Z,0-9 anything like that from keyboard.
Please help...
Thanks
Vishal Shah
19 years ago