| View previous topic :: View next topic |
| Author |
Message |
Luigi Grandmaster Cheater Supreme
Reputation: 1
Joined: 24 Mar 2008 Posts: 1083
|
Posted: Thu Jul 23, 2009 8:07 pm Post subject: [VB6]Putting a java application into a form |
|
|
What if I wanted to put the game itself here onto a form? I honestly have no clue how to do it.
Full detail:
Lets just say the game (runescape) is blah.jar. Since I cannot find it via source, I want to put it on a form. I want to able to import blah.jar and smack it onto the form.
|
|
| Back to top |
|
 |
Strider96 Master Cheater
Reputation: 1
Joined: 20 Jan 2008 Posts: 289 Location: [email protected]
|
Posted: Fri Jul 24, 2009 4:50 am Post subject: Re: [VB6]Putting a java application into a form |
|
|
| Noz2012 wrote: | What if I wanted to put the game itself here onto a form? I honestly have no clue how to do it.
Full detail:
Lets just say the game (runescape) is blah.jar. Since I cannot find it via source, I want to put it on a form. I want to able to import blah.jar and smack it onto the form. |
Personally I don't think it will work because JAVA/SUN have no activx plug-in hence you won't be able to put it into a form
Plus away to do it is...:
Add the web browser Plug-in
Then set the URL to the runescape server page.
_________________
|
|
| Back to top |
|
 |
Luigi Grandmaster Cheater Supreme
Reputation: 1
Joined: 24 Mar 2008 Posts: 1083
|
Posted: Fri Jul 24, 2009 10:41 am Post subject: Re: [VB6]Putting a java application into a form |
|
|
| Strider96 wrote: | | Noz2012 wrote: | What if I wanted to put the game itself here onto a form? I honestly have no clue how to do it.
Full detail:
Lets just say the game (runescape) is blah.jar. Since I cannot find it via source, I want to put it on a form. I want to able to import blah.jar and smack it onto the form. |
Personally I don't think it will work because JAVA/SUN have no activx plug-in hence you won't be able to put it into a form
Plus away to do it is...:
Add the web browser Plug-in
Then set the URL to the runescape server page. | That would work (will work) but all I want is the ad to be gone, so the game can go full screen. (Full screen is members only).
And now I'm working with VB.net after installing it last night.
|
|
| Back to top |
|
 |
Strider96 Master Cheater
Reputation: 1
Joined: 20 Jan 2008 Posts: 289 Location: [email protected]
|
Posted: Fri Jul 24, 2009 12:06 pm Post subject: Re: [VB6]Putting a java application into a form |
|
|
| Noz2012 wrote: | | Strider96 wrote: | | Noz2012 wrote: | What if I wanted to put the game itself here onto a form? I honestly have no clue how to do it.
Full detail:
Lets just say the game (runescape) is blah.jar. Since I cannot find it via source, I want to put it on a form. I want to able to import blah.jar and smack it onto the form. |
Personally I don't think it will work because JAVA/SUN have no activx plug-in hence you won't be able to put it into a form
Plus away to do it is...:
Add the web browser Plug-in
Then set the URL to the runescape server page. | That would work (will work) but all I want is the ad to be gone, so the game can go full screen. (Full screen is members only).
And now I'm working with VB.net after installing it last night. |
Well here is a code for a pop up blocker (taken from some website_:
| Code: | Private Function IsPopupWindow() As Boolean
On Error Resume Next
If WebBrowser1.Document.activeElement.tagName = "BODY" Or WebBrowser1.Document.activeElement.tagName = "IFRAME" Then
IsPopupWindow = True
Else
IsPopupWindow = False
End If
End Function
Private Sub webbrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frm As Form1
Cancel = IsPopupWindow
If Cancel = False Then
Set frm = New Form1
Set ppDisp = frm.WebBrowser1.object
frm.Show
End If
End Sub |
_________________
|
|
| Back to top |
|
 |
Luigi Grandmaster Cheater Supreme
Reputation: 1
Joined: 24 Mar 2008 Posts: 1083
|
Posted: Fri Jul 24, 2009 1:22 pm Post subject: Re: [VB6]Putting a java application into a form |
|
|
| Strider96 wrote: | | Noz2012 wrote: | | Strider96 wrote: | | Noz2012 wrote: | What if I wanted to put the game itself here onto a form? I honestly have no clue how to do it.
Full detail:
Lets just say the game (runescape) is blah.jar. Since I cannot find it via source, I want to put it on a form. I want to able to import blah.jar and smack it onto the form. |
Personally I don't think it will work because JAVA/SUN have no activx plug-in hence you won't be able to put it into a form
Plus away to do it is...:
Add the web browser Plug-in
Then set the URL to the runescape server page. | That would work (will work) but all I want is the ad to be gone, so the game can go full screen. (Full screen is members only).
And now I'm working with VB.net after installing it last night. |
Well here is a code for a pop up blocker (taken from some website_:
| Code: | Private Function IsPopupWindow() As Boolean
On Error Resume Next
If WebBrowser1.Document.activeElement.tagName = "BODY" Or WebBrowser1.Document.activeElement.tagName = "IFRAME" Then
IsPopupWindow = True
Else
IsPopupWindow = False
End If
End Function
Private Sub webbrowser1_NewWindow2(ppDisp As Object, Cancel As Boolean)
Dim frm As Form1
Cancel = IsPopupWindow
If Cancel = False Then
Set frm = New Form1
Set ppDisp = frm.WebBrowser1.object
frm.Show
End If
End Sub |
| It's not a popup. Just look at the top here: http://www.runescape.com/game.ws?m=0&j=1
|
|
| Back to top |
|
 |
|