Jump to content

How can...


Recommended Posts

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$Input1 = GUICtrlCreateInput("Willkommen','[color="#FFFF00"]200000000[/color]'); -- ", 32, 56, 81, 21)
$Button1 = GUICtrlCreateButton("Button1", 120, 56, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

200000000

Dear user, I did not ask again and

how can I pay the yellow so the change when I click on the button because there still is ^ ^

Welcome ',' THE NUMBER When input '); --

thanks in advance

Link to comment
Share on other sites

Link to comment
Share on other sites

Ähh, ich befürchte die Übersetzung ist nicht verständlich. Was willst du? Und den Titel bitte ein wenig eindeutiger, vielleicht "How do I change Color of Label/Button" o.ä..

Gruß

hallo ich bin auch deutsch gut ich wollte die zahlen darin verändern und nich die farbe so das ich wenn z.B 300 anstatt 200000

eingebe das halt der code gleich bleibt nur die zahl sich värdnert so das Willkommen',''); -- das noch schreibt aber halt die zahl input die mann schreib .

Gurß

Link to comment
Share on other sites

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$Input1 = GUICtrlCreateInput("200000000", 32, 56, 281, 21)

$Input2 = GUICtrlCreateInput("", 32, 86, 281, 21)
GUICtrlSetData($Input2,"Willkommen','[color=""#FFFF00""]" & GUICtrlRead($Input1) &"[/color]'); -- ")
$Button1 = GUICtrlCreateButton("Change Input 2", 32, 116, 100, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            GUICtrlSetData($Input2,"Willkommen','[color=""#FFFF00""]" & GUICtrlRead($Input1) &"[/color]'); -- ")
    EndSwitch
WEnd

Link to comment
Share on other sites

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 193, 125)
$Input1 = GUICtrlCreateInput("200000000", 32, 56, 281, 21)

$Input2 = GUICtrlCreateInput("", 32, 86, 281, 21)
GUICtrlSetData($Input2,"Willkommen','[color=""#FFFF00""]" & GUICtrlRead($Input1) &"[/color]'); -- ")
$Button1 = GUICtrlCreateButton("Change Input 2", 32, 116, 100, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            GUICtrlSetData($Input2,"Willkommen','[color=""#FFFF00""]" & GUICtrlRead($Input1) &"[/color]'); -- ")
    EndSwitch
WEnd
nich so, so das ich ...kuk mal

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###

Global $Button1, $Button2

$Form1 = GUICreate("Form1", 235, 264, 187, 114)
$Button1 = GUICtrlCreateButton("Start", 32, 184, 161, 33, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Hallo", 32, 144, 161, 33, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Copyright By Tweek", 136, 240, 96, 17)
GUISetState (@SW_SHOW, $Form1)
HotKeySet ("{F7}", "Start")

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run ("RoS-Patcher.exe")
Case $Button2
Send ("Hallo")
EndSwitch
WEnd

Func Start ()
ClipPut (GUICtrlRead($Button2))
Send ("Willkommen','200000000'); -- ")
Send ("{ENTER}")
EndFunc; ==> Start

so das wenn ich f7 drücke die zahl verändern kann.

Link to comment
Share on other sites

Probably like this?

With this code you can change the number by pressing "q"

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


HotKeySet("q","Zahl")
Global $Button1, $Button2
Global $Zahl = 200000000

$Form1 = GUICreate("Form1", 235, 264, 187, 114)
$Button1 = GUICtrlCreateButton("Start", 32, 184, 161, 33, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Hallo", 32, 144, 161, 33, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("Copyright By Tweek", 136, 240, 96, 17)
GUISetState (@SW_SHOW, $Form1)
HotKeySet ("{F7}", "Start")

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run ("RoS-Patcher.exe")
Case $Button2
Send ("Hallo")
EndSwitch
WEnd

Func Start ()
ClipPut (GUICtrlRead($Button2))
Send ("Willkommen',"& $Zahl &"'); -- ")
Send ("{ENTER}")
EndFunc; ==> Start

Func Zahl()
    $Zahl = InputBox("Zahl ändern","Neue Zahl eingeben","200000000")
EndFunc
Edited by Arterie
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...