Sign in to follow this  
Followers 0
cracker

Exists This Input Type?

4 posts in this topic

hello i search a input field which works like in games . if you press a key for example strg it writes strg into the field oder if the user presses "d" it writes d in the field. Exists such a input field?

thank you for your help :">

Share this post


Link to post
Share on other sites



hello i search a input field which works like in games . if you press a key for example strg it writes strg into the field oder if the user presses "d" it writes d in the field. Exists such a input field?

thank you for your help :">

HI,

may have a look at InputBox() or _isPressed() [needs beta version]

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>
GUICreate("zzz", 500, 500, -1, -1)

Global $Button[100]

$Count = 1
$TenCount = 1

For $I = 65 To 90
    $Button[$I] = GUICtrlCreateButton(Chr($i), 20 * $Count, 20 * $TenCount, 20, 20)
    $Count = $Count + 1
    If $Count = 10 Then
        $TenCount = $TenCount + 1
        $Count = 1
    EndIf
Next

$Input = GUICtrlCreateInput("Text",100,200,100,20)

GUISetState()

While GUIGetMsg() <> $GUI_EVENT_CLOSE
    $Message = GUIGetMsg()
    
    Select
    Case $Message = $Button[65]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "A")
    Case $Message = $Button[66]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "B")
    Case $Message = $Button[67]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "C")
    Case $Message = $Button[68]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "D")
    Case $Message = $Button[69]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "E")
    Case $Message = $Button[70]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "F")
    Case $Message = $Button[71]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "G")
    Case $Message = $Button[72]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "H")
    Case $Message = $Button[73]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "I")
    Case $Message = $Button[74] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "J")
    Case $Message = $Button[75]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "K")
    Case $Message = $Button[76]
        GUICtrlSetData($Input,GUICtrlRead($Input) & "L")
    Case $Message = $Button[77] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "M")
    Case $Message = $Button[78] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "N")
    Case $Message = $Button[79] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "O")
    Case $Message = $Button[80] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "P")
    Case $Message = $Button[81] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "Q")
    Case $Message = $Button[82] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "R")
    Case $Message = $Button[83] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "S")
    Case $Message = $Button[84] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "T")
    Case $Message = $Button[85] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "U")
    Case $Message = $Button[86] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "V")
    Case $Message = $Button[87] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "W")
    Case $Message = $Button[88] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "X")
    Case $Message = $Button[89] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "Y")
    Case $Message = $Button[90] 
        GUICtrlSetData($Input,GUICtrlRead($Input) & "Z")
    EndSelect
WEnd

Exit

Might be what you're looking for... (?


Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite

Share this post


Link to post
Share on other sites

with the function _IsPressed i can write what i wanted THANK YOU BOTH

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