Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: WiLD on June 18, 2005, 12:08 AM

Title: Code Execution
Post by: WiLD on June 18, 2005, 12:08 AM
I used to have a fair idea on how it was done, but i havnt touched vb for awhile and cant remember.

Anyways..... was just wondering how i would go about executing code from a textbox or somewhat.

Basically i just want to be able to to put in some code such as
msgbox "test"
into a textbox and execute it however. It doesnt really matter what function i put it into, just want to get an idea of how to go about it for now.

Thanks in advance.
Title: Re: Code Execution
Post by: Warrior on June 18, 2005, 12:20 AM
I don't know if VB has an Eval() function, I remember seeing a function maybe CallByName *shrug*
Title: Re: Code Execution
Post by: NicoQwertyu on June 18, 2005, 12:23 AM
There's a Scripting Control (OCX) that can do this.  Look for it.
Title: Re: Code Execution
Post by: UserLoser. on June 18, 2005, 12:34 AM
This isn't related to Battle.net Bot Development and if you could read the forum topic, then you can surely read MSDN, any simple tutorial, or a book to find out your answer.
Title: Re: Code Execution
Post by: tA-Kane on June 18, 2005, 03:29 AM
WiLD: if I'm not mistaken, you'd be interested in VBScript.
Title: Re: Code Execution
Post by: WiLD on June 20, 2005, 02:37 AM
Sorry for the late reply.
It may be VBScript im looking for, but im quiet sure i was looking at an example awhile ago on how it is done via the way i explained above. I no longer have the example so im unable to take a look at it.

I guess ill looking into VBScripting more then. Thanks for the help