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 

call a DLL

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
hhhh
Guest





PostPosted: Wed Feb 02, 2005 7:45 pm    Post subject: call a DLL Reply with quote

I'm new to AHK and try to find some info:
Is it possible to call DLL-Functions?
If not it's something i would like to see on the whishlist Very Happy
Back to top
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Wed Feb 02, 2005 10:38 pm    Post subject: Reply with quote

[link]

The short story is rundll32 runs dlls. Here are some examples, that I actually use on a daily basis:

Folder Options (ME and XP):

rundll32 shell32.dll,Options_RunDLL

Folder Options (2k):

rundll32 shell32.dll,Control_RunDLL appwiz.cpl,@1

Shutdown:

rundll32 user.exe,exitwindows

Restart Windows (9x):

rundll32 user.exe,ExitWindowsExec

Reboot:

rundll32 shell32.dll,SHExitWindowsEx 2

Log off (no confirmation):

rundll32 shell32.dll,SHExitWindowsEx


If you haven't figured this out already, "rundll32" is a command, and thus can be run using AHK's "Run" 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 -> Wish List 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