Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Mouse Scroll commands

For general discussion related FlowStone

Mouse Scroll commands

Postby Rocko » Tue Mar 15, 2016 12:25 pm

Hi,

Is there any way for me to control 'mouse scroll' button via flowstone (Ruby? Green?) ?

Thanks,
Rocko
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Postby adamszabo » Tue Mar 15, 2016 8:55 pm

Yes you can do it in the 3.0.9 beta
adamszabo
 
Posts: 667
Joined: Sun Jul 11, 2010 7:21 am

Re: Mouse Scroll commands

Postby Rocko » Wed Mar 16, 2016 1:11 pm

For 3.0.9 Beta2 I see a 'mouse wheel' module in green. Is that what you are referring to or is there a way to implement it in a RUBY code?

Thanks,
Rocko
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Postby Tronic » Wed Mar 16, 2016 1:15 pm

Ruby using:
Code: Select all
def mouseWheel x,y,w
    # do something with x,y,w
end
Tronic
 
Posts: 539
Joined: Wed Dec 21, 2011 12:59 pm

Re: Mouse Scroll commands

Postby Rocko » Sun Mar 27, 2016 10:25 am

Hi,

This doesn't seem to work correctly. I'm simply trying to output the x,y,w readings to float (see simple schematic) and I receive wrong data.
Sometimes the 'w' data get updated (1 or -1) and sometimes it doesn't.

Am I doing something wrong or is there still a bug with 3.0.9 BETA ?

Code: Select all
def isInMousePoint x,y
   true
end

def mouseWheel x,y,w
   output 0,x
   output 1,y
   output 2,w
end
Attachments
mouseWheel_test.fsm
(1.01 KiB) Downloaded 983 times
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Postby Rocko » Wed Nov 30, 2016 4:08 pm

Hi,

Has anyone succeeded to work this out ?
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm

Re: Mouse Scroll commands

Postby aronb » Wed Nov 30, 2016 7:06 pm

Hi Rocko,

Yes... ;)

You can find an example here...
http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3860&start=0&hilit=mouse+wheel

I then used your example and got it working (3.0.9 Beta 2)

mouseWheel_test_AB.fsm
Mouse Wheel Ruby
(1.06 KiB) Downloaded 925 times


Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: Mouse Scroll commands

Postby Rocko » Thu Dec 01, 2016 8:05 am

Hi,

Thanks.
So this function will not be functional with v3.08.1, correct?
Rocko
 
Posts: 186
Joined: Tue May 15, 2012 12:42 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 70 guests