Stefanowski Posted January 13, 2009 Posted January 13, 2009 (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}") WEndGreat Edited January 14, 2009 by Stefanowski
Developers Jos Posted January 13, 2009 Developers Posted January 13, 2009 Welcome. What have you tried and isn't working? 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.
FireFox Posted January 13, 2009 Posted January 13, 2009 @Stefanowski welcome to autoit forum Send("{F1}") ;or for held down Send("{F1 DOWN}") For check window use WinActivate ; Win ... Cheers, FireFox.
Stefanowski Posted January 13, 2009 Author Posted January 13, 2009 (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 January 13, 2009 by Stefanowski
Prab Posted January 13, 2009 Posted January 13, 2009 Try the help file. It can be found at Start -> All programs -> AutoIT -> AutoIT Help File. Good luck with your coding. FolderLog GuiSpeech Assist
Developers Jos Posted January 13, 2009 Developers Posted January 13, 2009 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.
Stefanowski Posted January 13, 2009 Author Posted January 13, 2009 I'm gonna try to code my 1st program Wish me luck. btw: I'll post the results.
Stefanowski Posted January 13, 2009 Author Posted January 13, 2009 I made this: WinActivate("Client") If WinActive("Client") ThenSend("{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
Stefanowski Posted January 14, 2009 Author Posted January 14, 2009 (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 January 14, 2009 by Stefanowski
L3G3NdKillEr Posted January 14, 2009 Posted January 14, 2009 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=----=========================>
Stefanowski Posted January 14, 2009 Author Posted January 14, 2009 Hurray! It's done! Thanks! While 1=1 ControlSend("Client", "", "", "{1 DOWN}") WEnd
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now