Questions tagged [event-hooking]
27 questions
5
votes
4 answers
How do I determine inactivity in a MVVM application?
I have an MVVM kiosk application that I need to restart when it has been inactive for a set amount of time. I'm using Prism and Unity to facilitate the MVVM pattern. I've got the restarting down and I even know how to handle the timer. What I…

Jordan
- 9,642
- 10
- 71
- 141
4
votes
2 answers
Read on-screen text from external app. API Hooking?
I have a Java background so have limited knowledge when it comes to C# and C++. Basically I am trying to "read" text from another application which is displayed on screen...
To be specific, I want to read the dealer chat message from Pokerstars...…

p_mcp
- 2,643
- 8
- 36
- 75
4
votes
1 answer
SetWinEventHook does not catch any event
It is a follow-up of this question : Alt Tab overlay Win32 identificator.
I try to catch the moment when the alt-tab switch menu open (and exit), using the SetWinEventHook function from the Winuser API. However, the hook do not catch any event (e.g.…

lucasg
- 10,734
- 4
- 35
- 57
2
votes
1 answer
Hooking TNotifyEvent / looking for a proper way to use method and procedural pointers
I'm looking for easy way to create TNotifyEvent hook/wrapper
So I got an idea to create it as object to make stuff easier
But I have no idea how to attach / swap method pointers correctly... :/
Maybe anyone of You has done similar things…

Mad Scientist
- 331
- 2
- 15
2
votes
0 answers
SetEventWinHook crashes WPF application with Stack Overflow
I am running into a problem where my application is crashing a WPF application due to EventHooking. Below is simple code that I tried and was still able to recreate the crash. This is only when running against some sort of custom tree view that has…

Justin Pihony
- 66,056
- 18
- 147
- 180
1
vote
1 answer
UI automation and telerik controls
Most of the telerik controls are not supporting UI Automation.Is there any alternate method/approach to create a .Net tool for recording event details from telerik controls in the external wpf/window applications.
user960881
1
vote
0 answers
Understanding functions hooks
This is my first post in stackoverflow, eventhough I'v been reading here for more than a year.
I would like to ask some questions about function hooking, and would be really glad to have some answers.
Say I created an executable and I would like to…

Michael
- 796
- 11
- 27
1
vote
0 answers
How to add event hook for mouse operations in c++ win32?
I wanted to add a system foreground event hook to track the active window and track mouse clicks(right-click) within the active window. I add eventHook for EVENT_SYSTEM_FOREGROUND, which is working as expected, my hook:
HWINEVENTHOOK hHook =…

Adam
- 23
- 4
1
vote
1 answer
How can I hook into a close event on v-menu
I'm building a vue.js application with Vuetify 1.5.2. I have a v-menu (https://v15.vuetifyjs.com/en/components/menus) on which I would like to hook into a close event. I'm not seeing a close event in the documentation. Does anyone know if there is a…

gib65
- 1,709
- 3
- 24
- 58
1
vote
1 answer
Hooking up .NET method for profiling purposes
Possible Duplicate:
Profiling a method in C# to know how long does it take to run
I need to check how long does it take to run a method.
For example, I need to know how long does it take to run GetTypes() method in using System.Reflection in my…

prosseek
- 182,215
- 215
- 566
- 871
1
vote
0 answers
Cannot pass arguments to JavaScript file using config.yaml in OctoPrint events API
I am trying to pass parameters to a JavaScript file which will be executed using NodeJS.
The JavaScript file contains following function:
function handleEvent() {
var options = { method: 'POST',
url:…

shogitai
- 1,823
- 1
- 23
- 50
1
vote
1 answer
C# Exclude tooltip popups from SetWinEventHook with EVENT_OBJECT_NAMECHANGE
I'm trying to detect window title changes of AIMP music player using the SetWinEventHook and it works, the problem is that it also detects Tooltip popups when I hover over buttons with mouse (stop, play, minimize, etc).
I would like to exclude these…

Lakyn
- 11
- 4
1
vote
1 answer
WinEventHook does not catch events from specific process id
I'm creating a console process and then trying to monitor it for events with SetWinEventHook. If I use the PID associated with the process I've created, I never catch any events. If I set pid/thread to 0/0 (all processes/threads) then I get plenty…

Catma
- 39
- 1
- 9
1
vote
0 answers
Discourse User-Created Event Breaks Post Creation Tests
In Discourse, I'm trying to setup a user created event hook, but when I do so, it breaks some tests related to post creation. The new event -- on another model -- seems to be causing topic_created to fire multiple times while preventing post_created…

ntrrobng
- 408
- 5
- 15
1
vote
1 answer
hook file creation in python
I'm working on a program, where in some part of it, it needs to listen to the OP for when files are created/saved, so I can work on said file.
I know the basic concept of hooking, but I don't know exactly how to implement it in this specific use(I…

user3255424
- 13
- 3