|
||
|
|
#1 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
been trying to figure out a way to call the build in webbrowser using an ondoubleclick from ingame instead of the Launch Browser. I want to use the built in browser becuase its limited to its uses compare to the players default browser. I haven't got this to work yet though.. is it possible to do??
|
|
|
|
|
|
#2 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Location: In your mom
Age: 27
Posts: 4,762
|
Quote:
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
|
#3 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
yeah bud theres a built in browser in the .net system.. found some info on it.. its a basic barebones browser.. you can script in address bars and what not.. but I was looking to get it just to pop up.. not talking about the launchbrowser that calls the default browser.. heres a link to a site talking about it.. theres tons out there.. wish i would have bookmarked the official .net sites info on it..
click here |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
It doesnt work that way. If you are using the UO client and you launch the browser, it launches the default one. When you "script" for RunUO, thats all server side; none of your code is being sent to the user as .net code. So, Jeff is right.
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#5 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
i am not talking about using a the LaunchBrowser command.. talking about using the print command for the internal webbrowser. its in the .net software... and i believe everyone using razor has that on there pc yes? I was thinking though.. maybe something easier would be just to script a new browser that they have to install instead.. call the program through a script to open it directly, that might be easier to do what i am looking for.
|
|
|
|
|
|
#6 (permalink) |
|
Lurker
Join Date: Jan 2006
Location: Mid-West, USA
Posts: 7
|
As was noted above, the .NET browser control cannot be used in this case, unless what you want is to open the browser window on your SERVER, since that's where the code is running.
On the client, it's not even .NET code you are interacting with - it's a plain-old Win32 binary. You cannot 'script' the client from the server (and in fact, the UO client can't really be 'scripted' at all, beyond the simple macros built in.) The packet referenced above to get the client to open the user's own web browser is the only way to really do what you want here, without having to have external software involved. So you mentioned the solution yourself, if you absolutely need to do this; Force your players to download a separate program that you write in .NET, and have that program somehow open or view the page you want to display. But it would probably just be much easier just to use the uo client's built in browser opening functionality, and just make the page you are pointing to compatible with all the major browsers, so you don't need to box your players into needing a particular browser. ... Also, just for the record; the 'built in' .NET web browser control is actually just whatever current version of Internet Explorer the user has installed, without the normal chrome of the browser. The control is used in a Windows Forms program to implement a browser within the program. It is not a standalone web browser on it's own. Last edited by majorcomet; 07-03-2008 at 11:48 PM. |
|
|
|
|
|
#7 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
from what i have read it is not a form of the IE browser installed.. but hey I could be wrong
the easist way to get what i want would def. be a standalone browser... I am looking for something I can control a bit more appearance wise, as well as launching the program I want to be able to shut it down from within the game. I want it too look more like how shadowbox comes up.. with no edges at all.. just a floating box. that will centered not really full screen about 300x400.. and when trying to access this without interacting with in the game it comes up with a page that says sorry this cannot be accessed directly. at anyrate thnx for all the input though =P.. wish me luck. lol never did anything like this before but there is tons of info about it out there so shouldnt be to hard. |
|
|
|
|
|
#8 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Location: In your mom
Age: 27
Posts: 4,762
|
Quote:
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO Last edited by Jeff; 07-04-2008 at 01:50 AM. |
|
|
|
|
|
|
#9 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
done with the special "browser/program" they will have to download, Ill script in special stones that will launch this browser. using
System.Diagnostics.Process.Start(); and I believe theres a kill command as well. to close the window. ![]() |
|
|
|
|
|
#10 (permalink) |
|
Forum Expert
Join Date: Nov 2003
Location: Illinois, USA
Age: 21
Posts: 2,911
|
These in-game stones cannot interact with anything on the client's computer. Any .Net programming you do in server-side scripts will only effect things on the server side, not the client side. So your program will either a) have to monitor the opening of the default browser whenever UO is open, somehow check to see if it is opening your page, stop it from opening and then open its own browser or b) convince the user to make your program the default browser.
__________________
Useful links (Use them or die in a fire!!!): Ultimate Little Guide, C# Tutorials & Docs, RunUO Basic Scripts, Run UO How to..., Configure server for connections, Scripting for Dummies, Common Problem Solutions, FAQ Forum, RunUO Wiki, Basic Generics, Xml Tutorial |
|
|
|
|
|
#11 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
going to test my script tonight if i finish it.. but heres the call method..
System.Diagnostics.Process.Start("C:/dduoweb.application",http://darkdays.zrockonline.net/test.html); there for all they will have to do is download the 5kb app drop it under there C:/ and it will call it.. from what i have been playing with this should work just fine. no need to make it the default browser using script in game it will open it, then will have a close method built in as well once i am done. |
|
|
|
|
|
#12 (permalink) | |
|
ConnectUO Creator
Join Date: Jan 2004
Location: In your mom
Age: 27
Posts: 4,762
|
Quote:
System.Diagnostics.Process.Start("C:/dduoweb.application",http://darkdays.zrockonline.net/test.html); will start on the server not the client..... why the fuck are you not fucking listening to us..... jesus fucking christ....its probably because your a ginger....
__________________
Jeff Boulanger ConnectUO - Core Developer Want to help make ConnectUO better? Click here to submit your ideas/requests Use your talent to compete against other community members in RunUO hosted coding competitions If you know XNA (even if its just a little) or are a good artist(2d or 3d) and are interested in making games for a hobby send me a pm or drop by #xna in irc.runuo.com. I'm looking to put together a small game development team. Please do not pm me for support. If you are having issues please post in the appropriate forum. Thanks for your continued support of both ConnectUO and RunUO |
|
|
|
|
|
|
#13 (permalink) | |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
Quote:
sorry but as smart as you are bud.. I dont see how you can not understand this.. if process.start - started the process on the servers side not the clients them launchbrowser wouldnt work.. but thats all that command is - theres a way to do it.. just like starting the default browser with Launchbrowser, you can start other shit on someones pc... instead of trying to insult people, & trying to say something is impossible.. why dont you use that big brain of yours and fix your software bud. because right now your being a jackass. |
|
|
|
|
|
|
#14 (permalink) |
|
Account Terminated
Join Date: Jul 2006
Age: 29
Posts: 240
|
well got it working.. somewhat.. It is starting up on the clients side(( not on the server machine *wink* )), but my URL is not sending through correctly.. must have missed something on the browser end of it. and currently dont have a close method scripted into the program or server.. oh well will have to wait tell sunday to mess with everyone have a good 4th of july.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|