Results 1 to 9 of 9
- 10-16-2008, 02:15 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 4
- Rep Power
- 0
- 10-16-2008, 10:17 PM #2
Is this a java programming question?
What class is getactivewindow() in?
- 10-17-2008, 06:36 AM #3
Member
- Join Date
- Oct 2008
- Posts
- 4
- Rep Power
- 0
Its JNI programming.. I am calling windows API using one Jar file (J/Invoke). By using that , we can call method, like User32.GetForegroundWindow(); it will return one integer value corresponds to the active window.
So, After using this, i got hanlde to the window, But I need the path of the active Window.
We can also use System.load("User32"). to get this methods instead of using that JInvoke jar.
If any clarification needs, pls let me knw... :o
- 10-17-2008, 06:43 AM #4
Why would you want to use Windows specific APIs from Java? Java is designed to be platform independant. If you want to write stuff tied to the Windoze API, why not use C# or one of the other .net platforms? Its a ton easier to write Windows code in a Windows language.
- 10-17-2008, 01:14 PM #5
Member
- Join Date
- Oct 2008
- Posts
- 4
- Rep Power
- 0
hi ,
thnx for the reply...
so you are saying that java is not good, when we use windows api or its not possible ?
- 10-17-2008, 02:57 PM #6
What jar file is that class in?What class is getactivewindow() in?
- 10-17-2008, 06:31 PM #7
Anything is possible. Some easier than other.
I'm just pointing out that Java is platform independent. Write once, run everywhere.
If your platform is Windows, a major justification for using Java is gone. And Microsoft does a lot to make it easy to write code that is seemless in their world.
So the decision tree for me is:
if (platform independent critical) use Java
else if (tied forever to Windows) use C# or VB or ...
- 10-21-2008, 04:17 PM #8
Member
- Join Date
- Oct 2008
- Posts
- 4
- Rep Power
- 0
pls check this url for that jar docs ( jinvoke.com), I think it can help me to describe you more than I can....
:o
- 12-01-2008, 02:07 PM #9
Member
- Join Date
- Dec 2008
- Posts
- 1
- Rep Power
- 0
Similar Threads
-
Close Active Window (?)
By dcnorman07 in forum New To JavaReplies: 2Last Post: 10-03-2008, 05:55 PM -
Changing Active Window
By jmHoekst in forum New To JavaReplies: 1Last Post: 06-14-2008, 12:21 AM -
Check Menu active
By Mir in forum AWT / SwingReplies: 0Last Post: 06-12-2008, 06:53 AM -
Active Content enable problem
By kasipandian in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 02-01-2008, 02:15 PM -
Accessing Active Directory
By javaplus in forum Advanced JavaReplies: 1Last Post: 01-04-2008, 11:25 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks