home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2821
Discussions: 188,384, Posts: 2,243,509, Members: 232,615
Old February 16th, 2003, 11:39 PM   Digg it!   #1 (permalink)
Ultimate Member
 
cracked's Avatar
 
Join Date: Nov 2001
Location: Winston-Salem, NC
Posts: 1,440
Send a message via AIM to cracked
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

cracked is offline   Reply With Quote
Old 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?

Creosote is offline   Reply With Quote
Old February 18th, 2003, 01:17 AM     #3 (permalink)
Thaumaturge Member
 
howste's Avatar
 
Join Date: Oct 2001
Location: West Haven, Utah
Posts: 12,671
Use the SendKeys function.

SendKeys "Enter the text you want typed here"

howste is offline   Reply With Quote
Old February 18th, 2003, 01:58 AM     #4 (permalink)
Ultimate Member
 
cracked's Avatar
 
Join Date: Nov 2001
Location: Winston-Salem, NC
Posts: 1,440
Send a message via AIM to cracked
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
cracked is offline   Reply With Quote
Old February 18th, 2003, 02:11 AM     #5 (permalink)
Thaumaturge Member
 
howste's Avatar
 
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.
howste is offline   Reply With Quote
Old February 18th, 2003, 02:14 AM     #6 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
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.
VHockey86 is offline   Reply With Quote
Old 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.
bmw5002 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2897)
CPU wont boot (6)
3-days in and no threads about Gaza (160)
The United States Debt (20)
I think I just killed my computer w.. (24)
hp compaq nc6000 problems (139)
Upgrading RAM (5)
Folderchat Weekday thread (442)
Antec 300 bulk purchase? (11)
Recent Discussions
CPU wont boot (6)
GLaDOS is up. (3)
HP notebook reinstall Vista NO .. (5)
Building a gaming computer advi.. (4)
hp compaq nc6000 problems (139)
Folderchat Weekday thread (442)
Creative T-3000 Subwoofer (3)
ACPI controller halt on boot (2)
Worth the upgrade?? (15)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 10:43 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28