Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:05

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

Advertisement



Hilfe ...

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

Closed Thread
 
Old   #1
 
Copex™'s Avatar
 
elite*gold: 37
Join Date: Nov 2011
Posts: 935
Received Thanks: 480
Unhappy Hilfe ...

Also wollte mal den Script in Koda reinklatschen :
PHP Code:
$input InputBox ("Ja oder Nein?""Hast du 'Grundlagen I-III' bereits gelesen?"&@CRLF&"(bitte antworte nur mit 'Ja' oder 'Nein'!")

If 
$input "ja" Then
MsgBox 
(0"Ja""Dann lern ma weiter...")
ElseIf 
$input "nein" Then
MsgBox 
(0"Nein""Solltest du das nicht besser nachholen?...")
Else
MsgBox (0"""Was verstehst du an 'Antworte nur mit Ja oder Nein' eigentlich nicht?!...")
EndIf 
so schaut es aus .. nur da gibt es ein Problem , dort kommt immer das ich entweder ja oder nein einfügen soll obwohl ich ja,nein schreibe :
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Ja oder Nein"267114192124)
GUISetIcon("C: ******************", -1)
$Label1 GUICtrlCreateLabel("Haben sie gut gelernt, bitte nur mit JA oder Nein  "16823517)
$Label2 GUICtrlCreateLabel("beantworten !"16246917)
$input GUICtrlCreateInput(""164823321)
$Button1 GUICtrlCreateButton("Ja oder Nein"167223333)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

If $input "ja" Then
    MsgBox
(0,"Ja","Das ist schön")
ElseIf 
$input "nein" Then
    MsgBox 
(0,"Nein","Das ist nicht Gut")
Else
    
MsgBox (0,"ERROR","Bitte nur mit Ja oder Nein beantworten")

    EndIf
    EndSwitch
WEnd 
Copex™ is offline  
Old 06/23/2012, 22:06   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
um den inhalt auszulesen, musst du z.b. den befehl: guictrlread() nutzen.

If guictrlread($input) = "ja" Then
omer36 is offline  
Thanks
1 User
Old 06/24/2012, 08:45   #3
 
Copex™'s Avatar
 
elite*gold: 37
Join Date: Nov 2011
Posts: 935
Received Thanks: 480
Ok danke ;D
Copex™ is offline  
Old 06/24/2012, 12:46   #4


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
So kleine Fragen bitte dort stellen:

#closed
Lawliet is offline  
Closed Thread




All times are GMT +1. The time now is 12:07.


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