Jump to content

[Need help] Auto click in minimized window. <EDIT: DONE!>


Recommended Posts

Hello.

I'm new to AutoIt.

I've heard many good things about this program.

I'm sure that it's possible, but I don't know how.

And here it goes:

I want my program (made with AutoIt) to click F1 all the time in specified application window, even when it's minimized.

It can do single clicks all the time, or simulate something like key being holded down. I mean I press F1 and I keep it pressed.

Let's say that the application name is "App1 window".

So... Can anyone of You expirenced AutoIt users help me with it?

I'd be glad to have program like this.

Thanks in advance.

EDIT:

It's done. For every1 who wants it:

While 1=1
ControlSend("Client", "", "", "{1 DOWN}")
WEnd

Great :)

Edited by Stefanowski
Link to comment
Share on other sites

  • Developers

Where I can find commands list and newbie's frist steps?

And thanks guys :)

There is a very extensive Helpfile installed in the AutoIt3 program directory. (F1 in SciTE)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I made this:

WinActivate("Client")
If WinActive("Client") Then
Send("{1 down}")
endif

But it doesn't work as I want it.

1st of all I don't want to press key in activated window. I want the key being pressed while "Client" is minimized on START bar.

2nd: key "1" isn't really holded down. When i run my program it's being pressed only once. How to make it being really hold down? Or maybe press the button infinite times?

Send("{1 }")

^ This one taps the button only once.

Help plz

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...