Sign in to follow this  
Followers 0
SimonLu

How to keep the window for the Microsoft Word, Excel or Powerpoint by SendKeepActive?

2 posts in this topic

Hi,

When I use the SendKeepActive() in order to keep the windows of the word/excel or powerpoint but failed. Can someone teach me how to do it?

Below is my source code:

===

Send("#r")

WinWaitActive("執行")

Send("winword.exe{Enter}")

SendKeepActive("[CLASS:winword]")

Sleep(1000)

For $i = 1 to 10

Sleep(1000)

Send("Hello")

Next

===

How to get the internal CLASS name of the Microsoft Word?

Or, How do I use the title to specify the window, like SendKeepActive("Document1 - Microsoft Word")? but unable to work still.

Thanks for your help.

Simon

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