Jump to content
Sign in to follow this  
Guest mark1221

How can i do this...

Recommended Posts

Guest mark1221

I have the name of a window and i want to be able to:

1. make that window active

2. show it

3. press "z" and "x" fast(xzxzxzxzxzxzxz....)

I hope i explained what i need but try to help me even if i didn't :ph34r:

Share this post

Link to post
Share on other sites

Well, to activate a window use:

WinActivate("Name of the Window")

To send keystrokes use:


But you probably want the text in a specified area. Therefore use:

ControlSend("Name of the Window", "", "classname from AU3_Spy", "zxzxzxzxzxzxzx")

Use AU3_Spy and place your cursor in the text area that you want to type into. The section called "Last Control Under Mouse" gives you the name to put into the classname parameter.

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