Jump to content

Recommended Posts

Posted (edited)

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
Posted (edited)

Humm... Thanks firefox, but I don't really know what to do even with Your hints.

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

And thanks guys :)

Edited by Stefanowski
  • Developers
Posted

  Stefanowski said:

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.
  :)

Posted

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

Posted (edited)

Need help. please...

I made

WinActivate("Client")
While 1=1
Send("{1 DOWN}")
WEnd

It should press that key all time now.

But how about clicking it in NOT activated window, minimized....?

Edited by Stefanowski
Posted

see Controlclick in Helpfile.. :)

i'm very responsible, when ever something goes wrong they always say I'm responsible.Life is like an Adventure... BUT COOL GRAPHICS<====================----=LEGEND KILLER=----=========================>

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
  • Recently Browsing   0 members

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