Jump to content
Sign in to follow this  
boltc

mousedrag help needed

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

Share this post


Link to post
Share on other sites

Where is the text ? in a file ? on the screen ? written in a notebook sitting on the kitchen floor ?


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...