Executing shortcuts in VB6
Results 1 to 4 of 4

Thread: Executing shortcuts in VB6

  1. #1
    Banned
    Join Date
    Sep 2002
    Posts
    5

    Question Executing shortcuts in VB6

    yo,

    There are two ways (possibly more) of doing what I need to do...

    1. I need to have a button in my form open up a shortcut on my desktop. The shortcut is to a dialup box to connect to my ISP. Executing a shortcut, would be one way of doing this...

    2. Is there a line of code that loads up your default net connection, that I could just place within my buttons code?

    Any help : greatly appreciated.

    snafudude

  2. #2
    It's a gas!
    Join Date
    Jul 2002
    Posts
    699
    You could try posting your question HERE

    Regards

    r3b00+

  3. #3
    Member
    Join Date
    May 2002
    Posts
    40
    I found this code, tho its not working for me right now, it did work 100% (otherwise i wouldnt document it, i guess its coz i use cable connection right now). "Internet Zahav" is the connection name, and here is the code :

    Private Sub Form_Load()
    taskID = Shell("rundll.exe rnaui.dll,RnaDial " & "Internet Zahav", 1)


    DoEvents ' Wait until RAS-window is shown
    Timer1 = True
    End Sub

    Private Sub Timer1_Timer()
    SendKeys "Hello", True ' Press "Return" = "Connect"
    SendKeys "{ENTER}", True ' Press "Return" = "Connect"
    Timer1 = False
    End Sub

    'I hope it will help you

  4. #4
    Banned
    Join Date
    Sep 2002
    Posts
    5
    Originally posted here by r3b00+
    You could try posting your question http://www.tek-tips.com"]HERE[/url]
    I will do what you suggested. Thanks

    STeRoiD : Thanks i'll let ya know how I get on.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •