Shortcut object help without dozens of !!!'s
Tuesday, May 23, 2006 by weralacroix | Discussion: DesktopX
Reply #3 Tuesday, May 23, 2006 10:29 PM
Reply #4 Tuesday, May 23, 2006 10:43 PM
Reply #5 Wednesday, May 24, 2006 4:12 PM
Reply #6 Wednesday, May 24, 2006 4:40 PM
| how did you change my title! |
Admins have absolute power.[

Reply #7 Thursday, May 25, 2006 6:36 AM
Tried to answer this the other day on IRC..
1. Make the Object you want to be the shortcut a LAYER not Shortcut object.
2. add this code to the object:
Dim Shortcut
Sub Object_OnScriptEnter
Shortcut = "d:\desktopx" '--Change this to whatever shortcut you want to use
End Sub
Function Object_OnLButtonUp(x,y,dragged)
If dragged = False Then
On Error Resume Next
Set objShell = CreateObject("WScript.Shell")
objShell.run (Chr(34)&shortcut&Chr(34))
Set Sh = Nothing
End If
End Function
What this does is really simple, you change the "Shortcut" value to whatever you want it to open.
- If you put in "C:\", it opens Explorer with that drive opened
- if you put in a exe it opens that exe file
- if you put in "C:\my documents" it will open that folder
Hope this helps
Reply #8 Tuesday, July 4, 2006 5:21 AM
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Tuesday, May 23, 2006 10:01 PM
1. That title is TOO LONG! Eek!
and
2. That title is not very descriptive, is it?
Why not "DX help - Controlling a shortcut object", instead?
I can't answer your question anyhow, sorry mate! LOL..
Moderators/admins: This excessively long title is grossly breaking this site in Firefox - Can it be shortened by anyone?
http://www.causticfx.com/wc_broken.gif
See whatcha did to the place?