Re: SetWindowHookEx

2002-12-01 Thread Shachar Shemesh
Hi all,

I just found out that the version I posted on the web was an old one. 
Some of the bugs there were purely visual, but there is a serious 
problem with the shared memory creation there that causes it not to work 
on Windows 98. Since I also have the new version, I have updated the 
link with the new version.

My appologies.

http://www.consumer.org.il/personal/xeyes.zip

As before, treat this as a GPL program.

   Shachar


Shachar Shemesh wrote:

I sent Alexandre the App privately. I originally wanted to CC the list 
(the app can be distributed under either GPL or LGPL), but the mail 
was rejected. I would hereby like to appologize for trying to attach 
more than the set limit of 40Kb of a zip file to the list. My appologies.

In leu of such atrocities which I would not like to commit, and I 
would like to thank the moderator for stopping that mail, I have 
placed on a web site, and am hereby making both source and a compiled 
binary available in a zip file (no wonder it was more than 40Kb, what 
was I thinking trying to send it to the list) at 
http://www.consumer.org.il/personal/xeyes.zip.

D/L size is 49Kb.

   Thanks,
   Shachar


Alexandre Julliard wrote:

Shachar Shemesh [EMAIL PROTECTED] writes:

 

So you mean to say that my windows X-Eyes implementation won't work on
WINE? Damn.

Anyone knows of any Unix port of that program?

   Shachar

No, wait. I'm using a mouse hook. Maybe it'll work after all.
  


At this point probably not, but if you could send me that app I'd be
interested to play with it.

 











Re: SetWindowHookEx

2002-10-31 Thread Shachar Shemesh
So you mean to say that my windows X-Eyes implementation won't work on 
WINE? Damn.

Anyone knows of any Unix port of that program?

   Shachar

No, wait. I'm using a mouse hook. Maybe it'll work after all.

   Sh.


Alexandre Julliard wrote:

[EMAIL PROTECTED] writes:

 

My app uses SetWindowHookEx to install a WH_KEYBOARD_LL hook.
Currently, the wine implementation tells me
fixme:hook:set_windows_hook system hook WH_KEYBOARD_LL won't work right
when I try to use it.  I'd like to implement this so I can get my app to
run, but I'm not sure where to start, since I don't know why it
won't work right.  Any hints/suggestions?
   


I'm working on it. Basically it won't work right across processes at
this point; if you have a single process it should be OK.

 






Re: SetWindowHookEx

2002-10-31 Thread Alexandre Julliard
Shachar Shemesh [EMAIL PROTECTED] writes:

 So you mean to say that my windows X-Eyes implementation won't work on
 WINE? Damn.
 
 Anyone knows of any Unix port of that program?
 
 Shachar
 
 No, wait. I'm using a mouse hook. Maybe it'll work after all.

At this point probably not, but if you could send me that app I'd be
interested to play with it.

-- 
Alexandre Julliard
[EMAIL PROTECTED]




Re: SetWindowHookEx

2002-10-31 Thread Shachar Shemesh
I sent Alexandre the App privately. I originally wanted to CC the list 
(the app can be distributed under either GPL or LGPL), but the mail was 
rejected. I would hereby like to appologize for trying to attach more 
than the set limit of 40Kb of a zip file to the list. My appologies.

In leu of such atrocities which I would not like to commit, and I would 
like to thank the moderator for stopping that mail, I have placed on a 
web site, and am hereby making both source and a compiled binary 
available in a zip file (no wonder it was more than 40Kb, what was I 
thinking trying to send it to the list) at 
http://www.consumer.org.il/personal/xeyes.zip.

D/L size is 49Kb.

   Thanks,
   Shachar


Alexandre Julliard wrote:

Shachar Shemesh [EMAIL PROTECTED] writes:

 

So you mean to say that my windows X-Eyes implementation won't work on
WINE? Damn.

Anyone knows of any Unix port of that program?

   Shachar

No, wait. I'm using a mouse hook. Maybe it'll work after all.
   


At this point probably not, but if you could send me that app I'd be
interested to play with it.

 








SetWindowHookEx

2002-10-30 Thread steve . lustbader
My app uses SetWindowHookEx to install a WH_KEYBOARD_LL hook.
Currently, the wine implementation tells me
fixme:hook:set_windows_hook system hook WH_KEYBOARD_LL won't work right
when I try to use it.  I'd like to implement this so I can get my app to
run, but I'm not sure where to start, since I don't know why it
won't work right.  Any hints/suggestions?

-Steve





Re: SetWindowHookEx

2002-10-30 Thread steve . lustbader



[EMAIL PROTECTED] writes:

 My app uses SetWindowHookEx to install a WH_KEYBOARD_LL hook.
 Currently, the wine implementation tells me
 fixme:hook:set_windows_hook system hook WH_KEYBOARD_LL won't work right
 when I try to use it.  I'd like to implement this so I can get my app to
 run, but I'm not sure where to start, since I don't know why it
 won't work right.  Any hints/suggestions?

I'm working on it. Basically it won't work right across processes at
this point; if you have a single process it should be OK.


It's returning NULL for me, which implies it isn't working.  Is there some
sort of trace that I can send you to help you out?

-Steve






Re: SetWindowHookEx

2002-10-30 Thread Alexandre Julliard
[EMAIL PROTECTED] writes:

 My app uses SetWindowHookEx to install a WH_KEYBOARD_LL hook.
 Currently, the wine implementation tells me
 fixme:hook:set_windows_hook system hook WH_KEYBOARD_LL won't work right
 when I try to use it.  I'd like to implement this so I can get my app to
 run, but I'm not sure where to start, since I don't know why it
 won't work right.  Any hints/suggestions?

I'm working on it. Basically it won't work right across processes at
this point; if you have a single process it should be OK.

-- 
Alexandre Julliard
[EMAIL PROTECTED]




Re: SetWindowHookEx

2002-10-30 Thread Alexandre Julliard
[EMAIL PROTECTED] writes:

 It's returning NULL for me, which implies it isn't working.  Is there some
 sort of trace that I can send you to help you out?

Oops you are right, this should fix it:

Index: server/hook.c
===
RCS file: /opt/cvs-commit/wine/server/hook.c,v
retrieving revision 1.1
diff -u -r1.1 hook.c
--- server/hook.c   29 Oct 2002 00:41:42 -  1.1
+++ server/hook.c   30 Oct 2002 19:51:20 -
@@ -227,7 +227,8 @@
 set_error( STATUS_INVALID_PARAMETER );
 return;
 }
-if (!(thread = get_thread_from_id( req-tid ))) return;
+if (!req-tid) thread = (struct thread *)grab_object( current );
+else if (!(thread = get_thread_from_id( req-tid ))) return;
 
 if ((hook = add_hook( thread, req-id - WH_MINHOOK )))
 {

-- 
Alexandre Julliard
[EMAIL PROTECTED]