Register for your free account! | Forgot your password?

Go Back   elitepvpers › Coders Den › AutoIt
You last visited: Today at 19:02

  • 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   #46
 
Belur's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 3,441
Received Thanks: 1,473
Hier mal der Code: Wie gesagt, er sendet nicht die in der ComboBox ausgewählten Tasten sondern immer nur "C". Vllt weiß jetzt jmd weiter.

PHP Code:
#include <ButtonConstants.au3> 
#include <ComboConstants.au3> 
#include <EditConstants.au3> 
#include <GUIConstantsEx.au3> 
#include <WindowsConstants.au3> 
#Region ### START Koda GUI section ### Form= 
$Form1 = GUICreate("Form1", 630, 284, 192, 124) 
$Combo1 = GUICtrlCreateCombo("Combo1", 24, 24, 185, 25) 
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F8|F9") 
$Input1 = GUICtrlCreateInput("Input1", 224, 24, 169, 21) 
$Button1 = GUICtrlCreateButton("Button1", 408, 24, 81, 25, $WS_GROUP) 
$Button2 = GUICtrlCreateButton("Button2", 512, 24, 81, 25, $WS_GROUP) 
$Input2 = GUICtrlCreateInput("Input2", 224, 64, 169, 21) 
$Combo2 = GUICtrlCreateCombo("Combo2", 24, 64, 185, 25) 
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F8|F9") 
$Button3 = GUICtrlCreateButton("Button3", 408, 64, 81, 25, $WS_GROUP) 
$Button4 = GUICtrlCreateButton("Button4", 512, 64, 81, 25, $WS_GROUP) 
$Combo3 = GUICtrlCreateCombo("Combo3", 24, 104, 185, 25) 
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F8|F9") 
$Input3 = GUICtrlCreateInput("Input3", 224, 104, 169, 21) 
$Combo4 = GUICtrlCreateCombo("Combo4", 24, 144, 185, 25) 
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F8|F9") 
$Combo5 = GUICtrlCreateCombo("Combo5", 24, 184, 185, 25) 
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F8|F9") 
$Combo6 = GUICtrlCreateCombo("Combo6", 24, 224, 185, 25) 
GUICtrlSetData(-1, "F1|F2|F3|F4|F5|F6|F7|F8|F8|F9") 
$Input4 = GUICtrlCreateInput("Input4", 224, 144, 169, 21) 
$Input5 = GUICtrlCreateInput("Input5", 224, 184, 169, 21) 
$Input6 = GUICtrlCreateInput("Input6", 224, 224, 169, 21) 
$Button5 = GUICtrlCreateButton("Button5", 408, 104, 81, 25, $WS_GROUP) 
$Button6 = GUICtrlCreateButton("Button6", 512, 104, 81, 25, $WS_GROUP) 
$Button7 = GUICtrlCreateButton("Button7", 408, 144, 81, 25, $WS_GROUP) 
$Button8 = GUICtrlCreateButton("Button8", 512, 144, 81, 25, $WS_GROUP) 
$Button9 = GUICtrlCreateButton("Button9", 408, 184, 81, 25, $WS_GROUP) 
$Button10 = GUICtrlCreateButton("Button10", 512, 184, 81, 25, $WS_GROUP) 
$Button11 = GUICtrlCreateButton("Button11", 408, 224, 81, 25, $WS_GROUP) 
$Button12 = GUICtrlCreateButton("Button12", 512, 224, 81, 25, $WS_GROUP) 
GUISetState(@SW_SHOW) 
#EndRegion ### END Koda GUI section ### 


Dim $akt1 = False 
$iCombo1 
= GUICtrlRead($Combo1) 
$handle = WinGetHandle("FLYFF") 
$iSleep = GUICtrlRead($Input1) 
While 
1 
    $nMsg 
= GUIGetMsg() 
    Switch 
$nMsg 
        
Case $GUI_EVENT_CLOSE 
            
Exit 

            Case 
$button1 
                $akt1 
= True 
             
Case $Button2 
                $akt1 
= False 
        
EndSwitch 

        If 
$akt1 = True Then ControlSend($handle,"","", "{" & $iCombo1 & "}") 
        
Sleep($iSleep) 
EndIf 
WEnd 
Belur is offline  
Reply


Similar Threads Similar Threads
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
Controlsend
10/12/2010 - AutoIt - 8 Replies
hi, wie kann man einen beliebiges wort in die googlesuchmaschine (nur in die inputbox von google) mit controlsend schreiben? kennt wer ein gutes tut über controlsend?
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 +1. The time now is 19:02.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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