How to select a java aplication? In a website or a window?

First of all Hi everybody there!

I was wondering if someone could help me with my project, SInce im quite new to VB and still need some experience.

My question is how can i make the program select a java aplication from a website or a window And if its possible how can i get the name of the java aplication

It would really help me... All help apreciated

Thanks in advanced

Saskot




Answer this question

How to select a java aplication? In a website or a window?

  • Jeremy Schneider

    This is possible but I'm not sure how reliable it will be. The first step is to locate the window with the Java application running. You can use the EnumWindows API to enumerate all of the windows open on the desktop. Then use the GetWindowText method to find out the text of the window. Assuming you know the title of window this will work.

    From there you can use the SendMessage API to simulate keyboard presses for that window. Here's is an article on CodeProject that details how to simulate key presses in other windows.



  • Simerjeet

    Sorry for not being specific wat i meann is
    Image there is a java chat in a website
    Image that the window is open
    And that you want the program to select the window and then select the chat in the window
    So then for example if u want the program to type "Hello" in the java aplication
    It will type it in the java aplication
    Dont worry im not making a spammer or anything like that its just an example
    Thanks

  • Carel Greaves

    hmm so no one can help me with this
    ok if not do u guys now a website or file where u have all the commands possible for MSDN
    2005



  • Ted.

    Sorry this post wasn't answered first time around.

    What do you mean by Java Application Are you trying to navigate to the applet tag in a website If not can you provide a more specific example as to what you are trying to do.



  • DevanDanger

    Hmm this means its not possible right
    Or do i just need to wait more.. sorry if its a noobie question but im a beginner in VB 2005


  • cplusplus1

    Hmm thanks il try it..



  • How to select a java aplication? In a website or a window?