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 


VDS 5 Tools order

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous
View previous topic :: View next topic  
Author Message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Fri Dec 16, 2005 12:39 pm    Post subject: VDS 5 Tools order Reply with quote

Just curious as to how VDS 5 sorts the tools on the Tools menu? They appear to be sorted by the order they were added to the Tools directory. Though changing the file's created & modified dates does not change anything.
_________________
cheers

Dave
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Fri Dec 16, 2005 4:04 pm    Post subject: Reply with quote

Check the HKEY_CURRENT_USERS and HKEY_LOCAL_USERS registry under Commercial Research. I think the tools are listed there, it would be a matter of modifying the order of the entries to get them listed in the order you want.
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Apr 25, 2006 4:24 pm    Post subject: Tools Menu Reply with quote

Do you know how to create one of those menus that read the files in a directory and list it in your script accordingly. That would be useful for sure.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Apr 25, 2006 4:48 pm    Post subject: Reply with quote

How about this? Smile

Code:
  DIALOG CREATE,New Dialog,-1,0,240,160
  DIALOG ADD,BUTTON,bPrograms,10,10,220,140,Show programs in the Windows directory
  DIALOG SHOW

:Evloop
wait event
goto @event()

:bProgramsButton
# Create a filelist
list create,1
list filelist,1,@windir()\*.exe
%%counter = 0
%%menucode =
while @greater(@count(1),%%counter)
  %%menucode = @name(@item(1,%%counter)).exe|%%menucode
  %%counter = @succ(%%counter)
wend
list close,1
dialog popup,%%menucode
goto Evloop

:Close
exit


You can use the "option errortrap" to catch the error which is generated when you click on one of the items in the popup menu so you can find out the name of the item by parsing the event generated by @event() Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Apr 25, 2006 5:41 pm    Post subject: Sweet.... I knew it could be done Reply with quote

I knew you could do it but I forgot how. Thanks.
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Fri Jan 26, 2007 7:44 am    Post subject: Nice Reply with quote

Well that list the files but how do you launch them or add dymanic labels so it launches the associated program?
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jules
Professional Member
Professional Member


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

PostPosted: Fri Jan 26, 2007 10:06 am    Post subject: Reply with quote

This is similar to what my Tech-Pro Utilities menu does.

You use option errortrap to trap the goto invalid label error and then parse the value of the event.

_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Fri Jan 26, 2007 3:52 pm    Post subject: Thanks Jules Reply with quote

That worked like a champ. I was able to get it to work. I set an option that if the file doesnt exist to exit out of the errortrap routing. I typically dont use error trapping that often. Never even thought of using it for something like this. I guess I must wake up think a little bit.

WD

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Miscellaneous All times are GMT
Page 1 of 1

 
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