Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / click link after imput

Author
Message
Daniel wright 2311
User Banned
Posted: 19th Apr 2011 19:26
Ok, so I want to be able to click a link to take me to the game after the imput, not the enter key, I know hitting the enter key records the imput to a record but I need to click a link to do this instead and Im not shure how to.help



my signature keeps being erased by a mod So this is my new signature.
Admiral MH
15
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 19th Apr 2011 21:16 Edited at: 20th Apr 2011 00:13
Use the Entry$ command as it does not need you to press enter to return the string. Also is nice because it does not pause your program.

Here is a example of it.



Daniel wright 2311
User Banned
Posted: 20th Apr 2011 00:03
well this worked, thanks, but I still have problems, people can still enter the game putting a name in or not and I need it to where you have to enter your name in to start any game. so this is what I have.




my signature keeps being erased by a mod So this is my new signature.
Admiral MH
15
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 20th Apr 2011 00:23
Then here is how you do it.



The "Len" command checks for the number of characters in the string. There are more commands also, so take a look at the help file if you want to know the text commands.

Also, make sure you use "Clear Entry Buffer" command to clear the string if you are planning on getting input from that command again. Otherwise, if you did not clear the entry buffer, then it will still have the old input stored in there.

Daniel wright 2311
User Banned
Posted: 20th Apr 2011 00:48 Edited at: 20th Apr 2011 00:56
To me right now you are the king of imput, ok, now I need to know sence this keeps track of the imput strings then is there a way that I can make it to where you can only print in 10 letteres for your name and no more?

EDIT:By the way. thid did work great

my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 20th Apr 2011 01:12
this does not work here



but this does but it clears out the whole name



my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 20th Apr 2011 02:53
never mind I figured this out to with iams plugin

http://forum.thegamecreators.com/?m=forum_view&t=173137&b=1

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-18 06:41:25
Your offset time is: 2026-07-18 06:41:25