View Full Version : Finding API CALLS
cypher_soundz
10th November 2002, 20:40
I have programmed for a while in visual basic , my next step is api calls :confused: now using them isnt realy a problem , its just finding them , is there a way of finding out an api call? or do i have to buy a big book , even then how could i find a certain call from a program? Any help would be greatful in clearing the mist over this subject.
[Toff]
10th November 2002, 21:01
You must use the msdn documentation that come with VB.
Or you can find it at http://msdn.microsoft.com
dividee
10th November 2002, 23:41
Some times ago, I've used the API-Guide utility from www.allapi.net. You might wanna have a look at it; the Group view can be useful.
cypher_soundz
11th November 2002, 01:48
thank my mate put me over to allapi.net about a year ago , at the time api ment nothing to me :D i got to say its one of the best sites i have found
cypher_soundz
19th December 2002, 02:53
IS there any way of hooknig a certain program ? or do i need to know the window handle first? etc? ...oris it the big book again :p
Nic
19th December 2002, 09:15
please define what you mean by hooking ? (i.e. receiving its windows messages or hooking the API calls it makes, etc)
Cheers,
-Nic
cypher_soundz
19th December 2002, 13:54
i realy want to know how to do both, but it's realy hooking the API calls it makes , as i want to emulate a user clicking on a certian window inside the program or opening a compression screen etc . i have tried searching through windows for the text in the top but it doesnt find the window , other than that i dont know realy were to start :confused:
SansGrip
19th December 2002, 19:57
Originally posted by cypher_soundz
as i want to emulate a user clicking on a certian window inside the program or opening a compression screen etc . I believe one technique involves using SendMessage to send whatever messages you want to the application's main window, assuming you can find its handle (maybe by enumerating all windows and matching based on title text or whatever).
UGAthecat
21st December 2002, 01:16
if you want an easy way to manipulate other windows without learning anything complicated, check out http://www.hiddensoft.com/AutoIt/. It will take care of everything from waiting for a window with a certain title to pop up, or even a window with certain text in it to pop up, to sending clicks and key presses, and resizing windows. It also handles creating and using structured INI files and other stuff, but all I used it for was manipulating other programs.
You will want to use AutoItX or AutoItDLL in VB.
Before I knew that there was a command line version of DVD2AVI, I used AutoItX to open dvd2avi, open a file, set decode options and select audio stream, save project file, and wait until dvd2avi reports it is finished creating the project file, then close dvd2avi. It took a little trial and error with delays between going through some of the dialogs, but iirc, I managed to get the entire process in less than 20 lines of code in vb, not that compact code is a concern for most in VB :)
cypher_soundz
21st December 2002, 01:51
thanx UGAthecat it doesnt seem bad , but i count this as cheating ;) lol i know , i know , im totaly screwed in the head :D but even if it is harder i think i would like to use true api calls etc. Thanks again though. Cyph
shahmat
30th December 2002, 22:33
I know the higher editions of VB come with the API Text Viewer (not sure about student ed. or whatnot) and that gives declares for pretty much every single Windows API statement there is (with little happy cut-and-paste functionality too so you don't screw up the declarations). The only thing it doesn't tell you is what the API functions actually do...
cypher_soundz
31st December 2002, 11:48
thanks for the replys . i have played around a little with this but allapi.net have a alot more advanced one that i have been using .
thanx cyph
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.