| View previous topic :: View next topic |
| Author |
Message |
DerRaphael
Joined: 23 Nov 2007 Posts: 604 Location: 127.0.0.1
|
Posted: Wed Feb 06, 2008 1:05 pm Post subject: stuck with RegisterCallBack() |
|
|
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 |
|
 |
dmatch
Joined: 15 Oct 2007 Posts: 113
|
Posted: Wed Feb 06, 2008 4:47 pm Post subject: |
|
|
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 |
|
 |
|