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 


Autocomplete program for the VDS IDE
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
Skit3000
Admin Team


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

PostPosted: Sat Jan 17, 2004 1:20 pm    Post subject: Autocomplete program for the VDS IDE Reply with quote

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
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jan 18, 2004 1:32 am    Post subject: Reply with quote

sounds great skit...am downloading it now and will check it out later today

serge

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


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Mon Jan 19, 2004 3:21 am    Post subject: Reply with quote

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 Very Happy Very Happy Very Happy

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1562

PostPosted: Mon Jan 19, 2004 5:44 am    Post subject: Reply with quote

How about using the ` key Smile I doubt any really uses this for anything and it's near the tab key (atleast on my laptop)
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jan 19, 2004 6:14 pm    Post subject: Reply with quote

PGWARE wrote:
How about using the ` key Smile 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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Mon Jan 19, 2004 6:39 pm    Post subject: Reply with quote

I'll change the key to `, as you requested... Smile 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... Sad
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 19, 2004 10:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Jan 20, 2004 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Tue Jan 20, 2004 2:48 pm    Post subject: Reply with quote

hi skit,

you won't believe this...my laptop closed without a hitch tonight...good news for you Very Happy 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 Very Happy jfwin.com says that they are coming soon...

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Skit3000
Admin Team


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

PostPosted: Tue Jan 20, 2004 4:03 pm    Post subject: Reply with quote

Serge, I think it was a bug because Windows wasn't able to close the program or something, because of the timer loop I use... Smile Thanks for testing again... 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
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Wed Jan 21, 2004 12:27 pm    Post subject: Reply with quote

hi skit,

just letting you know...no probs in shutting my laptop down tonight

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Skit3000
Admin Team


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

PostPosted: Wed Jan 21, 2004 4:12 pm    Post subject: Reply with quote

Maybe we should open a new topic in which you can add all events which happened with my tool? Laughing Thanks for checking again... 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
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jan 22, 2004 3:53 am    Post subject: Reply with quote

Hi Skit
I tested your autocomplete.
It's nice Smile
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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Thu Jan 22, 2004 4:39 am    Post subject: Reply with quote

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 Confused


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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Skit3000
Admin Team


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

PostPosted: Thu Jan 22, 2004 8:08 am    Post subject: Reply with quote

That's a long list CodeScript... Smile 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... Smile 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... 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
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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