Re: Moving the mouse pointer by script

2016-02-03 Thread Roland Huettmann
Yes, that was the answer. Somehow I overlooked it.

As a little starter for those who need it here is a little script.

Without the wait command, the mouse movement is not visible.

on mouseUp
   get the topleft  of this stack
   add 10 to item 1 of it
   add 30 to item 2 of it
   put 1 into x
   put the width of this stack * 2 into n
   repeat n
  if item 1 of it >= the right of this stack then
 put x * -1 into x
  end if
  add x to item 1 of it
  set the screenMouseLoc to it
  wait 1
   end repeat
end mouseUp


Roland



On 3 February 2016 at 16:01, Klaus major-k  wrote:

> Hi Roland,
>
> > Am 03.02.2016 um 15:55 schrieb Roland Huettmann <
> roland.huettm...@gmail.com>:
> >
> > Looking up lots of sites and messages, I could not find a way moving
> > (dragging) the mouse pointer using a script.
> >
> > Or am I just blind?
> >
> > This is for an animation sequence... instead of the user dragging an
> > object, the object is dragged using the mouse without user interaction -
> so
> > the pointer is visually moving on the screen from A to B. The mouse
> pointer
> > is just moving to some location doing some action and the user watching
> it.
> > It should give a lesson to the user.
> >
> > A video can be made, but that is not what we intend to do. It should be
> > real.
> >
> > Any suggestions?
>
> check „the screenmouseloc“ in the dictionary.
> This is the only (location) property of the mouse that you can actually
> SET.
>
> > Roland
> >
> > I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
> > TO ME.
> > MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
> > CHEERS TO ALL OF THEM.
>
> Maybe version 7.1.2 (RC1) will make you even more happy? :-D
> It was published today.
>
>
> Best
>
> Klaus
>
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Moving the mouse pointer by script

2016-02-03 Thread Scott Rossi
As Klaus said, screenMouseLoc is what you need.

In my case, I'd like to know how not only how to move the mouse, but to
drag an object via script as well.  Obviously one can set the loc of the
object, but is there way to trick LiveCode into thinking the mouse is down
so that the standard actions of dragging and resizing can be accomplished
as well without having to do those actions by separate script?

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 2/3/16, 6:55 AM, "use-livecode on behalf of Roland Huettmann"
 wrote:

>Looking up lots of sites and messages, I could not find a way moving
>(dragging) the mouse pointer using a script.
>
>Or am I just blind?
>
>This is for an animation sequence... instead of the user dragging an
>object, the object is dragged using the mouse without user interaction -
>so
>the pointer is visually moving on the screen from A to B. The mouse
>pointer
>is just moving to some location doing some action and the user watching
>it.
>It should give a lesson to the user.
>
>A video can be made, but that is not what we intend to do. It should be
>real.
>
>Any suggestions?
>
>Roland
>
>I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
>TO ME.
>MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
>CHEERS TO ALL OF THEM.
>___
>use-livecode mailing list
>use-livecode@lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Moving the mouse pointer by script

2016-02-03 Thread Mike Bonner
If I can find the code, somewhere around here I have an external that sends
clicks.  For my use I had it send a down and up, was using it as part of a
remote control system. (so that I could run my computer, from my android
device)  If I can locate the code, it shouldn't be too hard to separate the
2 things (down and up) so that you can use it to click and hold, and send
the up when you wish..  The livecode built in click does down and up, and
doesn't work outside livecode.  Going in search of the code.

On Wed, Feb 3, 2016 at 2:03 PM, Scott Rossi  wrote:

> As Klaus said, screenMouseLoc is what you need.
>
> In my case, I'd like to know how not only how to move the mouse, but to
> drag an object via script as well.  Obviously one can set the loc of the
> object, but is there way to trick LiveCode into thinking the mouse is down
> so that the standard actions of dragging and resizing can be accomplished
> as well without having to do those actions by separate script?
>
> Regards,
>
> Scott Rossi
> Creative Director
> Tactile Media, UX/UI Design
>
>
>
>
> On 2/3/16, 6:55 AM, "use-livecode on behalf of Roland Huettmann"
>  roland.huettm...@gmail.com> wrote:
>
> >Looking up lots of sites and messages, I could not find a way moving
> >(dragging) the mouse pointer using a script.
> >
> >Or am I just blind?
> >
> >This is for an animation sequence... instead of the user dragging an
> >object, the object is dragged using the mouse without user interaction -
> >so
> >the pointer is visually moving on the screen from A to B. The mouse
> >pointer
> >is just moving to some location doing some action and the user watching
> >it.
> >It should give a lesson to the user.
> >
> >A video can be made, but that is not what we intend to do. It should be
> >real.
> >
> >Any suggestions?
> >
> >Roland
> >
> >I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
> >TO ME.
> >MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
> >CHEERS TO ALL OF THEM.
> >___
> >use-livecode mailing list
> >use-livecode@lists.runrev.com
> >Please visit this url to subscribe, unsubscribe and manage your
> >subscription preferences:
> >http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Moving the mouse pointer by script

2016-02-03 Thread Roland Huettmann
Looking up lots of sites and messages, I could not find a way moving
(dragging) the mouse pointer using a script.

Or am I just blind?

This is for an animation sequence... instead of the user dragging an
object, the object is dragged using the mouse without user interaction - so
the pointer is visually moving on the screen from A to B. The mouse pointer
is just moving to some location doing some action and the user watching it.
It should give a lesson to the user.

A video can be made, but that is not what we intend to do. It should be
real.

Any suggestions?

Roland

I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
TO ME.
MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
CHEERS TO ALL OF THEM.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Moving the mouse pointer by script

2016-02-03 Thread Klaus major-k
Hi Roland,

> Am 03.02.2016 um 15:55 schrieb Roland Huettmann :
> 
> Looking up lots of sites and messages, I could not find a way moving
> (dragging) the mouse pointer using a script.
> 
> Or am I just blind?
> 
> This is for an animation sequence... instead of the user dragging an
> object, the object is dragged using the mouse without user interaction - so
> the pointer is visually moving on the screen from A to B. The mouse pointer
> is just moving to some location doing some action and the user watching it.
> It should give a lesson to the user.
> 
> A video can be made, but that is not what we intend to do. It should be
> real.
> 
> Any suggestions?

check „the screenmouseloc“ in the dictionary.
This is the only (location) property of the mouse that you can actually SET.

> Roland
> 
> I AM VERY HAPPY WITH 7.1. IT IS STABLE SO FAR: AND THAT IS MOST IMPORTANT
> TO ME.
> MANY THANKS TO THE DEDICATED ENDLESSLY WORKING TEAM IN GOOD OLD SCOTLAND.
> CHEERS TO ALL OF THEM.

Maybe version 7.1.2 (RC1) will make you even more happy? :-D
It was published today.


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Moving the mouse pointer by script

2016-02-03 Thread Mike Bonner
nope, can't find it. If you have a handle on LCB you could try using
com.livecode.foreign in lcb to set up a mousedown and mouseup.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Moving the mouse pointer by script

2016-02-03 Thread BNig
Hi Scott,

just looked at it and if I understand what you want to do then the drag
command does it.

make a small graphic "g1" place it into the center of a card
make a button "bDrag" and place it in the topLeft cornder

another button in the lower half of the card

script of that button


on mouseUp
   put the bottomRight of btn "bDrag" into tStart
   subtract 1 from item 1 of tStart
   subtract 1 from item 2 of tStart

   put loc of grc "g1" into tEnd
   choose the pointer tool
   select button "bDrag"
   set the dragSpeed to 100
   drag button 1 from tStart to tEnd 
   choose the browse tool
end mouseUp
--

this will change the size of the button and you can watch this.

You can also move the button without changing its size if you don't select
and edit mode the script etc.

movement is not super smooth but it moves. DragSpeed controls speed.

Kind regards
Bernd



--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/Moving-the-mouse-pointer-by-script-tp4700669p4700697.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode