Article View: be.comp.programming
Article #4660Re: Beginner Win32 / C question
From: Programmer Dude
Date: Tue, 22 Jul 2003 16:41
Date: Tue, 22 Jul 2003 16:41
44 lines
3492 bytes
3492 bytes
Eric wrote: > How difficult is it to write an interface for my program to control > another application? Others have mentioned, and I want to highlight, that it depends a great deal on the application you want to control. Some apps, for example Microsoft Excel, expose an interface that allows you *total* control. With that interface (called COM), you can do anything programmatically in Excel that a user could do using the app. Other apps will be much harder to control, because they do not offer a public API. Sometimes in Windows, you can do a lot by sending messages to the application you want to control. This often requires you identify the objects within the app and get their "handles". Tools exist (e.g. spy++) that can help you do this. > I intend to write a bot for an Internet game which uses a > client stored on my PC. Depending on a number of factors, you might wish to consider making a new client rather than controlling the existing one. Some of the factors are: how complicated the client is, what it does, whether you know or can get the internet protocol, the tools you have and exactly what your goals are. > However, I don't really have much experience with the Win32 API > and would really appreciate some hints and pointers (no pun > intended) to get me started. You have a lot of material to cover. Charles Petzold's book, PROGRAMMING WINDOWS (5th ed.) is considered by many to be *THE* Bible for Windows programming. I know it taught me a great deal. And you might as well start getting used to MSDN... -- |_ CJSonnack <Chris@Sonnack.com> _____________| How's my programming? | |_ http://www.Sonnack.com/ ___________________| Call: 1-800-DEV-NULL | |_____________________________________________|_______________________|
Technical Details
Message-ID:
<3F1D6929.6899E7FF@mmm.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!snoopy.risq.qc.ca!msc1.onvoy!onvoy.com!news.mmm.com!not-for-mailReferences:
<1058825242.740685@halkan.kabelfoon.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1162da,d27429a9cece8201 X-Google-Attributes: gid1162da,public X-Google-Thread: 113dfb,d27429a9cece8201 X-Google-Attributes: gid113dfb,public X-Google-Thread: fcea4,d27429a9cece8201 X-Google-Attributes: gidfcea4,public X-Google-Thread: 110c1b,d27429a9cece8201 X-Google-Attributes: gid110c1b,public X-Google-Thread: 10640b,d27429a9cece8201 X-Google-Attributes: gid10640b,public X-Google-Thread: 10461f,d27429a9cece8201 X-Google-Attributes: gid10461f,public X-Google-Thread: 105df1,d27429a9cece8201 X-Google-Attributes: gid105df1,public X-Google-Thread: 108717,d27429a9cece8201 X-Google-Attributes: gid108717,public X-Google-ArrivalTime: 2003-07-22 10:00:13 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!cyclone.bc.net!snoopy.risq.qc.ca!msc1.onvoy!onvoy.com!news.mmm.com!not-for-mail From: Programmer Dude <cjsonnack@mmm.com> Newsgroups: be.comp.programming,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,comp.programming,forum.advanced.programming,microsoft.public.win32.programmer,microsoft.public.win32.programmer.gdi,microsoft.public.win32.programmer.ui Subject: Re: Beginner Win32 / C question Date: Tue, 22 Jul 2003 11:41:13 -0500 Organization: Wrenn Productions, Ltd Lines: 44 Message-ID: <3F1D6929.6899E7FF@mmm.com> References: <1058825242.740685@halkan.kabelfoon.nl> NNTP-Posting-Host: 169.10.179.242 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en