Jump to content
Sign in to follow this  
Stefanowski

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

Recommended Posts

Stefanowski

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

Share this post


Link to post
Share on other sites
FireFox

@Stefanowski

welcome to autoit forum :)

Send("{F1}")
;or for held down
Send("{F1 DOWN}")

For check window use WinActivate ; Win ...

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites
Stefanowski

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

Share this post


Link to post
Share on other sites
Prab

Try the help file. It can be found at Start -> All programs -> AutoIT -> AutoIT Help File. Good luck with your coding.

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Stefanowski

I'm gonna try to code my 1st program :) Wish me luck.

btw: I'll post the results.

Share this post


Link to post
Share on other sites
Stefanowski

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

Share this post


Link to post
Share on other sites
Stefanowski

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

Share this post


Link to post
Share on other sites
L3G3NdKillEr

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=----=========================>

Share this post


Link to post
Share on other sites
Stefanowski

Hurray! It's done!

Thanks!

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

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  

×