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 


Limit input length API and other useful APIs

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Knowledge Base
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Mar 15, 2003 10:40 pm    Post subject: Limit input length API and other useful APIs Reply with quote

I never knew about this API tip and it could have saved me a lot of time
in the past.

Here's a quick example which will allow you to limit the lenth of user input
in edit boxes without using extra coding:

Code:
REM ** Example by FreezingFire (freezingfire@vdsworld.com)
  DIALOG CREATE,Edit Box Example,-1,0,188,72,NOMIN
  DIALOG ADD,EDIT,EDIT1,8,8,170,19
  DIALOG ADD,BUTTON,Close,38,58,64,24,Close
  DIALOG SHOW

%%len = 2
%x = @sendmsg(~EDIT1,$00C5,%%len,0)

:evloop
wait event
goto @event()

:close
exit


For more APIs like this, click the link below:
http://www.vdsworld.com/~freezingfire/api.html

_________________
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: Sun Mar 16, 2003 10:35 am    Post subject: Reply with quote

Used the Wayback Time Machine?
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Mar 16, 2003 4:40 pm    Post subject: Reply with quote

Yep. Wink

I just found that a few days ago and it's interesting to refresh one's
memory on how the internet looked years ago...

I've actually also used this to find old VDS sites like the VDS Programmer's Guild
and find the pages on VDS that were there and gone before I even
got a chance to look at them.

Link: http://web.archive.org/

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


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Thu Apr 10, 2003 8:59 pm    Post subject: Reply with quote

Thank you, thank you, thank you FF!!! Very Happy
_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Apr 10, 2003 9:49 pm    Post subject: Reply with quote

No problem... I liked the limit input length the best because before I knew
about it, I was looping through a timer and cutting the length if it went
over. Now it is much more stable. Very Happy

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


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Apr 11, 2003 4:37 am    Post subject: Reply with quote

Same here... you've made my life a lot easier and I thank you! Very Happy
_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Fri Apr 11, 2003 5:59 am    Post subject: Reply with quote

The api handbook in the registered users section at dialogscript.com has tons of these api's. You should download it and check out some of the great api's available to vds.
Back to top
View user's profile Send private message
Hortalonus
Valued Contributor
Valued Contributor


Joined: 15 Mar 2002
Posts: 344
Location: Western USA

PostPosted: Fri Apr 11, 2003 1:22 pm    Post subject: Reply with quote

Thanks for the tip PG! The API messages are one thing I always seem to forget about... Embarassed
_________________
"ah, come take my hand... we're ridin' out tonight to face the promised land"
Get a free iPod mp3 player...
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Apr 11, 2003 7:11 pm    Post subject: Reply with quote

Thanks Prakash for reminding me!

I had entirely forgotten about that since I re-installed Windows on my
computer and wiped everything off. Very Happy

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


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Apr 11, 2003 7:16 pm    Post subject: Reply with quote

Hmmm... looks like SADE needs to recompile the setup with the newer
version of V-Setup -- I'm getting that OLEAUT32.DLL error again:


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


Joined: 29 Dec 2001
Posts: 1537

PostPosted: Fri Apr 11, 2003 10:09 pm    Post subject: Reply with quote

I think the help file can still be fished out of the c:\windows\temp directory, as vsetup extracts all files to a sub-directory in there (I think _vsetup).
Back to top
View user's profile Send private message
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Mon Aug 04, 2003 10:24 am    Post subject: Reply with quote

PGWARE wrote:
The api handbook in the registered users section at dialogscript.com has tons of these api's. You should download it and check out some of the great api's available to vds.


I cant find this on the new re-vamped site? Has it been moved?

Cheers
Sanjuro Smile

_________________
"Apparently three out of four people make up 75 percent of the population. Smile
Back to top
View user's profile Send private message MSN Messenger
Dr. Dread
Professional Member
Professional Member


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

PostPosted: Mon Aug 04, 2003 11:51 am    Post subject: Reply with quote

You're not the only one. Look here:

http://forum.vdsworld.com/viewtopic.php?t=1692

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
Sanjuro
Contributor
Contributor


Joined: 01 May 2003
Posts: 59
Location: Norfolk-United Kingdom

PostPosted: Mon Aug 04, 2003 12:42 pm    Post subject: Reply with quote

Thanks Dread! Very Happy

I am fairly new to VDS, in fact all scripting/programming but the ability to call API's seems very powerful and also pretty interesting. Looking forward to the updated registered users area.

Cheers Razz
Sanjuro

_________________
"Apparently three out of four people make up 75 percent of the population. Smile
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Knowledge Base 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