Valhalla Legends Forums Archive | General Programming | Auto-Add Component

AuthorMessageTime
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
February 26, 2003, 3:48 PM
St0rm.iD
Press CTRL+T and remember how many times you have to press M to get to microsoft winsock control. Then press spacebar and enter.
February 26, 2003, 4:47 PM
haZe
No I mean when I load VB. I want VB to do it for me so I don't have to do it manually!  :-/
February 26, 2003, 5:38 PM
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
February 26, 2003, 7:41 PM
haZe
Anyone know the code for CTRL+T for sendkeys? :P
February 26, 2003, 9:04 PM
Grok
[quote]Anyone know the code for CTRL+T for sendkeys? :P[/quote]

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.
February 26, 2003, 9:18 PM

Search