saraths007 Posted March 3, 2007 Share Posted March 3, 2007 (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 March 3, 2007 by saraths007 Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 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??? Link to comment Share on other sites More sharing options...
_Kurt Posted March 3, 2007 Share Posted March 3, 2007 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.. Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 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... Link to comment Share on other sites More sharing options...
_Kurt Posted March 3, 2007 Share Posted March 3, 2007 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.. Link to comment Share on other sites More sharing options...
Valuater Posted March 3, 2007 Share Posted March 3, 2007 .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) Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 (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*()KurtI 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 March 3, 2007 by saraths007 Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 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... Link to comment Share on other sites More sharing options...
Valuater Posted March 3, 2007 Share Posted March 3, 2007 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) Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 Do you write books too???8)Not Willing to help newbies,Also make fun of us...Thanks AutoIt Team Link to comment Share on other sites More sharing options...
Valuater Posted March 3, 2007 Share Posted March 3, 2007 (edited) Not Willing to help newbies,Also make fun of us...Thanks AutoIt Team Sorry, if you feel that way.... It's Just that...That last post of yours was definitely "Fiction"8) Edited March 3, 2007 by Valuater Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 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)??? Link to comment Share on other sites More sharing options...
BigDod Posted March 3, 2007 Share Posted March 3, 2007 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 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 Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 (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 March 3, 2007 by saraths007 Link to comment Share on other sites More sharing options...
saraths007 Posted March 3, 2007 Author Share Posted March 3, 2007 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 This is my first experiment with Auto It...Seems it will be a failure...sombody help... 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