Sign in to follow this  
Followers 0
Chambs

General question about keyboards and programs.

8 posts in this topic

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.

Share this post


Link to post
Share on other sites



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

[center]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.[/center]

Share this post


Link to post
Share on other sites

ControlSend

Would I just need to set the ControlSend to the program?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Read the documentation in the help file on how to use ControlSend.

Thanks :whistle: 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 by Chambs

Share this post


Link to post
Share on other sites

HotKeySet("a","Function")

will capture the key "a" and only call the function so you could use that

Share this post


Link to post
Share on other sites

HotKeySet("a","Function")

will capture the key "a" and only call the function so you could use that

Err, could you elaborate?

Share this post


Link to post
Share on other sites

#8 ·  Posted (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 by Cue

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  
Followers 0