CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 1999
    Posts
    43

    Passing text to windows

    Hi

    I bring up a dial up networking connection with : Shell("Rundll32.exe rnaui.dll,rnadial") etc but i want to pass
    a different phone number to it from my application instead of the one it already has. Can anyone please tell me
    how to do this keep in mind please that I am a beginner.

    Thank you


  2. #2
    Join Date
    Aug 1999
    Location
    US, Florida
    Posts
    817

    Re: Passing text to windows

    You can make that window active and use SendKeys to send text to that window

    AppActivate "Dial-Up" '(or whatever name is there)
    SendKeys "5555555",true



    you can also use SendKeys text1.text, etc. You can also use SendKeys "{tab}" to press tab key and move around the text boxes until you get the focus on whatever textbox you need.

    Programs and requests for them for FREE.
    http://falstok.fly.to

  3. #3
    Join Date
    Jul 1999
    Posts
    43

    Thank you but there is a small problem...

    Thank you very much for your help it works but when it passes the text (55555555) in the password field of the dial up networking
    window. Is there a way without using 'tab', to automatically put the (5555555) in the phone number field????

    Thank you for your help



  4. #4
    Join Date
    Jul 1999
    Posts
    43

    Thanx but a small problem...

    Thank you very much for your help it works, but it passes the text (55555555) to the password field (which is the active
    field when I open the dial up window. Is there a way without using 'tab', to automatically put the (5555555)
    in the phone number field (not the active field) ????

    Thank you for your help again







Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured