P.I. Engineering User Forum

Product Support, Technical Questions and Answers, and Examples for P.I. Engineering Products

You are not logged in.

#1 2017-05-01 14:16:39

GordR
Member
Registered: 2017-04-05
Posts: 17

Moving a slider

Hello;
  I want to move an on-screen slider so I have tried the following:

        MW3.MouseMoveScreen(1405,593)
    MW3.sendMouseClick("Left",true)
        MW3.MouseMoveScreen(1405,610)
    MW3.sendMouseClick("Left",false)

thinking that ...Click("Left",true) was the same as "mouse down"
and ...Click("Left",false) was the same as "mouse up"

but not so much.

Any ideas on how to drag a screen object?

Offline

#2 2017-05-01 15:18:37

PIE Amber
Technical Software Developer
From: Williamston, MI
Registered: 2016-01-21
Posts: 169
Website

Re: Moving a slider

The problem isn't with mouse up/mouse down, it's that "Mouse Move Screen" doesn't move the mouse by dragging it. It snaps it into the location you've chosen.

Your best bet is to click on the slider with the first mouse function you have there so it is "in focus" and then use arrow keys to move it up or down.


Amber from P.I. Engineering

Offline

#3 2017-05-01 17:31:57

GordR
Member
Registered: 2017-04-05
Posts: 17

Re: Moving a slider

Thanks for your quick reply and the information.

Offline

Board footer

Powered by FluxBB