The hook tag has no wiki summary.
1
vote
1answer
41 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: ...
-2
votes
1answer
27 views
Spyware monitoring [closed]
There ought to be a simple program that will yes-or-no identify is there
is spyware using windows keyboard hooks. Yet I can't find it.
0
votes
1answer
64 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 ...
2
votes
3answers
125 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" ...
4
votes
2answers
4k 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 ...
1
vote
1answer
170 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 ...
0
votes
0answers
46 views
Act on scanned barcode with Windows system hook
I have two sets of barcodes which are being read by a scanner (HID device).
If the barcode scanned is of type A it should be sent to the app on focus
If the barcode scanned is of type B then the ...
1
vote
0answers
50 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 ...
13
votes
1answer
7k 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 ...
2
votes
2answers
475 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 ...
2
votes
3answers
288 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 ...
2
votes
1answer
206 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 ...
26
votes
4answers
7k 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 ...
2
votes
2answers
1k 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 ...
2
votes
2answers
357 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 ...
2
votes
2answers
108 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 ...