+ Reply to Thread
Results 1 to 7 of 7

Thread: VB coding help

  1. #1
    Ultimate Member cracked's Avatar
    Join Date
    Nov 2001
    Location
    Winston-Salem, NC
    Posts
    1,445

    VB coding help

     
    hey yall. im not much of a programmer, but i have a little experience in VB and even more in QB. i was wondering, how can i make a proggy to enter a text string as if it were typed into the keyboard so that that text is inputted to the active window besides the program window?

    drew
    Visit http://duroo.org

  2. #2
    Member
    Join Date
    Sep 2002
    Posts
    364
    I dunno what you mean. Do you want to just make an input screen/dialog box?

  3. #3
    Thaumaturge Member howste's Avatar
    Join Date
    Oct 2001
    Location
    West Haven, Utah
    Posts
    32,653
    Use the SendKeys function.

    SendKeys "Enter the text you want typed here"

  4. #4
    Ultimate Member cracked's Avatar
    Join Date
    Nov 2001
    Location
    Winston-Salem, NC
    Posts
    1,445
    ok. thans guys. im sorry if i was unclear when i posted this, i was a little tipsy. but uh, what i want to happen is i want to make a program that has a bunch of radio buttons that have text strings beside them and when you select one it inputs that text into an AIM window so if i selected the button for "ROTFLMFAO" then in an aim chat window it would put in "ROTFLMFAO". i think the sendkeys will work but how do i make it go into AIM?

    thanks guys

    drew
    Visit http://duroo.org

  5. #5
    Thaumaturge Member howste's Avatar
    Join Date
    Oct 2001
    Location
    West Haven, Utah
    Posts
    32,653
    I don't remember the exact code, but it's something like

    AppActivate "window name"

    Where "window name" is the title that shows in the upper left corner of window you want to make active.

  6. #6
    Perfetc Member VHockey86's Avatar
    Join Date
    Jan 2003
    Location
    Maryland Suburbia
    Posts
    4,334
    the command hes talking about doesn't quite work if you're talking about AIM... the format is AppActivate("Name"). However, with Aim the name of the window is the persons SN, making it kind of hard to write a program that load it.

  7. #7
    Junior Member
    Join Date
    Mar 2003
    Posts
    4
    MMMM be best to use win32 API calls. i think i got some examples around here somewhere. a text file is included with vb with all api calls. pick up yourself a good api viewer where it lets you search the file and such. ok the attachment gives u an idea of using the api with sending ims and clicking buttons and such, but its for aol7. u can still learn from it. i got some aim examples but they may be hard to follow. try searching for tutorials and such. basically u use api to find the aim buddy list, click the send im button, type text, and clickt he send button. go here: http://www.allapi.net/ and get the API-Guide and the ApiViewer. the viewer shows all api calls, but the apiguide has descriptions and examples for many of the calls to help you out. some calls are not in the guide so you might want the viewer. api are really cool, and if u learn to use them, u can do anything with windows, like control it. there are functions to use that are many times faster than the oens built into vb. i can email u the example in a word file if u want.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews