Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:39

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

Advertisement



ControlSend Problem.

Discussion on ControlSend Problem. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
ControlSend Problem.

Hey E*pvpers.

Hab ein Problem, das ausgelesene einer Combobox richtig weiterzuverwenden.

Folgendes Script hab ich getestet und es geht [Ausschnitt davon]

PHP Code:
$handle WinGetHandle(" & $iInput1 & ")

ControlSend($handle"""""{F5}"
Nun hab ich aber eine GUI mit einer Combobox in der man selbst eine Taste von F1 bis F9 auswählen kann.
Hab gedacht ich setze das so um:

PHP Code:
$handle WinGetHandle(" & $iInput1 & ")

ControlSend($handle"""""{" $iCombo1 "}"
bzw so:
PHP Code:
ControlSend($handle"""""{ & $iCombo1 & }"

Funktioniert aber leider beides nicht. Wäre nett, wenn ihr mir helfen könntet.

~Belur
Belur is offline  
Old 01/31/2011, 12:57   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
sollte glaube ich gehen...

PHP Code:
$handle WinGetHandle('"' $iInput1 '"')
;
$handle WinGetHandle('"' GUICtrlRead($iInput1) & '"')

ControlSend($handle"""""{F5}")  


ControlSend($handle""""'"{' $iCombo1 '}"')
;
ControlSend($handle""""'"{' GUICtrlRead($iCombo1) & '}"'
bzw dder erste teil im ControlSend ist der "title" also müsstest du noch wingettitle() machen
omer36 is offline  
Reply


Similar Threads Similar Threads
ControlSend Problem
11/12/2010 - AutoIt - 45 Replies
Hey E*pvpers. Bin grad dabei ein kleines F -Toll für Flyff zu schreiben. An sich ja ganz simpel. Hab nur folgendes Problem: Man kann Flyff 2 mal öffnen. Allerdings möchte ich nicht die F-Taste an beide Fenster senden sondern nur an eins. Die haben leider denselben Namen. Gibt es eine Funktion wie ich im Bot speichern kann, welches Fenster er anpeilen soll. Bei alten Bots, die leider gefixt sind, konnte man erst ein Flyff Fenster aktiv haben und dan im Bot auf "FindFlyff"...
ControlSend Problem
11/02/2010 - AutoIt - 17 Replies
Hallo alle zusammen , wie irh bestimmt wisst hat ControlSend immer eine Einschränkung für die Tastatur.... Jetzt wollte ich euch um Rat fragen ob es da irgendeine bestimmte UDF,oder sonsstwas gibt ... Ich denke das würde nicht nur mir helfen sondern auch andern
Problem mit Controlsend
08/06/2010 - AutoIt - 36 Replies
Hallo, Vielleicht haben manche von euch auch das Problem das wen es zuviele ControlSends im Script sind und du z.b. was schreiben willst dan die Tastatur komplett anfängt zu Spinnen. z.b.: Func _1() ControlSend("4Story_GSP", "", 0, "{TAB}") Sleep(150) ControlSend("4Story_GSP", "", 0, "{TAB}") Sleep(400)
Controlsend
01/01/2009 - GW Exploits, Hacks, Bots, Tools & Macros - 4 Replies
Hiho, ich würde gerne wissen, ob es eine Möglichkeit gibt den Slash bzw "^" als String und nicht als Strg-Druck an ein Fenster via Controlsend zu schicken. In meinem Script lass ich mir den String einer Inputbox in ne Variable schreiben und schick den dann an die GW-Fenster. Das geht Fehlerfrei, nur leider gehen Ausrufezeichen etc nicht mit Controlsend -.- Pls help me^^ ty im Voraus!



All times are GMT +2. The time now is 15:39.


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