Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:18

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



how to make Script that sends keys to program when its minimised

Discussion on how to make Script that sends keys to program when its minimised within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 115
Received Thanks: 5
how to make Script that sends keys to program when its minimised

Hi, I would like to make script that will continuosly spam these keys at the same time until i stop E.g. Using these Z+2+space every 0.5 sec all the time until i stop it. But I want to use it on just one program so I can minimise it and for. e.g browse internet and stuff.. I am new person to Auto it so looking for some help from you guys?
Thanks
dami10678 is offline  
Old 12/06/2014, 18:07   #2
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,234
Received Thanks: 1,095
you can use ControlSend() . read the helpfile
fear-x is offline  
Old 12/06/2014, 18:10   #3
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You can't send keys to a window which is minimized. Restore it and put it in the background.
alpines is offline  
Old 12/06/2014, 18:13   #4
 
elite*gold: 0
Join Date: Nov 2010
Posts: 115
Received Thanks: 5
Would you guys guide me with how to make it as im newbie..

I tried this but it doesnt work..

AutoItSetOption ("WinTitleMatchMode",2)
While 1
Sleep (2000)
ControlSend ("iMetin.pl","","","{Space}")
ControlSend ("iMetin.pl","","","{2}")
ControlSend ("iMetin.pl","","","{z}")
WEnd

@It works only if i click chat but there are items that are going to be used when it click e.g. 2 and it doesnt click it only do it if i click on chat why?
dami10678 is offline  
Old 12/06/2014, 22:00   #5
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
You may press on 2 for a short time. Try something like this
Code:
ControlSend("window", "", "", "{SPACE down}")
Sleep(250)
ControlSend("window", "", "", "{SPACE up}")
alpines is offline  
Old 12/07/2014, 09:40   #6
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
If you have to press the key for a specific time, you should modify the "SendKeyDownDelay" option.
Code:
Opt("SendKeyDownDelay", 250)
KDeluxe is offline  
Reply


Similar Threads Similar Threads
<help please > how can i make Program
02/13/2014 - .NET Languages - 6 Replies
how can i make Program when i make some change in it and save it update all users have the Program ?? by visual basic like that http://www2.0zz0.com/2014/02/09/16/602758196.jpg
What program that ppl use to make hack ?
06/27/2012 - Cabal Online - 4 Replies
can someone tell me please.
Simple autologin (even if sro minimised)
10/18/2009 - SRO PServer Guides & Releases - 54 Replies
Credits for Iliasvadaz not for jkstar the website posted the source in july i created the script in june so they stole the source from me so give credits to me not them i hope an admin can see this! Today IŽd like to show you a simple but still effective way of logging into ECSRO servers. Since everyone knows the method with putting something heavy on his ENTER key and come back some time later , it actually prevents you from working or playing other games meanwhile. This little AutoIT...
CAn you make a program were you cant see any one
12/09/2005 - Conquer Online 2 - 4 Replies
sorry about the question but i am wondering if it is possiable to make a program that makes it so you cant see any player. this could help alot of people in TG like me with the lag prob.



All times are GMT +1. The time now is 11:18.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.