GetDotted Domains

Viewing Thread:
"VB Shell Scripting"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Mon 01/03/04 at 19:53
Regular
"SOUP!"
Posts: 13,017
I'm fiddling around with Shell Scripting on Visual Basic and the SendKeys command, but I can't seem to work out how to input a URL for a website that opens.

I've got the shell command for opening internet explorer but I'm sure theres a quicker way to just open up a URL.

Help please.
Wed 03/03/04 at 18:22
Regular
Posts: 10,364
Damn, If only you'd asked me this a few years back, i'll go fish around on the net for the code. :P

Declaration:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
(ByVal hwnd As Long, ByVal lpszOp As String, _
ByVal lpszFile As String, ByVal lpszParams As String, _
ByVal LpszDir As String, ByVal FsShowCmd As Long) _
As Long


Sample use of code:-

Private Sub Command1_Click()

Dim l As Long
l = ShellExecute(Me.hwnd, "Open", "http://www.vbworld.com", "", "C:\", vbNormalFocus)
End Sub
Tue 02/03/04 at 19:20
Regular
"SOUP!"
Posts: 13,017
Basically yep.

I know there's a shorter way of doing it without having to use shell commands, which would probably be better!

I just want to click a button and for a website to spring up. Simple.
Tue 02/03/04 at 11:15
Regular
Posts: 10,364
It's years since i've done VB, what exactly are you intending to do?

Open up IE and load a certain website ?
Mon 01/03/04 at 19:53
Regular
"SOUP!"
Posts: 13,017
I'm fiddling around with Shell Scripting on Visual Basic and the SendKeys command, but I can't seem to work out how to input a URL for a website that opens.

I've got the shell command for opening internet explorer but I'm sure theres a quicker way to just open up a URL.

Help please.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan
Everybody thinks I am an IT genius...
Nothing but admiration. I have been complimented on the church site that I manage through you and everybody thinks I am an IT genius. Your support is unquestionably outstanding.
Brian

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.