Jump to content
Sign in to follow this  
Knewbee

Script for specific window only

Recommended Posts

Knewbee

Hi,

Can any one help me, this is what i want to do, i want to run the script only in that window and that window is not active, ill be sending key strokes and a mouse click.

here is my script

$f2::
Loop
{
Send, {f2}
Sleep, 250
MouseClick, left, 406, 327
Sleep, 250

if GetKeyState("f2", "P")
break
}

Share this post


Link to post
Share on other sites
Knewbee
8 hours ago, Danp2 said:

This looks like an AutoHotkey script. Are you trying to rewrite it in AutoIT?

Yes, my friend told me that it is possible to run that scrip in AutoIT even if the window is minimized

Share this post


Link to post
Share on other sites
13lack13lade

You will need to activate the window, or controlsend to that window.

However, that's all the help your going to get considering this is definitely a gaming script.....

Edited by 13lack13lade

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.