Page 1 of 1 1
Topic Options
#185977 - 2008-03-05 01:03 PM Internet links/shourtcuts
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
Hi all, im trying to get kix to make som links/shortcuts for the user at the login script. Can it do that? and is its possible to make it in the useres farvorits?
Top
#185979 - 2008-03-05 01:58 PM Re: Internet links/shourtcuts [Re: asco]
Witto Offline
MM club member
*****

Registered: 2004-09-29
Posts: 1828
Loc: Belgium
http://www.kixtart.org/UDF/
Look for WshShortcut at the left side.
There are two of them.

Top
#185994 - 2008-03-05 08:42 PM Re: Internet links/shourtcuts [Re: asco]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Depending on the type of link you want to add there is also

AddToMyNetworkPlaces

Top
#186003 - 2008-03-06 08:20 AM Re: Internet links/shourtcuts [Re: Witto]
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
 Originally Posted By: Witto
http://www.kixtart.org/UDF/
Look for WshShortcut at the left side.
There are two of them.


Im at a shark to kix. so the wshshourtcut makes no seens to me. Can you plz giv me and exsampel?

Top
#186004 - 2008-03-06 08:20 AM Re: Internet links/shourtcuts [Re: NTDOC]
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
 Originally Posted By: NTDOC
Depending on the type of link you want to add there is also

AddToMyNetworkPlaces


I want to add a shourtcut to an homepage

Top
#186005 - 2008-03-06 08:33 AM Re: Internet links/shourtcuts [Re: asco]
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
and is says that you need Windows Scripting Host (ActiveX Control). Is it somthing intergratet in xp/2003 and so on... or is it somthing you download
Top
#186006 - 2008-03-06 09:02 AM Re: Internet links/shourtcuts [Re: asco]
asco Offline
Fresh Scripter

Registered: 2007-10-25
Posts: 25
neverminde works now. but thanks!
Top
#186007 - 2008-03-06 09:48 AM Re: Internet links/shourtcuts [Re: asco]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Okay well here is an example for you to look at.

 Code:
Break On
Dim $SO
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('WrapAtEOL','On')

Dim $HKCUSMWCV,$Desktop

$HKCUSMWCV  = 'HKCU\Software\Microsoft\Windows\CurrentVersion'
$Desktop    = ReadValue($HKCUSMWCV+'\Explorer\Shell Folders','Desktop')
WshShortCut($Desktop + "\KiXtart Forum.url","http://www.kixtart.org")

Function WshShortCut( $path, $targetpath, optional $arguments,$startdir,$iconpath,$style)
Dim $shell,$shortcut
$shell = CreateObject('wscript.shell')
 If $shell
  $shortcut = $shell.createshortcut($path)
  If $shortcut
   $shortcut.targetpath = $targetpath
   If $arguments
    $shortcut.arguments = $arguments
   Endif
   If $startdir
    $shortcut.workingdirectory = $startdir
   Endif
   If $iconpath
    $shortcut.iconlocation = $iconpath
   Endif
   If $style
    $shortcut.windowstyle = $style
   Endif
   $shortcut.save
   $shortcut = 0
  Endif
  $shell = 0
 Endif
 Exit @error
EndFunction

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.043 seconds in which 0.021 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org