February 16th, 2003, 11:39 PM
|
#1 (permalink)
| | Ultimate Member
Join Date: Nov 2001 Location: Winston-Salem, NC
Posts: 1,440
|
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
|
| |
February 18th, 2003, 12:53 AM
|
#2 (permalink)
| | Member
Join Date: Sep 2002
Posts: 364
|
I dunno what you mean. Do you want to just make an input screen/dialog box? |
| |
February 18th, 2003, 01:17 AM
|
#3 (permalink)
| | Thaumaturge Member
Join Date: Oct 2001 Location: West Haven, Utah
Posts: 12,671
|
Use the SendKeys function.
SendKeys "Enter the text you want typed here" |
| |
February 18th, 2003, 01:58 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Nov 2001 Location: Winston-Salem, NC
Posts: 1,440
|
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 |
| |
February 18th, 2003, 02:11 AM
|
#5 (permalink)
| | Thaumaturge Member
Join Date: Oct 2001 Location: West Haven, Utah
Posts: 12,671
|
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 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,327
|
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 (permalink)
| | 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. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |