AutoHotkey Community

It is currently May 27th, 2012, 7:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: September 25th, 2006, 4:24 pm 
Offline

Joined: September 13th, 2006, 5:00 pm
Posts: 4
First of all thanks to Roland, Laszlo and PhiLho for helping me out with my last problem.

My new problem: I've written a script that gathers information from certain windows and saves them in an HTML file - this is done by checking for mouse clicks on specified buttons. Everything worked fine until I ran it on other computers in the office. Every second computer gave the following warning message when starting AutoHotkey (prior to any other commands in the script):

"Warning: The keyboard and/or mouse hook could not be activated; some party of the script will not function."

This warning message, I believe, was given by AutoHotkey itself (but I'm not completely sure). Whenever this message appears, the script still reacts to the implemented keyboard hotkeys, but not to the vital mouse click checks. When running the program from a network drive, instead of a local drive, most of the computers did not show this warning any more (the script then working flawlessly), but not all. Adding "#InstallMouseHook" to the top of the script did not solve the problem.

Any ideas what the problem could be and/or how to solve it permanently?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2006, 4:52 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
What are the OSes you are using? Hooks doesn't work in Win9x, because it needs an external DLL.
Perhaps also it needs Administrator rights, although I doubt it.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 25th, 2006, 4:56 pm 
Offline

Joined: September 13th, 2006, 5:00 pm
Posts: 4
The same OS on all computers: Windows XP


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 26th, 2006, 11:21 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This is a rare error and I'm not sure what could cause it other than some OS restriction or driver/program that's preventing AutoHotkey.exe from using the OS-provided low-level mouse/keyboard hook.

An error like this could mean that you have some software installed that has deliberately modified your system to disable the mouse/keyboard hooking. Perhaps its reason for doing this is to prevent other software from detecting keystrokes and mouse clicks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 6:47 am 
Offline

Joined: October 30th, 2007, 1:40 pm
Posts: 20
I recently started having the same problem as Squis; that is,
"Warning: The keyboard and/or mouse hook could not be activated; some party of the script will not function."

I can't figure out what could be causing this. I've tried the #InstallKeybdHook and #InstallMouseHook directives and still get the same message. I'm using Windows XP. Is there a way to find out what process is blocking the keyboard/mouse hooks and/or how to re-enable them?

Thank you.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], HotkeyStick, SKAN, tomL, Yahoo [Bot] and 76 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group