Jump to content

mousedrag help needed


boltc
 Share

Recommended Posts

i want to know if this is possible:

I want to select written line with the mousedrag command. Afther the text is selected i want to something with the text (get it as a variable).

is this possible? and how:)

greetss

Edited by boltc
Link to comment
Share on other sites

Why don't you get the input via the Control-commands?

Anyway, here's a sample.

HotKeySet('{Printscreen}', 'MouseDrag')

While 1
    Sleep(10)
WEnd    

Func MouseDrag()
    $Pos=MouseGetPos()
    $Size=WinGetPos('')
    MouseClickDrag('left', $Pos[0], $Pos[1], $Size[0]+$Size[2], $Pos[1])
    Send('^{c}')
    MsgBox(0, 'Copied', ClipGet())
EndFunc
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...