StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Volume gesture
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  05:13:19  Show Profile  Reply with Quote
I make this gesture, to increase and decrease the volume.
I use this code:
acSendKeys("{VOLDOWN}") with V gesture and then I spin

The problem is that when I make de gesture, the volume increase or decrease, but only a little bit, not the entire time in wich I spin the scroll wheel.

Rob

USA
2573 Posts

Posted - 10/31/2013 :  09:30:48  Show Profile  Visit Rob's Homepage  Reply with Quote
Do you have Fire Recognition on Mouse Wheel Scroll* checked under Preferences?

Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  13:32:34  Show Profile  Reply with Quote
No I haven't.
I have a mouse Gygabite wich has no application, and in control panel, on the mouse settings, there is no such option.
Go to Top of Page

Rob

USA
2573 Posts

Posted - 10/31/2013 :  13:44:44  Show Profile  Visit Rob's Homepage  Reply with Quote
I mean in the Preferences tab in StrokesPlus.
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  13:53:15  Show Profile  Reply with Quote
Oh, soryy.
Yes, was checked.
If I deselect it, all gesture with scroll whell, doesn;t work anymore. Not at all.
Zoom and volume.
If I check that checkbox, work again, but about 10% maybe less from volume.
I need to rezolva that problem, because I can;t use it anymore.
The weird thing is that in the begeaning, this was working, and then, I don't know when, it stop working.
Go to Top of Page

Rob

USA
2573 Posts

Posted - 10/31/2013 :  14:32:28  Show Profile  Visit Rob's Homepage  Reply with Quote
Do you mean it's only changing the volume a very small amount? Or it only changes it a little then stops?

Paste your action scripts here.
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  14:39:31  Show Profile  Reply with Quote
acSendKeys("{VOLUP}")
acSendKeys("{VOLDOWN}")
This is the code and is checked "Scroll up or down, according with command.

I observ that this is happens on zoom too.
Same behavior.

Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  14:43:17  Show Profile  Reply with Quote
And the behavior is just like this:
I make the gesture with right click pressed, I keep pressed right click and I spin the wheell.
The zoom makes only 2-3 steps in, and than out.
The volume increase or decrease very few steps. I you divide the volume bar from windows in ten parts, the gesture mouve volume one part.
Go to Top of Page

Rob

USA
2573 Posts

Posted - 10/31/2013 :  14:46:18  Show Profile  Visit Rob's Homepage  Reply with Quote
quote:
Originally posted by Rob

Do you mean it's only changing the volume a very small amount? Or it only changes it a little then stops?


I have the exact same scripts and they work fine for me. Do you have any keyboard software? Since all it does is send that keystroke (which might be intercepted by keyboard software).

You can also try using the scripts in this post. Those directly change the volume in Windows, instead of sending a keystroke to adjust volume.
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  14:49:03  Show Profile  Reply with Quote
I have a laptop and I don't know about any kind of software.
Weird is that before I make all my gesture, it was working.
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  14:55:53  Show Profile  Reply with Quote
And yes, works beautifull.
For zoom there is another code for this?
Go to Top of Page

Rob

USA
2573 Posts

Posted - 10/31/2013 :  14:56:56  Show Profile  Visit Rob's Homepage  Reply with Quote
What are your current zoom scripts?
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  14:57:51  Show Profile  Reply with Quote
acSendKeys("^{PLUS}")
acSendKeys("^{SUB}")

Edited by - mesersmith on 10/31/2013 14:58:09
Go to Top of Page

Rob

USA
2573 Posts

Posted - 10/31/2013 :  15:00:47  Show Profile  Visit Rob's Homepage  Reply with Quote
Hmm, not sure about that one...that's just the standard hotkey to zoom. Again, it works fine for me in Chrome, not sure what is happening on your system/configuration.

If you close S+, backup your StrokesPlus.xml, and replace it with the standard StrokesPlus.xml from the download ZIP, does it work properly? I'm trying to determine if there's something specific to your configuration that's causing the issue, or something outside of S+.
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 10/31/2013 :  15:19:08  Show Profile  Reply with Quote
It works worst.
When I make Z gesture and spin the wheell, it changes tabs on Chrome.
Go to Top of Page

Rob

USA
2573 Posts

Posted - 10/31/2013 :  15:30:02  Show Profile  Visit Rob's Homepage  Reply with Quote
Well that doesn't make any sense. I'm not sure what to tell you, something is certainly goofed up, but I can't reproduce it on my side, so it's hard for me to help you fix it.

The only thing I can suggest is to try simplifying to debug, make a simple gesture without the wheel scroll and see if zooming works. Press CTRL+ and CTRL- to see if it actually zooms in Chrome.

You could also try sending the mouse wheel events to zoom instead of the key commands.

Zoom In:
local WM_MOUSEWHEEL = 0x20A
local WHEEL_POS = 0x00780000 --standard 120 tick of a mouse wheel scroll up, pre-left-shifted for simplifying usage below
local WHEEL_NEG = 0xff880000 --standard -120 tick of a mouse wheel scroll down, pre-left-shifted for simplifying usage below
local MK_CONTROL = 0x08
--Control + Scroll Up
acPostMessage(acGetWindowByPoint(gsx, gsy), WM_MOUSEWHEEL, WHEEL_POS+MK_CONTROL, bit32.lshift(gsy,16)+gsx)
Zoom Out:
local WM_MOUSEWHEEL = 0x20A
local WHEEL_POS = 0x00780000 --standard 120 tick of a mouse wheel scroll up, pre-left-shifted for simplifying usage below
local WHEEL_NEG = 0xff880000 --standard -120 tick of a mouse wheel scroll down, pre-left-shifted for simplifying usage below
local MK_CONTROL = 0x08
--Control + Scroll Up
acPostMessage(acGetWindowByPoint(gsx, gsy), WM_MOUSEWHEEL, WHEEL_NEG+MK_CONTROL, bit32.lshift(gsy,16)+gsx)
Go to Top of Page

mesersmith

Romania
41 Posts

Posted - 11/02/2013 :  05:30:58  Show Profile  Reply with Quote
With this code works great.
Thanks a lot.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000