Author Topic: Hook and monitoring programs... How?  (Read 11136 times)

0 Members and 3 Guests are viewing this topic.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Hook and monitoring programs... How?
« Reply #15 on: July 06, 2015, 10:37:16 AM »
Thank you for the information.

James needs to investigate the problem with the Hook plugin. It will take some time.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Slalomen

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Hook and monitoring programs... How?
« Reply #16 on: July 06, 2015, 12:48:05 PM »
I make the video with Hook problem but English is bad... Are you need this video?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #17 on: July 06, 2015, 01:47:01 PM »
I don't think we need to see this video, but if you already made it then I will be happy to watch it in case it can help us to understand better.  ;D

Slalomen

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Hook and monitoring programs... How?
« Reply #18 on: July 06, 2015, 06:39:38 PM »
https://youtu.be/F5ZBTdK9oKg

Lol i speaking English like god))

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Hook and monitoring programs... How?
« Reply #19 on: July 06, 2015, 09:45:41 PM »
1000% better than my Russian.  :biglaugh
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #20 on: July 06, 2015, 11:01:18 PM »
https://youtu.be/F5ZBTdK9oKg

Lol i speaking English like god))

Thanks.  I will see if there is anything I can fix.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #21 on: July 07, 2015, 10:40:32 PM »
OK.  I have tried to make some changes to the hook plugin.  I do not have the same problem when I use the hook plugin so it makes it difficult to know if my changes will help you or not.  Please try the new version of the plugin and let me know if it works better.

How to update to the new plugin.

1 - Close VoxCommando
2 - Go to your VoxCommando\plugins folder
3 - Delete the hook folder
4 - Start VoxCommando
5 - On the main VoxCommando menu
 - Click "Plugins"
 - Click "More"
 - Click "Download Hook Plugin"
6 - Restart VoxCommando, and then open the settings for the hook plugin and put them back to the way you had them.
7 - Save your settings and then test.

Good luck! :)

Slalomen

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Hook and monitoring programs... How?
« Reply #22 on: July 08, 2015, 11:54:14 AM »
Thanks for your work, but still problem Hook is not response after 5-6 loops of 150-200 iterations, but now after Hook is not response the switching there are no problem its progress...

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #23 on: July 08, 2015, 12:11:51 PM »
Are you using keyboard hooks?

Or just mouse hooks?

Slalomen

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Hook and monitoring programs... How?
« Reply #24 on: July 08, 2015, 12:24:11 PM »
just mouse(Down and Up). Use DXInput for loops.
« Last Edit: July 08, 2015, 12:44:35 PM by Slalomen »

Slalomen

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Hook and monitoring programs... How?
« Reply #25 on: July 11, 2015, 03:31:46 PM »
Then expected fixing of this problem? ::dis

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #26 on: July 11, 2015, 03:57:32 PM »
I am working on it.  I do not know if I will be able to find a solution.

I have discovered that this seems to happen on slower systems, or when a system is very busy.  Perhaps it only happens when VoxCommando is busy for a long time.  Somehow the mouse hook is lost.

I have seen other programmers discussing this online with the same problem but none of them have a solution that I can find that works.  It is a very low level problem cause either by Windows, or by the .dll that I am using.  I have tried many different things to try to solve the problem in the plugin but so far I don't think I have made it any better.

Can you please send me the commands that you are using to do keyboard emulation.  I have a suggestion on something you can try but I think it will be easier for me if I can edit your command xml and then give it back to you than if I try to explain it.

thanks.

Slalomen

  • Jr. Member
  • **
  • Posts: 35
  • Karma: 0
    • View Profile
Re: Hook and monitoring programs... How?
« Reply #27 on: July 11, 2015, 04:08:54 PM »
Hmm... But i use many commands and after some time hook is not responsive not only loops there are many other commands((( I don`t know how i can help... maybe send my collection?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #28 on: July 11, 2015, 04:29:39 PM »
What kind of computer (CPU) are you using?

Does this happen any time, or only when you are playing games?

Well... if it can happen with any command, then I don't think there is any point in sending me your command collections.

If you are able to see a pattern of what causes it to happen then please let us know.

Maybe as a solution you can use a keyboard hook instead of a mouse hook?   I don't think that keyboard hooks have the same problem for some reason, even though they are using the same dll.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hook and monitoring programs... How?
« Reply #29 on: July 11, 2015, 05:07:24 PM »
Try this simple program that runs outside of VoxCommando and sends event messages to VoxCommando through UDP.

Maybe this will work better.

By default it will only generate events for XButton1, but you can change it.

This is very simple and only for testing.

Please turn OFF your hook plugin in VoxCommando when testing this program.