Thread: VB coding help
February 16th, 2003, 11:39 PM #1
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?
February 18th, 2003, 12:53 AM #2
- Join Date
- Sep 2002
I dunno what you mean. Do you want to just make an input screen/dialog box?
February 18th, 2003, 01:17 AM #3
Use the SendKeys function.
SendKeys "Enter the text you want typed here"
February 18th, 2003, 01:58 AM #4
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?
February 18th, 2003, 02:11 AM #5
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.
February 18th, 2003, 02:14 AM #6
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.
March 18th, 2003, 12:29 AM #7
- Join Date
- Mar 2003
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)