Jump to content

Recommended Posts

Posted

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

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
×
×
  • Create New...