PDA

View Full Version : Really simple maxscript question - one button, 3 websites.


biggyninja
04-06-2009, 03:47 PM
Hi guys, Ive been tearing my hair out over this, its probably really simple but i cant find it. What Iam looking to do is create a simple button in a rollout, which goes straight to a website (an actual button as opposed to hyperlink).
On a related note, I would also like to know how to open up 3 websites at the same time when pressing this button.

Thanks guys.

RobGalanakis
04-06-2009, 04:04 PM
ShellLaunch "\"C:\\Program Files\\Internet Explorer\\iexplore.exe\"" "http://www.tech-artists.org"

I'm sure you can figure out what to change :)

biggyninja
04-06-2009, 04:28 PM
yeah, cheers rob. sweet.

ZeBoxx2
04-07-2009, 12:20 AM
eep.. don't force users to use Internet Explorer :(

To upen a URL with the user's configured browser for the http protocol:
shellLaunch "http://www.cgsociety.com/" ""

RobGalanakis
04-07-2009, 02:28 AM
eep.. don't force users to use Internet Explorer :(

To upen a URL with the user's configured browser for the http protocol:
shellLaunch "http://www.cgsociety.com/" ""

I tried that from the command line and it doesn't work (that was my first hope, that it'd work, because I ****ing hate IE like everyone else). I didn't try it with ShellLaunch and it appears to work. I am scratching my beard. Why is that?

ZeBoxx2
04-07-2009, 02:31 AM
I am scratching my beard. Why is that?
Because it is nice and scruffy :)

I think the command line equivalent is more like:
start http://www.cgosociety.com/ [parameters]

LoneRobot
04-07-2009, 08:45 AM
I think Rob's moustache looks very smart, although he does look younger on the TechArtists forum. ;)


And just to add to what the others have posted, Kameleon posted a dotnet method in a thread earlier this week. nice one Art!

rollout WebTest "" width:162 height:49
(
button btn_site "interwebulator" pos:[5,5] width:151 height:38

on btn_site pressed do
(
process=dotnetclass "System.Diagnostics.Process"
process.start "http://www.dimensao3.com/al"
process.start "http://www.lonerobot.com/dotnetarticles.html"
process.start "http://www.tech-artists.org"
)
)
createdialog Webtest

CGTalk Moderation
04-07-2009, 08:45 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.