Chambs Posted November 8, 2006 Posted November 8, 2006 Is there a way I can use Autoit to have my keyboard only work on a certain program (injecting?) I want the keys to be sent to the program, while it is minimized.
Moderators SmOke_N Posted November 8, 2006 Moderators Posted November 8, 2006 Is there a way I can use Autoit to have my keyboard only work on a certain program (injecting?)I want the keys to be sent to the program, while it is minimized.ControlSend Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Chambs Posted November 8, 2006 Author Posted November 8, 2006 ControlSendWould I just need to set the ControlSend to the program?
PaulIA Posted November 8, 2006 Posted November 8, 2006 Would I just need to set the ControlSend to the program?Read the documentation in the help file on how to use ControlSend. Auto3Lib: A library of over 1200 functions for AutoIt
Chambs Posted November 8, 2006 Author Posted November 8, 2006 (edited) Read the documentation in the help file on how to use ControlSend. Thanks I've been looking for a helping guide. So the basic setup is ControlSend ( "title", "text", controlID, "string" [, flag] ) Now say I want to send the a few keys to the program and that's all (or if it's easier, just the whole keyboard), how would I go about separating them in the string section? Commas? Slashes? I'm going to be using a botting program and I want to use AutoIt to send the keys to the minimized program. Will this work? Edited November 8, 2006 by Chambs
Cue Posted November 8, 2006 Posted November 8, 2006 HotKeySet("a","Function") will capture the key "a" and only call the function so you could use that
Chambs Posted November 8, 2006 Author Posted November 8, 2006 HotKeySet("a","Function")will capture the key "a" and only call the function so you could use thatErr, could you elaborate?
Cue Posted November 8, 2006 Posted November 8, 2006 (edited) my apologies. I think i may have misunderstood you question. say you press the a key do you want that key to be sent to your minimised window only? if so you would have to use HotKeySet("a","Function_a") func Function_a() ControlSend ( "title", "text", controlID, "a" [, flag] ) Endfunc If you want to send a series of keys you dont need to seperate the string it will send the keys seperatly eg if you had "abcd+e" it will send a then b then c then d then Shift+e. if flag=1 then it will actually send + sign instead of shift look up "Send" in the helpfile for more info. Edited November 8, 2006 by Cue
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