Valhalla Legends Archive

Programming => General Programming => Topic started by: haZe on February 26, 2003, 09:48 AM

Title: Auto-Add Component
Post by: haZe on February 26, 2003, 09:48 AM
Is there any way I can make visual basic auto-add the winsock control to the toolbox everytime it loads like the other tools (textbox, command button, etc.). Help appreciated. ;D
Title: Re: Auto-Add Component
Post by: Banana fanna fo fanna on February 26, 2003, 10:47 AM
Press CTRL+T and remember how many times you have to press M to get to microsoft winsock control. Then press spacebar and enter.
Title: Re: Auto-Add Component
Post by: haZe on February 26, 2003, 11:38 AM
No I mean when I load VB. I want VB to do it for me so I don't have to do it manually!  :-/
Title: Re: Auto-Add Component
Post by: Camel on February 26, 2003, 01:41 PM
public sub Main()
    shell "c:\path\to\vb.exe",vbmaximized
    sleep 10 * 1000
    sendkeys whatever the code for ctrl+t is, m a bunch of times, space, enter
end sub

file->make youlazywh0re.exe
Title: Re: Auto-Add Component
Post by: haZe on February 26, 2003, 03:04 PM
Anyone know the code for CTRL+T for sendkeys? :P
Title: Re: Auto-Add Component
Post by: Grok on February 26, 2003, 03:18 PM
QuoteAnyone know the code for CTRL+T for sendkeys? :P

Now, come on Haze.  You have to admin that posting on a forum for how to send Ctrl_T to SendKeys is lazy.  Your MSDN Online works just as good as the next person's.