banjoman Posted January 27, 2006 Share Posted January 27, 2006 2 scripts, first to send clipboard contents to a Word doc, second to send clipboard contents to OpenOffice Writer doc Word works Opt("WinTitleMatchMode", 2) ; If WinExists("Microsoft Word")=0 Then MsgBox(48, "The Word Bank", "There is no Microsoft Word window open") EndIf ; WinSetState("Microsoft Word", "", @SW_SHOW) ; ControlSend("Microsoft Word", "", "Edit1",ClipGet()) ControlSend("Microsoft Word", "", "Edit1"," ") WinActivate("Microsoft Word", "") but OpenOffice does not, Opt("WinTitleMatchMode", 2) ; If WinExists("OpenOffice.org Writer")=0 Then MsgBox(48, "The Word Bank", "There is no Open Office window open") EndIf ; WinSetState("OpenOffice.org Writer", "", @SW_SHOW) ; ControlSend("OpenOffice.org Writer", "", "Edit1",ClipGet()) ControlSend("OpenOffice.org Writer", "", "Edit1"," ") WinActivate("OpenOffice.org Writer", "") any thought please? Link to comment Share on other sites More sharing options...
cdkid Posted January 27, 2006 Share Posted January 27, 2006 hhhmmm all i can think of is: did u check the control for office? --hope this helps ~cdkid (im probably being stupid again) AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide! Link to comment Share on other sites More sharing options...
herewasplato Posted January 27, 2006 Share Posted January 27, 2006 Look in the AutoIt help file - index tab - under "Controls":Note: AutoIt only works with standard Microsoft controls - some applications write their own custom controls which may look like a standard MS control but may resist automation. Experiment!So, you have experimented and you know the results :-)Open Office probably does not use "standard Microsoft controls"........... [size="1"][font="Arial"].[u].[/u][/font][/size] 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