Sign in to follow this  
Followers 0
saraths007

Tricky Copy Paste Problem

15 posts in this topic

#1 ·  Posted (edited)

Hi,

I just started using AutoIt...All i want is to copy some documents in a cd to ms word...The Cd Interface has a left pane with the document names (Tree Struture)and when we click on the document name,the corresponding document will open in the right pane.So i want to simulate the copy of each document one by one and save it in each ms word file.

But the problem is CD has protection mechanism...ie. If i do CTRL + A ,Then Ctrl + C the selected text will be reduced to just 10 lines only...Accidently i found a trick to get rid of this protection which worked...

Steps..

1) click on the left pane and select a doucment

2)that document will open in the right pane

3)click on the right pane

4)click on END key(or SCROLL DOWN) to go to the bottom

5)click Mouse LEFT KEY on the Bottom Rightmost corner AND DRAG to the Start of the document(yes we have to drag from bottom to top for it to work!)

6)WITHOUT releasing the Left mouse button click ALT+TAB

7) on ALT+TAB we will reach previously opened MS word document window

8)there release the left mouse button in the word window)

9)Again Do ALT+TAB and reach the Cd Interface

10)Then Do CTRL+C(Yes it will select whole document!!)

11)Again ALT+TAB to WORD

12)Ctrl+V

******************************

THIS IS WHAT I WANT TO SIMULATE...Can anyone HELP ME???

**************************************************

Atleast HELP ME WITH THIS...

MouseClickDrag....I want to click and drag from bottom to top....so how to specify the coordinates???the document has so many pages also vertical scroll...Also different document will have different pages so dont think manually specifying mouse down; mouse move; mouse up will work in all cases

So How to Perform mouseclickdrag from bottom to the top of page (ie from END to HOME of the document)

Edited by saraths007

Share this post


Link to post
Share on other sites



Why no reply guys?atleast tell this...

How to click drag the mouse from bottom to top of different documents which have vertical scroll bar ?can anyone help?

i should be able to mouseclickdrag from document END to document HOmE...any idea???

Share this post


Link to post
Share on other sites

If that's what you want... here's an idea:

MouseDown("Left")
Send("{HOME}")
MouseUp("Left")

The script itself is very sloppy, but I suppose it could work.

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

If that's what you want... here's an idea:

MouseDown("Left")
Send("{HOME}")
MouseUp("Left")

The script itself is very sloppy, but I suppose it could work.

Kurt

No ,No Not working at all...

Basically what i want is to simulate this sequence

1)Press END Key to reach the bottom

2)Click and Drag mouse from bottom to top

3)Keeping the mouse Down,Alt+Tab to a word document

Somebody help me with the 2nd sequence(drag from bottom to top)....Others are all fine...

Share this post


Link to post
Share on other sites

It's a simple script. Build it yourself, it shouldn't take long (even if you are new). Look through the helpfile. Look up the function: Send() Mouse*()

Kurt


Awaiting Diablo III..

Share this post


Link to post
Share on other sites

.Accidently i found a trick to get rid of this protection which worked...

Why is there protection???

... and why in the world do you think we here at Autoit should help????

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

It's a simple script. Build it yourself, it shouldn't take long (even if you are new). Look through the helpfile. Look up the function: Send() Mouse*()

Kurt

I tried all of them Send ,MouseClickDrag n all....nothing Seems to work...

What i want is MouseClickDrag("left",END x,END y,HOME x,HOme y)...i cannot specify coordinates as there are so many doucments with different lengths......also the document has vertical scroll..

Just tellme how to specify end x,end y,Home x and Home y coordinates

Edited by saraths007

Share this post


Link to post
Share on other sites

Why is there protection???

... and why in the world do you think we here at Autoit should help????

8)

Hello FYI,the same company which created the CD has approached me to somhow simulate and reproduce there documents as word files...they lost all the backup documents,now onky way for them is to get it from the cds...

Share this post


Link to post
Share on other sites

Hello FYI,the same company which created the CD has approached me to somhow simulate and reproduce there documents as word files...they lost all the backup documents,now onky way for them is to get it from the cds...

Do you write books too???

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Do you write books too???

8)

Not Willing to help newbies,Also make fun of us...Thanks AutoIt Team :whistle:

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Not Willing to help newbies,Also make fun of us...Thanks AutoIt Team :whistle:

Sorry, if you feel that way.... It's Just that...

That last post of yours was definitely "Fiction"

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Sorry, if you feel that way.... It's Just that...

That last post of yours was definetly "Fiction"

8)

Ohhhhhhhh...No..its true..

Anyway can u help click and drag my mouse from bottom to top of a documet(END to HOME)???

Share this post


Link to post
Share on other sites

Does this give you any ideas

HotKeySet("+!d", "Copytxt")  ;Shift-Alt-d
while 1
    Sleep(100)
WEnd
Func Copytxt()
    MouseClick("",500,500)
    Send("^{END}")
    Send("{SHIFTDOWN}")
    Send("^{HOME}")
    Send("{SHIFTUP}")
    Send("^c")
    MsgBox(0,"",ClipGet())
EndFunc


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Does this give you any ideas

HotKeySet("+!d", "Copytxt")  ;Shift-Alt-d
while 1
    Sleep(100)
WEnd
Func Copytxt()
    MouseClick("",500,500)
    Send("^{END}")
    Send("{SHIFTDOWN}")
    Send("^{HOME}")
    Send("{SHIFTUP}")
    Send("^c")
    MsgBox(0,"",ClipGet())
EndFunc

OOPS>>complete Failure...Told you several keystrokes are disabled...Only way is click n drag mouse from bottom to top...any ideas///

ps: thIS SCRIPT WORKED IN A NORMAL MS WORD DOCUMENT,BUT THERE I CAN DO CTRL+a EVEN...BUT IN THE CD,IT DINT WORK

Edited by saraths007

Share this post


Link to post
Share on other sites

OOPS>>complete Failure...Told you several keystrokes are disabled...Only way is click n drag mouse from bottom to top...any ideas///

Its real pity that such a hyped script cannot click and drag the mouse from END to HOME of a document :whistle:

This is my first experiment with Auto It...Seems it will be a failure...sombody help...

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  
Followers 0