Hallo mit welchem Befehl kann ich
einen "Zufallsgenerator" erstellen?
Also beispiel Zufahl Zahl von 1-3
Danke!
Das da oben wäre geklärt nun habe ich ne neue Frage
mein Script sieht so aus:
; Script Start - Add your code below here
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Schere, Stein Papier!", 300, 171, 192, 124)
GUISetBkColor ( 0x0B6295)
GuiSetIcon ( "C:\Users\Johannes\Desktop\Hacking\Stealer\Universal1337_Version_2_-_The_Account_Stealer_2\Extras\icons\noicon.ico" )
$Button1 = GUICtrlCreateButton("Stein", 32, 50, 65, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Schere", 112, 50, 65, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Papier", 75, 90, 65, 25, $WS_GROUP)
$Label1 = GUICtrlCreateLabel("",200,32,100,100)
$Label2 = GUICtrlCreateLabel ( "Scripted by !Jo!" , 200 ,140 , 65 , 25 )
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$Random = Random (1 , 3)
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
If $Random = <= 2 and $Random >= 1 then
$PcAuswahl = "Schere"
endif
If $Random = <= 3 and $Random >= 2 then
$PcAuswahl = "Papier"
endif
If $Random = <= 4 and $Random >= 3 then
$PcAuswahl = "Stein"
endif
Case $Button2
$Auswahl = "Schere"
sleep (500)
$cool = MsgBox (0 , "Pc sagt" ,"."&$PcAuswahl&" ")
Case $Button1
$Auswahl = "Stein"
Case $Button3
$Auswahl = "Papier"
EndSwitch
WEnd
Func stop ( )
Exit
EndFunc
Nun zeigts mir einen Fehler an bei Zeile 48 in der MsgBox bei &$PcAuswahl$
Ich finde da einfach keinen Fehler.
Wenn ich das Habe erweiter ich das Script
Sorry wenns unübersichtlich ist, bin ein Neuling