| View previous topic :: View next topic |
| Author |
Message |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri Dec 16, 2005 12:39 pm Post subject: VDS 5 Tools order |
|
|
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 |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Dec 16, 2005 4:04 pm Post subject: |
|
|
| 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 |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Apr 25, 2006 4:24 pm Post subject: Tools Menu |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Apr 25, 2006 4:48 pm Post subject: |
|
|
How about this?
| 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()  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Tue Apr 25, 2006 5:41 pm Post subject: Sweet.... I knew it could be done |
|
|
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 |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Fri Jan 26, 2007 7:44 am Post subject: Nice |
|
|
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 |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Jan 26, 2007 10:06 am Post subject: |
|
|
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 |
|
 |
webdaddy Contributor


Joined: 14 Nov 2004 Posts: 151 Location: Raleigh NC
|
Posted: Fri Jan 26, 2007 3:52 pm Post subject: Thanks Jules |
|
|
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 |
|
 |
|