• Welcome to Valhalla Legends Archive.
 

Auto-Add Component

Started by haZe, February 26, 2003, 09:48 AM

Previous topic - Next topic

haZe

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

Banana fanna fo fanna

#1
Press CTRL+T and remember how many times you have to press M to get to microsoft winsock control. Then press spacebar and enter.

haZe

#2
No I mean when I load VB. I want VB to do it for me so I don't have to do it manually!  :-/

Camel

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

haZe

#4
Anyone know the code for CTRL+T for sendkeys? :P

Grok

#5
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.