ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
How do you create a login prompt for vb6 sdk wrapper? (Bots)
How do you create a login prompt for vb6 sdk wrapper? // BotsbarbarossaMay 9, 2001, 8:11pm
TO: All avid users of AW,
I know how to create a bot & make it login, but how do you make a bot where you can enter all information into text boxes, rather than having to change the constants used by quickstart in the code itself. A Desperate VB6 Bot Programmer, Barbarossa 315942 P.S. When I goto Markaveli's web site, I cannot d/l his fabled "First Bot". I, in turn, recieve naught but a 404 file not fount error. m a k a v e l iMay 9, 2001, 8:19pm
First, textboxes are very simple to use, I changed my web pages today
because I had no time to in the past since I cancelled the Bank Bot's beta version because it was screwed up due to lack of code updates. I had to remove that download link. I have a download on my small help page that is the basic forms, all you do is add the new code, it has textboxes and all on it already. trekkerxMay 10, 2001, 12:20am
Anyways.... I will acuulay tell you how to do it. Now
To use a text box place a few on the form. now Wherever you have the bot login use this... Sdk.AwLoginOwner = txtOwner.Text `Use ".Text" right after the name of the text box Sdk.AwLoginPrivilegePassword = txtPassword.Text Sdk.AwLoginName = txtBotName.Text Sdk.AwLoginApplication = "Bot App" and so on.... If you still dont get it you have to do this. Text1.text now whatever text1.text will Equel what ever is in Text1. Becaruefull And makeshure you use a String or a Long, sometimes people will enter in a string in a field thats suppose to be a long. Im not shure how to make a box only numbers or like that. Im shure it will work otherwise you can contact me in AW as TrekkerX ~ TrekkerX [View Quote] > First, textboxes are very simple to use, I changed my web pages today > because I had no time to in the past since I cancelled the Bank Bot's beta > version because it was screwed up due to lack of code updates. I had to > remove that download link. I have a download on my small help page that is > the basic forms, all you do is add the new code, it has textboxes and all on > it already. m a k a v e l iMay 10, 2001, 1:39am
*sigh* you don't need the ".Text" extention, VB defaults the textboxes to
that so all you need is "txtCitizenName" not "txtCitizenName.Text". grimbleMay 10, 2001, 11:45am
At the risk of sounding like I am agreeing with Makaveli ...
Firstly, if you WANT to use the .Text property, that's your programming style and that is fine. Don't miss things off if they make your code clearer to you or others and don't miss them off because you're lazy (unless that IS your programming style) either. All controls can have a default property assigned. For edit boxes, the .Text property is the default. This means that you don't NEED to explicitly state the property name to retrieve the text in the text box. In fact, it is marginally faster to use the default property than to make it find the one you specify ... but we aren't talking in terms of any perceivable amount of time. The reason a lot of people DO like to specify the fully qualified name is because txtOwner, without the property name, can return one of two values .... (a) The value of the default property (txtOwner.Text) or (b) The control itself (i.e. the edit box). VB is a typed language and therefore this behaviour doesn't fit with the rest of the language. So, if it makes you more comfortable TrekkerX, you do as you wish. The only reason this has been mentioned (by me anyway) is because you explicitly included it in your post. Just giving you a bit of background. Grims [View Quote] tony mMay 11, 2001, 1:37am
That's a BAD habit to get into. Once you go to languages like Delphi,
you'll NEED to specify ".Text" [View Quote] trekkerxMay 12, 2001, 12:06am
Yea so where bolth right.
[View Quote] > At the risk of sounding like I am agreeing with Makaveli ... > > Firstly, if you WANT to use the .Text property, that's your programming > style and that is fine. Don't miss things off if they make your code clearer > to you or others and don't miss them off because you're lazy (unless that IS > your programming style) either. > > All controls can have a default property assigned. For edit boxes, the .Text > property is the default. This means that you don't NEED to explicitly state > the property name to retrieve the text in the text box. In fact, it is > marginally faster to use the default property than to make it find the one > you specify ... but we aren't talking in terms of any perceivable amount of > time. > > The reason a lot of people DO like to specify the fully qualified name is > because txtOwner, without the property name, can return one of two values > ... > > (a) The value of the default property (txtOwner.Text) > > or > > (b) The control itself (i.e. the edit box). > > VB is a typed language and therefore this behaviour doesn't fit with the > rest of the language. So, if it makes you more comfortable TrekkerX, you do > as you wish. > > The only reason this has been mentioned (by me anyway) is because you > explicitly included it in your post. Just giving you a bit of background. > > Grims > [View Quote] |