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 

stuck with RegisterCallBack()

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



Joined: 23 Nov 2007
Posts: 604
Location: 127.0.0.1

PostPosted: Wed Feb 06, 2008 1:05 pm    Post subject: stuck with RegisterCallBack() Reply with quote

hi ... i want basically to hook up "comdlg32\GetOpenFileName" i got told that RCB() is the thing i look for. now i dont have a clue on how to use this properly, so that everytime, "comdlg32\GetOpenFileName" is being called from anywhere, my script intercepts and displays a messagebox. and after the msgbox being closed, the dialog opens up!

pretty clueless how to do that.

thx in advance
greets
derRaphael
_________________
Back to top
View user's profile Send private message
dmatch



Joined: 15 Oct 2007
Posts: 113

PostPosted: Wed Feb 06, 2008 4:47 pm    Post subject: Reply with quote

Hi, DerRaphael,

I don't think RegisterCallback is going to be able to do what you want. Since you want to intercept the call to GetOpenFileName from "anywhere" it appears from my research to be much more difficult than that. Perhaps it could be one small part of the solution. Here is an article about intercepting system API calls:

http://softwarecommunity.intel.com/articles/eng/3651.htm

I can't say it is impossible to do with AHK but who knows what caveats may appear as you try to implement the solution provided in that article. Even the article points out some problems of implementing what they call the "trampoline" function to get back to the original API function.

However, it also mentions some third party software designed for doing this sort of thing.

Have a look and good luck,

dmatch
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