Omnimaga
General Discussion => Technology and Development => Computer Programming => Topic started by: JoeyBelgier on October 18, 2009, 12:42:09 pm
-
Ehrmm, mah question is: how can you make a prgm with VB that when you want to open it, it opens your standard browser and opens a specific sit in it
Example: A program that opens Omnimaga
a desktop icon of it
and when u click that icon, Omnimaga opens in yr browser
anyone know this is possible/how to do this?
I use Microsoft Visual Basic 2008 Express Edition btw, but I just started to learn to program in it D:
-
I'm not sure about doing this in VB, but here's a way to do it with a Vista batch file:
1) Find the location of "firefox.exe" on your computer (on my sister's Vista laptop, it was "C:\Program Files (x86)\Mozilla Firefox\firefox.exe". From now on I'm going to use "FFPATH" for this location (including the "firefox.exe"), since it's probably different for you and I'm lazy.
2) Now, create a batch file (I think the extension is .bat), which I'll call "Stuff.bat" for now.
@echo off
FFPATH http://www.omnimaga.org
You can put whatever address you want where the "...omnimaga.org" is (the "@echo off" is just so that it doesn't show the command line).
So on my sister's laptop it would be
@echo off
C:\Program Files (x86)\Mozilla Firefox\firefox.exe http://www.omnimaga.org
Now you should just be able to click on "Stuff.bat" and it will open the site in firefox.
-
There is an even easier way to do it with bookmarks! Just resize your browser window so you can see both the desktop and the omnimaga homepage at the same time, and then drag the [Home] button onto your desktop. A shortcut should be created! :D
-
There is an even easier way to do it with bookmarks! Just resize your browser window so you can see both the desktop and the omnimaga homepage at the same time, and then drag the [Home] button onto your desktop. A shortcut should be created! :D
Quit taking the fun out of it! j/k
Cool, I didn't know you could do that.
-
omg
how dumb could I be nod to try that since I already did it XD
I just forgor about the option XD
aaahahaha
-
:D ironically, it was my grandfather who figured it out, not me. He had been doing it for a long time to bookmark all of his sites.
-
nice :D
lol, the day my grandfather figures out how to open the box of a computer... :p
-
My grandfather actually can :o, but my granny needs some more time :D
-
nice :D
lol, the day my grandfather figures out how to open the box of a computer... :p
I wonder if my grandmother even knows how to turn ON a computer. She had trouble turning ON/programming a VCR or DVD player a few years ago
My mom didn't had much problems with computers, except that when she started using them again in 2004, the last time she previously used one to work on it was in 1992, so she was still very late in computer software technology. Now she browses the web, write texts, play some games, etc, altough she still use IE :D
-
To do this in VB, I believe it would just be Shell("http://www.omnimaga.org"), though I may be missing a parameter or two. Intellisense should pick up on it.
-
altough she still use IE :D
Firefox ftw D: