Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 21:48

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

Advertisement



[AutoIT] Send Key

Discussion on [AutoIT] Send Key within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
sui~'s Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 28
Received Thanks: 7
[AutoIT] Send Key

Hello coders =)
i need your help, how to send keys to minimized/hidden aplication?
for example i got 2 game clients
i want play at client1, and set marco which send key "2" to minimized client2

Best Regards
sui~
sui~ is offline  
Old 02/17/2009, 17:10   #2
 
DamageBreaker's Avatar
 
elite*gold: 0
Join Date: Nov 2008
Posts: 358
Received Thanks: 43
Controlsend() use this
DamageBreaker is offline  
Old 02/17/2009, 17:47   #3
 
sui~'s Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 28
Received Thanks: 7
i need something else.. cause ControlSend maximize second client :S
sui~ is offline  
Old 02/17/2009, 18:22   #4
 
DamageBreaker's Avatar
 
elite*gold: 0
Join Date: Nov 2008
Posts: 358
Received Thanks: 43
Quote:
Originally Posted by sui~ View Post
i need something else.. cause ControlSend maximize second client :S
what ? since when? k another try

1. search for your client with the PID
2. then use the attributes @sw_minimize or maximize
3. use a while loop that make controlsend and then sw_minimize or you block the process to maximize

or very easy take the window and drag it to the edge then it is invisible^^
DamageBreaker is offline  
Old 02/19/2009, 13:12   #5
 
N.E.O.'s Avatar
 
elite*gold: 45
Join Date: Nov 2008
Posts: 4,308
Received Thanks: 991
ControlSend is the only order to send something to a hidden window.

For example:

PHP Code:
$hWnd "World of Warcraft"


ControlSend($hWnd,"","","Hello World!"

If you want to use ControlSend you must know how-to, look:


PHP Code:
ControlSend 
--------------------------------------------------------------------------------

Sends a string of characters to a control.


ControlSend "title""text"controlID"string" [, flag] )


 

Parameters

title The title of the window to access

text The text of the window to access
controlID The control to interact withSee Controls
string String of characters to send to the control
flag [optionalChanges how "keys" is processed:
  
flag (default), Text contains special characters like to indicate SHIFT and {LEFTto indicate left arrow.
  
flag 1keys are sent raw
Maybe you must use controlID and text for your hidden window.



#N.E.O.
N.E.O. is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
Autoit Send-Befehle
08/21/2010 - AutoIt - 6 Replies
Hey Com, da ich in letzter zeit oft gefragt wurde wie die Send-Befehle von Autoit sind dachte ich mir schreib sie hier mal rein. >>> Resultierender Tastendruck
AutoIT-Question-Send Befehl
07/08/2009 - Metin2 - 10 Replies
Ich würde mir gerne einen eigenen Bot zum Multihack von Gex001 erstellen, der die simplen funktionen des Farmbots von MarcoPolo beinhaltet: 1. Potten ab einer bestimmten TP Menge 2. SK einsetzten, wenn nicht mehr da 3. Sachen aufheben 1.+3. hab ich schon gelöst war auch nicht sehr schwer... Mein Problem ist, dass ich zum SK einsetzten ja vom Pferd absteigen müsste und dafür die Strg Taste gedrückt sein muss. Send ("{^}{H}") Send ("{F1}")
[AutoIT] Send Key
02/22/2009 - General Coding - 1 Replies
Hello coders =) i need your help, how to send keys to minimized/hidden aplication? for example i got 2 game clients i want play at client1, and set marco which send key "2" to minimized client2
AutoIT Send Probleme
06/13/2008 - AutoIt - 4 Replies
Hi Leute ich bastel mir einen bot der folgende Befehl schreiben soll: Send(" { " } ") Aber er sendet halt keine Gänsefüsschen weil die ja Teil des Send befehls selber sind oder nicht :confused:. Bitte helft mir mal ich muss wissen wie ich die Gänsefüsschen (") sende. Danke im vorraus
Autoit Send Problem
02/18/2008 - General Coding - 10 Replies
AutoItSetOption("SendKeyDelay",0) AutoItSetOption("SendKeyDownDelay",8) SoundPlay("4.mp3") sleep(5000) $i = 5 While $i =5 $coord = PixelSearch( 573, 315, 580, 350, 0x8C34F7, 50 ) If Not @error Then ;MsgBox(0, "X and Y are:", $coord & "," & $coord)



All times are GMT +1. The time now is 21:48.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.