Home > Net >  Sweep the keyboard hook code gun how can not let external focus output
Sweep the keyboard hook code gun how can not let external focus output

Time:10-18

Requirements:
Access to usb port scan code gun scan code in the program content (not shown)

The keyboard hook, currently used to monitor the keyboard keys
This all can, as long as is a debug mode can focus in the absence of circumstances get

But found a problem, if the other interface external program code has a focus on the content and output to the focus position, the effect is not ideal

Don't let external focus output code content, how to do ah

Give advice or comments please!

CodePudding user response:

I remember that hooks into global hooks and local hooks,
As long as the set (0/1) the value of the hook main function good, you give it a try

CodePudding user response:

reference 1st floor hanjun0612 response:
I remember hooks into global hooks and local hooks,
As long as the set (0/1) the value of the hook main function is good, you give it a try


Thank you very much!

But... Tried really solve the problem of the external focus but Saul yards outside the gun itself is program threads, so he code gun scan code also can not get...

Specifies the sweep of hook code gun? Feasible?
With hooks for the first time, really don't use

CodePudding user response:

refer to the second floor acdyf response:
thank you!

But... Tried really solve the problem of the external focus but Saul yards outside the gun itself is program threads, so he code gun scan code also can not get...

Specifies the sweep of hook code gun? Feasible?
With hooks for the first time, really not using


I remember you should first get you need a handle to the window, in the Hook function, should have let you set the window handle,
Because the things I N years ago, I remember not too clear,

CodePudding user response:

refer to the second floor acdyf response:
Quote: refer to 1st floor hanjun0612 response:

I remember that hooks into global hooks and local hooks,
As long as the set (0/1) the value of the hook main function is good, you give it a try


Thank you very much!

But... Tried really solve the problem of the external focus but Saul yards outside the gun itself is program threads, so he code gun scan code also can not get...

Specifies the sweep of hook code gun? Feasible?
With hooks for the first time, really not using





reference hanjun0612 reply: 3/f
Quote: refer to the second floor acdyf response:

Thank you very much!

But... Tried really solve the problem of the external focus but Saul yards outside the gun itself is program threads, so he code gun scan code also can not get...

Specifies the sweep of hook code gun? Feasible?
With hooks for the first time, really not using


I remember you should first get you need a handle to the window, in the Hook function, should have let you set the window handle,
Because the things I N years ago, I remember not too clear,


Thank you very much!

Maybe you haven't met sweep code gun that demand...
Simply speaking, a program is their own, and code is gun system (and is not interface)

With the serial port to say (praise serial port!!!!!!!!!!! A serial port, live forever!!!!!!!!!!! ) directly to a serial port communication doesn't just what a mess problem is a little inconvenient didn't have to turn the usb serial port of the serial port

I am gonna have a lot of problems with usb port, the search on the net is to simulate keyboard input for sweep code content... Is now encountered a, with local can't get out of code gun, with the focus of the global and control outside... Then there is because is to monitor the keyboard, there will be a lot of this particular input such as shift + buttons and Chinese input problem

In research studies do not use serial port

CodePudding user response:

At that time I have to do is sweep code gun, developed with wince platform,
But maybe it's a different needs, I was need to capture global hooks,

CodePudding user response:

reference 5 floor hanjun0612 reply:
at that time I have to do is sweep code gun, developed with wince platform,
But maybe it's a different needs, I was need to capture global hooks,


Do not know much about wince
And by monitoring the keyboard for flicking code gun code? Global hooks, focus on what to do with external

CodePudding user response:

refer to 6th floor acdyf response:
Quote: refer to the fifth floor hanjun0612 reply:

At that time I have to do is sweep code gun, developed with wince platform,
But maybe it's a different needs, I was need to capture global hooks,


Do not know much about wince
And by monitoring the keyboard for flicking code gun code? Global hooks, focus on what to do with external

Yes, monitoring the keyboard
I was to monitor the entire keyboard on the screen, so there is no this problem, you

CodePudding user response:

I use the serial port scan code gun

CodePudding user response:

refer to the eighth floor zeratul1990 response:
I use serial port scan code gun


Long live the serial port

CodePudding user response:

The building Lord finally solve didn't encounter the situation with you now have a lot of bad days or control the external focus to write

CodePudding user response:

references to the tenth floor qq_35796581 response:
the building Lord finally solve didn't encounter the situation with you now have a lot of bad days or control the external focus of written


1. Use a serial port
2. In the process of their target location to write "please click here after scan code" instructional text, such as

You can think of is the two

Or to take the time to study yourself...

CodePudding user response:

I also have this situation before, then I added a length of time and judgment

CodePudding user response:

11 references acdyf response:
Quote: reference to the tenth floor qq_35796581 response:

The building Lord finally solve didn't encounter the situation with you now have a lot of bad days or control the external focus of written


1. Use a serial port
2. In the process of their target location to write "please click here after scan code" instructional text, such as

You can think of is the two

Or to take the time to study yourself...

Study finally didn't out for a long time, or tell you situation, using the global hooks, when other program has input focus and gun sweep the yard will appear in other program on the input focus, while demand is sweeping code can obtain code input, input at the same time does not affect another program, very embarrassed

  •  Tags:  
  • C #
  • Related