AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DllCall?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Autex675



Joined: 10 May 2008
Posts: 15

PostPosted: Fri May 30, 2008 10:32 pm    Post subject: DllCall? Reply with quote

How exactly does the command, DllCall work? How do you know what dll file to refer to or what the file's functions are? How can DllCall be used to make a screen magnifiers?

I even looked at screen magnifier scripts but I still can't understand DllCall.


Thank you in advance Exclamation
Back to top
View user's profile Send private message
Cab



Joined: 09 Apr 2006
Posts: 1

PostPosted: Sat May 31, 2008 8:07 am    Post subject: Re: DllCall Reply with quote

Hi,
I think the AutoHotkey help files describe DllCall quite well: http://www.autohotkey.com/docs/commands/DllCall.htm
Take this example:
Code:
DllCall("MessageBox", "int", "0", "str", "Press Yes or No", "str", "Title of box", "int", 4)

This calls the MessageBox function inside user32.dll. Some standard DLLs like this are looked in by default, so you don't have to specify them explicitly.
To find out what the arguments mean, check out MSDN (just google MessageBox).

If you want to see what functions a particular DLL provides, you could use a program like Dependency Walker: http://www.dependencywalker.com/

For a screen magnifier that works in a window, you might want to take a look at the StretchBlt function.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group