Forum Discussion

kalldrexx's avatar
kalldrexx
Contributor
14 years ago

How can I drag and hold the mouse?

I am trying to select all the text in a multi-line select box.  Due to oddities with the application, I cannot simply Ctrl+A to select all.  Therefore I am attempting to drag the mouse through everything.



The problem is, I cannot simply use the Drag function, because when the dragging action gets to the physical edge of the text box, I need the drag action to hold until the textbox has scrolled all the way to the bottom.  Unfortunately, it appears like there is no way to keep the drag action held down for a specific period of time.



How else can I accomplish this?  I see there is a ClickAndHold function, but I can't figure out how to move the mouse or release the mouse.  The documentation shows a MouseMove and MouseUp method, but those are tied to a LLPlayer object, which I cannot figure out how to access from the C# API (there is no LLPlayer property in the Connect class).



How can I accomplish this?

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Community Hero
    Hi Matthew,



    Isn't it possible to select all text by emulating something like Ctrl-Home/Ctrl-PgUp to move the cursor to the text start and then Ctrl-Shift-End/Ctrl-Shift-PgDn to select all text. Using keyboard shortcuts seems to be more reliable to me...
  • Oh good suggestion, I didn't even know about that shortcut.  That seems to be a viable solution!