View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Jan 17, 2004 1:20 pm Post subject: Autocomplete program for the VDS IDE |
|
|
Hello all,
I've made a tool which lets you autocomplete part-typed commands and functions. To autocomplete a function or command, press the TAB key. Next to the autocomplete part of the program, it will also give you help about the parameters which should be used.
For the DLL and DSU developers over here, you can also add your own custom functions and commands to the list, by editing the "function.lst" and "command.lst" files. More info about this can be found in these files.
Please note that this still is a beta version. Use it at your own risk.
The program can be downloaded [ here ]. _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Last edited by Skit3000 on Sun Feb 20, 2005 12:34 pm; edited 2 times in total |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jan 18, 2004 1:32 am Post subject: |
|
|
sounds great skit...am downloading it now and will check it out later today
serge _________________
|
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Mon Jan 19, 2004 3:21 am Post subject: |
|
|
hi skit,
it seems to work well except for when shutting down windows and the program is running in the system tray...it generates an error...if you need to know the error number and line, let me know as i omitted to record it last night when i shutdown my laptop
can i also suggest that the tab key not be used to autocomplete as i use that key a great deal when indenting my code with if/then and repeat/until...i'm not sure what other keys could be used perhaps an F. key?
good work otherwise
serge _________________
|
|
Back to top |
|
|
PGWARE Web Host
Joined: 29 Dec 2001 Posts: 1562
|
Posted: Mon Jan 19, 2004 5:44 am Post subject: |
|
|
How about using the ` key I doubt any really uses this for anything and it's near the tab key (atleast on my laptop) |
|
Back to top |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jan 19, 2004 6:14 pm Post subject: |
|
|
PGWARE wrote: | How about using the ` key I doubt any really uses this for anything and it's near the tab key (atleast on my laptop) |
Same on a regular-sized keyboard too. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Mon Jan 19, 2004 6:39 pm Post subject: |
|
|
I'll change the key to `, as you requested... And Serge, could you tell me the error code and line? I really want to know the error, since it doesn't crash over here when I close the VDS IDE... |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 19, 2004 10:44 pm Post subject: |
|
|
You could allow the user to decide what key they'd like to use for this..
Set it up in the options for them to change to whatever they want to use.
-Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Last edited by Garrett on Tue Jan 20, 2004 2:21 am; edited 1 time in total |
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Jan 20, 2004 1:32 am Post subject: |
|
|
garrett wrote
Quote: | You could allow the user to decide what key they'd like to use for this..
|
i like that idea
skit, i'll have a look tonight when i work on my laptop again...i was running vds yesterday on my laptop but your program did not automatically come up as well...will check it all tonight for you
keep up the good work
serge _________________
|
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Tue Jan 20, 2004 2:48 pm Post subject: |
|
|
hi skit,
you won't believe this...my laptop closed without a hitch tonight...good news for you i will keep an eye on it and if the error message does come up again, i will let you know
garrett,
i like your new avatar jfwin.com says that they are coming soon...
serge _________________
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
Serge Professional Member
Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Wed Jan 21, 2004 12:27 pm Post subject: |
|
|
hi skit,
just letting you know...no probs in shutting my laptop down tonight
serge _________________
|
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jan 22, 2004 3:53 am Post subject: |
|
|
Hi Skit
I tested your autocomplete.
It's nice
I suggests a few things:
1. Use Tab as hotkey - BUT use GetKeystate API
to retrieve the status of Tab key - then check if
hint window is the foreground window (or you could set a option msgevent for WM_CHAR for tab key-more complex)- If so then
do the autocomplete - else return to evloop.
(this will prevent the hotkey from interfering
other routine uses of Tab key)
2. You can use a List in the autocomplete window
to show a list of possible matching options(commands/functions)
availble. User can chose between the options using mouse (add click
or double click style to the List Box). _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
CodeScript Moderator Team
Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu Jan 22, 2004 4:39 am Post subject: |
|
|
Hi Skit
I noticed that your autocomplete setup installs:
1. vds.chm into the autocomplete folder.
2._TipOfDay.EXE to the Visual DialogScript 5 directory.
I don't know why they are being installed
3. The setup uninstall exe is installed into Visual DialogScript 5 directory
while it may be advisable to use the tools\autocomplete directory.
4. Also you may ask the user before deleting/overwriting or backup the autocomplete list as the user might have added some custom items to it.
5.Provide a Uninstall shortcut in the start menu -> Programs->vds-> autocomplete. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 22, 2004 8:08 am Post subject: |
|
|
That's a long list CodeScript... I'll try to answer your questions:
The vds.chm is installed in the autocomplete folder, because I was just too lazy to check the path to the 'real' vds.chm file... And the _TipOfDay.EXE file is a backup of the original TipOfDay.EXE file, which now is replaced with a program which allows automatic start-up of programs (which are in the "autolaunch.lst" file).
I'll update your third, fourth and fifth point when I recompile my install package. I will also look how to use the GetKeystate API. Right now when the TAB key is pressed, I check if the VDS IDE is the active window. If not, the hotkey is removed, a @tab() is sent to the active window, and the hotkey is restored. This should work in most cases, but I guess it won't when pressing "Alt+Tab" for example.
Now your question about the list in the autocomplete dialog. I've thought about that, but it is too difficult to add this. This is because I have to do a lot of parsing to get the right command and function. Another point why it doesn't work, is because I've disabled the dialog with an API, so it will never get the focus. This is to prevent you from clicking all the time on it, which will give a lot of irritation... _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
Back to top |
|
|
|