Sign in to follow this  
Followers 0
Knewbee

Script for specific window only

5 posts in this topic

#1 ·  Posted

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



#2 ·  Posted

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

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

#4 ·  Posted

While your friend may be correct, AutoIT is a completely different language so the script would need to be completely rewritten.

BTW, what program are you trying to automate?

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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