Page 1 of 1

Ruby - Mouse Cursor 'Hold' function

Posted: Thu Apr 14, 2016 6:16 am
by tiffy
I don't find any instruction in Ruby (searched the internet & DSP User Manual) to 'Hold' the Mouse Cursor in position whilst dragging the mouse. It is strange because the instructions to 'Hide' or 'Show' the mouse cursor is available, but not any 'Hold' function? Or did I overlook something? The 'Hold' function is such a breeze and a must have.

Re: Ruby - Mouse Cursor 'Hold' function

Posted: Thu Apr 14, 2016 9:32 am
by TheOm
AFAIK it's not "built in" in FS-Ruby but you can do it via the Win32API:

Re: Ruby - Mouse Cursor 'Hold' function

Posted: Thu Apr 14, 2016 11:24 am
by tulamide
TheOm wrote:AFAIK it's not "built in" in FS-Ruby but you can do it via the Win32API:

A nice little helper file! Thanks for sharing. I needed the prim to hold the mouse position, now I can go all Ruby. (I should think of the Windows API more often, but I'm so lazy when it comes to preparing the calls :lol: )

Re: Ruby - Mouse Cursor 'Hold' function

Posted: Sat Apr 16, 2016 12:38 pm
by tiffy
@TheOhm...thanks for this help with the Mouse "hold" function using the Win32API.