Questions tagged [hook]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
593 views

Is it possible to disable part area of the touchscreen in Windows 10?

There is a laptop with screen touch function, but keeps ghost-touching as long as it is powered on. I have tried many solutions like touching my hand on a window that is connected to the ground, ...
NeNe's user avatar
  • 21
0 votes
1 answer
87 views

Is really need to reset [mouse] hooks when resuming computer from sleep?

It seems that I have not yet encountered a problem that is solved in this way. However, in different places I notice similar "protection". For example, I saw this in X-Mouse Button Control: ...
Alex A.'s user avatar
  • 121
0 votes
2 answers
1k views

SVN svnrdump load - pre-revprop-change hook

I am trying to migrate a subversion repository from one server to another. I can dump the repository from the old server to a file, but I am having issues with loading the dump file to the new server. ...
wzaylor's user avatar
1 vote
2 answers
752 views

Accessing displayed content of external programs

This has been a longstanding difficulty for me, and I don't know (even after googling) what the easiest solution to this is. I have an external program (coherent laser software) that displays some ...
user2305193's user avatar
0 votes
1 answer
988 views

Git prepare-commit-msg hook seems not work in PyCharm

I am working with the last version of PyCharm. In our repo we have some hooks, like "prepare-commit-msg" to create a commit template or "commit-msg" using by Gerrit to add the change-id used by this ...
Fran Moya's user avatar
2 votes
0 answers
243 views

Ubuntu LVM on LUKS UEFI

I want to install Ubuntu on LVM on LUKS in UEFI mode. An UEFI partition, another encrypted partition for /boot and again an encrypted partition for system. My question is: How can I add hooks to ...
user974947's user avatar
0 votes
0 answers
873 views

Intercepting and Re-Directing Windows File Operations in a C Program

My intention is to write a program (I have Pelles C) whose function is to intercept Windows reads/writes to certain directories, and re-direct them to other, user-specified ones. For example, a ...
Guy Mann's user avatar
2 votes
1 answer
4k views

Analyzing a dump file using WinDbg

I've been asked to explore a dump file (no source files given) using windbg and to extract some information from it: determine what is the issue (hang/crash) what module causes the hang. What is the ...
dushkin's user avatar
  • 291
1 vote
2 answers
2k views

Is it possible to hook into a print job and copy the print job to a virtual printer, too?

I would like to know if this is possible for Windows,Mac and Linux. I need some generic solution to clone print jobs, currently in the pipeline and send them to a virtual printer, because I cannot ...
zer02's user avatar
  • 113
2 votes
0 answers
29 views

Set Windows to close application when the lid is being closed [duplicate]

I need to be able to configure Windows 7+ to close all instances of Microsoft Remote Desktop application when the lid of the laptop is being closed. On MacOS I can achieve this via osascript. Could ...
Maxim V. Pavlov's user avatar
6 votes
1 answer
2k views

ZSH: change prompt just before command is run

I would like to have a two-line prompt in zsh, but collapse it to a very small one just after pressing ENTER, so that it doesn't show up in the terminal scroll history. After typing two commands, the ...
Suzanne Soy's user avatar
1 vote
0 answers
231 views

Git push over SSH is not activating remote hooks

I have the following problems that git push over SSH is not activating remote hooks. The server where Git repo is Linux ubuntu. Git version 1.7.9.5 My path to repo hooks /path/test.git/hooks/update; ...
Lavrentijs L's user avatar
2 votes
0 answers
209 views

Git server side hooks commit update file

I am trying to implement git hook commit on a server using these instructions: https://git-scm.com/book/be/v2/Customizing-Git-An-Example-Git-Enforced-Policy I created file "update" (make it ...
Lavrentijs L's user avatar
2 votes
1 answer
218 views

When I run a git hook in a repo on a network share: which binaries are used?

See title. My repo is located on a network share. When I push new revs there, a post-udpate hook is run. The hook needs Perl and runs nicely. But which perl.exe is used here? The one on my machine? ...
eckes's user avatar
  • 528
0 votes
1 answer
78 views

Detect IPC between running processes on Unix

Suppose I have 2 processes on any unix-based system and I sure they are using some inter-process communication. How can I detect what do they use in order to simulate or hook it? I mean pipes, for ...
VP.'s user avatar
  • 142
1 vote
1 answer
1k views

Git post-update hook not working properly

If I push to my remote origin repository the post-receive hook should push all to another remote repository on another machine. When I push to my origin the post-receive hook gets triggered but I ...
Matthias Reisner's user avatar
1 vote
1 answer
170 views

How to create SSH Key for git user

If i want to syncronize my remote origin with another remote repository i will have to register a post-update hook. But I will need an ssh key for that. Because my origin repo is owned by git user, ...
Matthias Reisner's user avatar
9 votes
4 answers
11k views

How to commit files modified by pre-commit hook in Git

Im struggling for a couple of hours to make git store metadata (permissions/flags/etc) of the files using metastore and I use hooks/pre-commit for this. The script is invoked correctly, and the file ...
dimovnike's user avatar
  • 437
-4 votes
1 answer
84 views

Someone is hooking me? [closed]

I have some ticket on customer site I'm dealing with. My application uses 3rd party app (written in Python & c++) which I don't have the code - and in my code is always failing on one server, and ...
user1025852's user avatar
0 votes
1 answer
638 views

What DLL's does DirectX 5 use?

I know directX 9 uses many DLL's, but the main DLL is d3d9.dll which I can replace with my own one and so "hook" into an application using DirectX 9. I can do the same for directx 8. But I have a game ...
Gizmo's user avatar
  • 1,959
1 vote
1 answer
374 views

How to defocus a program without letting it know it is out of WinAPI focus

There is a need for two of us with my friend to use one PC at the same time. I have a gaming PC, 2 screens, a gamepad — sounds like a great multi-user environment, eh? Not so fast. The problem is: ...
Erquint's user avatar
  • 11
1 vote
1 answer
428 views

Why doesn't the Aquamacs text-mode-hook I add in my .emacs file seem to run?

I'm running Aquamacs 2.4 (based on Emacs 23.3.50.1) on my Macbook, OS 10.7.5. I have the following line in my .emacs file: (add-hook 'text-mode-hook 'turn-on-visual-line-mode) I think that this ...
David's user avatar
  • 123
2 votes
2 answers
415 views

Monitor programs accessing my keyboard?

As of a few days ago, my computer is behaving 'erratically'. When I am typing, my pointer will randomly move to another place in the text and start typing a semi-random string of characters. ("gvyfn" ...
Anti Earth's user avatar
7 votes
2 answers
19k views

How to trick programs into thinking they're running under 32-bit?

Basically I have 3 executables in my Windows 7 64-bit, those are: Loader.exe -> This is a 32-bit exe  x86.exe -> This is a 32-bit exe x64.exe -> This is a 64-bit exe When Loader.exe starts it ...
Æless Norm's user avatar
2 votes
1 answer
2k views

How to properly copy/paste code from .pdf to a new file open on terminal?

I have a pdf containing the following code: #!/bin/sh echo echo “**** Pulling changes into Dev [Hub’s post-update hook]” echo case “ $1 ” in If I copy and then paste that code on my terminal, after ...
MEM's user avatar
  • 1,337
1 vote
0 answers
104 views

Disable button in a third party application?

Im currently have a linux "kiosk" machine containing a closed-source third party application. The problem is that the third party application has a settings button, that I dont want the users to be ...
sebastian nielsen's user avatar
66 votes
4 answers
82k views

How to launch a command on network connection/disconnection?

I have a wifi connection that requires to authenticate using a web form once the wireless link is established. I know how to automate the authentication with a script that uses curl/curlIE. But how ...
dolmen's user avatar
  • 1,252
2 votes
2 answers
1k views

How can I find which file system hooks are installed on a windows XP pro machine?

I've a suspect that a program I installed (spideroak) didn't completely removed itself on uninstall. How can I check if there are still file system hooks installed? EDIT: Probably spideroak wasn't ...
6502's user avatar
  • 145
2 votes
3 answers
487 views

Compiz shutdown hook?

I want to check 10+ local Git repositories if they have any unpushed commit, before shutdown. (I always forgot to push them, so later, the next morning I came office and back home again) I think ...
Lenik's user avatar
  • 18.3k
2 votes
1 answer
589 views

Can the OS X unlock panel trigger a login hook similar to loginwindow?

I'd like to automatically run a shell script every time I authenticate onto my computer. However, all the info I can find about loginhook and Global LoginItems applies only when authenticating to "...
Allen's user avatar
  • 41
142 votes
6 answers
66k views

Does bash have a hook that is run before executing a command?

In bash, can I arrange for a function to be executed just before running a command? There is $PROMPT_COMMAND, which is executed before showing a prompt, i.e., just after running a command. Bash's $...
4 votes
2 answers
4k views

Global git hook

Is it possible to hook all ways of creating git repo? So I can run script when repo is cloned, initialized… (are there any other ways, except moving/copying folder?). My intention is to track all ...
tig's user avatar
  • 4,734
2 votes
2 answers
2k views

How to run commands when mac is idle and when it resumes

I want to run script when my mac is idle (for example after 5 minutes or screen saver start time is also ok) and when I resume it from idle state. I know that I can write daemon using ...
tig's user avatar
  • 4,734
2 votes
2 answers
216 views

(Vista) Discover what app is reserving a shortcut key?

My problem is this: I've always managed to map WIN+V to foobar2000's "Next song" keyboard shortcut. For some reason, on this new machine, I can't. I've done this before on Vista, so the only thing I ...
Eddie Parker's user avatar
  • 2,914