News:

VoxCommando works with Amazon Echo, Domoticz, EventGhost, Google Assistant, IFTTT, iTunes, J.River Media Center, Kodi, MediaMonkey, Nest, Philips Hue, Vera, Wemo, and the list keeps growing!

Main Menu

Hook and monitoring programs... How?

Started by Slalomen, July 04, 2015, 03:12:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nime5ter

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

I make the video with Hook problem but English is bad... Are you need this video?

jitterjames

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


nime5ter

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


jitterjames

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

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

Are you using keyboard hooks?

Or just mouse hooks?

Slalomen

#24
just mouse(Down and Up). Use DXInput for loops.

Slalomen

Then expected fixing of this problem? ::dis

jitterjames

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

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

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

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.