boltc Posted November 16, 2006 Share Posted November 16, 2006 (edited) 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 November 16, 2006 by boltc Link to comment Share on other sites More sharing options...
Fossil Rock Posted November 16, 2006 Share Posted November 16, 2006 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! Link to comment Share on other sites More sharing options...
boltc Posted November 16, 2006 Author Share Posted November 16, 2006 a input box of a program,, the same a written in notepad.. (possible to select it and copy & past) Link to comment Share on other sites More sharing options...
dabus Posted November 16, 2006 Share Posted November 16, 2006 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 More sharing options...
boltc Posted November 17, 2006 Author Share Posted November 17, 2006 thank you! i tested my script today and it works very nice.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now