Newbie link fra sub?
Jeg bruger et program der hedder MountFocus til at lave onscreen keyboards med til at styre en touch skærm. Nu er mit problem bare at den vil have funktionerne skrevet i VBScripts som jeg intet kender til.Skriver lige et citat fra help filen:
-----------------------------------------
Execute a file.
ShellExecute Operation, File, Parameters, Directory: string
Description
Call ShellExecute to open a program, file, web page or any other item that can be opened from Windows. All four parameters are strings. The first parameter, Operation, can have one of the following values:
"open" Open the file specified in the File parameter. The File can be an executable file, a document, a folder to open or even a web page.
"print" Print the file specified in the File parameter. The File should be a document file.
"explore" Explore the folder specified in the File parameter.
The File parameter is the file to operate on (see table above). If the File is an executable file (a program) the Parameters parameter may contain any command line parameters that you want to add. Finally the Directory parameter is the directory where you want the program to start (default directory).
Note that the Runtime Keyboard must have its AllowExecute setting set to True for the ShellExecute method to work. If the AllowExecute setting is set to False, calls to the ShellExecute method will simply be ignored.
----------------------------------------
Det jeg gerne vil er så at åbne et link til en internet side, det har jeg prøvet at gøre således:
Sub LinkButtonDown (Sender)
Dim Pg
Set Pg = Sender.ShcellExecute( "open", "www.minside.dk" )
Pg.Activate
End Sub
Det virker dog ikke, da jeg sikkert ikke har fattet en meter.
Ville meget gerne have den til at åbne i full screen mode i exploren hvis det er muligt, men ellers bare åbne en explore og kaste min side op.