forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Shortcut DSU
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 2:01 pm    Post subject: Reply with quote

Ok. I have updated it yet again. Serge: it should, please give it a try and let me know. I have only tested it on XP Pro. Still trying to work out bugs.

Version 2.0

Commands:
One - Add one shortcut
List - Add multi shortcuts
Remove - Remove a shortcut
RemoveGroup - Remove an empty group

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Apr 06, 2004 2:15 pm    Post subject: Reply with quote

hi chris,

bad news i'm afraid

when i run the following code

Code:
#include c:\windows\desktop\shortcut.dsu

List create,1

list add,1,@windir()\explorer.exe C:",Explorer C"
list add,1,@windir()\explorer.exe D:",Explorer D"
list add,1,@windir()\explorer.exe E:",Explorer E"
list add,1,@windir()\explorer.exe F:",Explorer F"
list add,1,@windir()\explorer.exe R:",Explorer R"

Shortcut list,Test,1

stop


i get 2 error messages:

1. stopped at line 91 in file shortcut.dsu

2. operation invalid when no dialog showing at line 11 (the SHORTCUT LIST, TEST,1 line)

sorry about that...it certainly sounds like a promising and useful dsu

does it work also for desktops and quickbars? just asking...

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Apr 06, 2004 2:16 pm    Post subject: Reply with quote

Stopped at line 16.

Create shortcut still works, remove shortcut is a NO-GO.

I think I stick to your instructions but perhaps you could mail me your test script to rule out any problems there:

nielsen@dread.dk

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Apr 06, 2004 2:28 pm    Post subject: Reply with quote

Made a more complete test script. Now I can run create part without errors Smile

Remove part still does not work.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 2:31 pm    Post subject: Reply with quote

There does need to be a dialog created for One and List to work. Here is my example code. I thought I would post it here Dr Dread so others could try it.

Code:

#Include Shortcut.dsu

DIALOG CREATE,New Dialog,-1,0,240,160

List create,1
list add,1,@windir()\explorer.exe C:",Explorer C"
list add,1,@windir()\explorer.exe D:",Explorer D"
list add,1,@windir()\explorer.exe E:",Explorer E"
list add,1,@windir()\explorer.exe F:",Explorer F"
list add,1,@windir()\explorer.exe R:",Explorer R"
Shortcut list,Test,1

Info The previous shortcuts should have been created in the Test group.

Shortcut Remove,Test,Explorer C
Shortcut Remove,Test,Explorer D
Shortcut Remove,Test,Explorer E
Shortcut Remove,Test,Explorer F
Shortcut Remove,Test,Explorer R

Info The shortcuts should have been removed.

Shortcut removegroup,Test

Info The group Test should have been removed.

stop

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Apr 06, 2004 2:53 pm    Post subject: Reply with quote

Same effect.

Creation works - removal doesn't.

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 2:55 pm    Post subject: Reply with quote

Do you get an error when the removal doesn't work?
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Apr 06, 2004 3:01 pm    Post subject: Reply with quote

Nope. No error msg - it just doesn't remove anything Wink

Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 3:05 pm    Post subject: Reply with quote

Damn. Well, All the remove command is:

Code:

%2 = Group
%3 = LinkName
File delete,@windir(Start Menu)\Programs\%2\%3".lnk"


Try this. It if doesn't work, then it's not my DSU. It's something on your end in deleteing files.

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Tue Apr 06, 2004 3:32 pm    Post subject: Reply with quote

Ahaaa. A couple of problems with that:

Firstly, you cannot hardcode folder names and expect them to work in foreign Win versions. So in that
case
Code:
File delete,@windir(Programs)\%2\%3".lnk"

would make more sense.

Secondly, there's a diff between Current User and All Users. Your DSU creates links
in my All Users tree, should they should be removed from there also...

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 3:41 pm    Post subject: Reply with quote

Embarassed Your right. I forgot about the Programs option of @WinDir(). Will fix that up soon. Embarassed
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 5:13 pm    Post subject: Reply with quote

Ok. I found out how to fix it. No Prob. I am in the process of it now, and it does not use File delete, or Directory delete any more that way it should delete the right shortcuts.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 6:21 pm    Post subject: 3.0 Ready Reply with quote

Ok. I think I have got everything worked out now. Version 3.0 has new syntax and the code has been completely rewritten. Give it a try.

http://www.vdsworld.com/index.php?page=search&keywords=Shortcut%20DSU&extend=1

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue Apr 06, 2004 6:41 pm    Post subject: Reply with quote

Wow. From version 2.0 to 3.0 in less than a day. Bit different from VDS... Laughing
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1751
Location: Space and Time

PostPosted: Tue Apr 06, 2004 6:47 pm    Post subject: Reply with quote

Laughing I had some free time. Very Happy
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 5 Units All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group