how to open a webpage in explorer with blitz3d
Blitz3D Forums/Blitz3D Beginners Area/how to open a webpage in explorer with blitz3d
| ||
H! I have made a demo cd and now I have a problem. --------- In the demo you see some screenshots (webpages) and when I click on that, windows must open a internet explorer window and opening that website. Is that possible ? Thanks |
| ||
yeah should be no problem ,, look up the execute file command ,,, use this to execute explorer.exe here`s an example that opens explorer and takes you to my forever under construction website ; lol ************************************************ filename$="explorer.exe http://www.mavericksrealm.co.uk" Print "Press any key to goto mavericksrealm" WaitKey() ExecFile(filename$) Print "Press any key to quit." WaitKey() ********************************************************* there ya go |
| ||
Yea thanks, I changed in IEXPLORE.EXE then it works fine. See ya GC-Martijn |
| ||
hmmm...If IE is your default browser, surely justExecFile("http://www.BlitzBasic.com/") Would be enough? (It worked for me!) |
| ||
The above example does not work in my PC... and I have IE as my default browser. |
| ||
Yes, it's better not to precise the command (like IEexplore) as the exec command like this (ExecFile("http://www.BlitzBasic.com/")) will get the default browser!! |
| ||
The above example does not work in my PC... and I have IE as my default browser. Eek!? Surely not? Does start->run->www.blitzbasic.com work? |
| ||
. |
| ||
Does start->run->www.blitzbasic.com work? Work PC (w2kpro) = no. **** Home PC (XP) = works! :0 |
| ||
It works both ways for me. (XP, Opera) |
| ||
This opens IE on my XP Pro, even though my default browser is FireFox: Save this as "C:\redir.htm" : <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <META HTTP-EQUIV=Refresh CONTENT="1; URL=http://www.blitzbasic.com/"> </head> <body> Redirecting to www.BlitzBasic.com </body> </html> ExecFile("C:\redir.htm") Does that work for you Mustang? [EDIT] : Saving the file as "redir.html" and calling it, opens FireFox. |
| ||
Does that work for you Mustang? Nope... clicking the redir.html directly works, but Blitz execfile does not. |
| ||
ExecFile("http://www.BlitzBasic.com/") w2kpro=yes for me |
| ||
@Mustang: Thanks. Too bad, it would be nice to have a bulletproof BrowseToUrl() . |
| ||
A foolproof method:ExecFile SystemProperty("windowsdir") + "explorer.exe http ://www.blitzbasic.com" Remove the space between http and :, had to do this to avoid the forum code turning it into a link. |
| ||
Unfortunately, it won't launch your default browser! |
| ||
oops... er, April Fools? |
| ||
Eikon, your code doesn't work for me at all. |
| ||
I wonder how you get into "My Computer" then. If explorer.exe isnt in your windows dir then I'd like to know where it went. Edit: Try the new code, the forum code had removed the http:// and turned it into a link, it didnt work for me in that state either. |
| ||
ExecFile(chr$(34)+"http://www.frecle.net"+chr$(34))Should work on all machines regardless of OS... |
| ||
Holy Moses, Fredborg! That worked even for me! |
| ||
Cool Fredborg, thanks a lot. |
| ||
Fredborg, you legend! That's excellent! |
| ||
Worked for me also :)) |
| ||
Chr$(34) is a fix-all with ExecFile() ;D Good thinking, Fredborg! BTW, the explorer.exe in the system folder is windows explorer, not internet explorer :) |
| ||
Right, thats why I said 'My Computer' wouldnt work without it. When you pass it a web page it opens the IE interface :P |
| ||
This should be added as an example to the online manual? |