Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 04:18

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

Advertisement



Hilfe xD

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
Angry Hilfe xD

Huhu Ma ne frage .

Was klappt an diesem Script nicht .__. ?

PHP Code:
$Ja = ("ja")
$Nein = ("nein")




#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"615438, -1, -1)
$Button1 GUICtrlCreateButton("Haha klick mich :D "007525)
$Button2 GUICtrlCreateButton("Mich nicht klicken o.o!!!"184120259169)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1 
            MouseMove
(644,391)
        Case 
$Button2
            Run
("Notepad.exe")
            
WinWaitActive("Unbenannt")
            
Send("Ich fahre deinen Pc runter :D")
            
InputBox("xD","ja oder nein ? ")
            
            If
                
InputBox $Ja Then
                Run
("shutdown.exe")
            
            Else
                
                
InputBox $Nein Then
                MsgBox 
(1,"xD","Schaaade :D :D ")
            EndIf
            
        
                

    EndSwitch
WEnd 

Danke fuer eure Hilfe
Hackerfreak1 is offline  
Old 10/06/2010, 16:41   #2
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
Muss des

If

aus der schleife raus ?
Hackerfreak1 is offline  
Old 10/06/2010, 16:43   #3
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
die inputbox gibt etwas zurück. das musst du natürlich in einer variable speichern. die kannst du dann auch später abfragen
lolkop is offline  
Thanks
1 User
Old 10/06/2010, 16:48   #4
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
Wie xD?

Sorry bin n bissle doof x)

z.B.

$Variable1 = Inputbox


Inputbox("","")


? oder wie ?^^
Hackerfreak1 is offline  
Old 10/06/2010, 16:52   #5
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
und der sacht mir als fehler

If

xD

Quote:
>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\fabian\Desktop\Test D.au3"
C:\Users\fabian\Desktop\Test D.au3 (30) : ==> "If" statements must have a "Then" keyword.:
If

>Exit code: 1 Time: 0.217
... ?
Hackerfreak1 is offline  
Old 10/06/2010, 16:53   #6
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
zb:

$frage = InputBox("xD", "ja oder nein ? ")
If $frage = "ja" Then


€zu dein error, schau das fettgeschriebene
omer36 is offline  
Thanks
1 User
Old 10/06/2010, 17:02   #7
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
Quote:
Originally Posted by omer36 View Post
zb:

$frage = InputBox("xD", "ja oder nein ? ")
If $frage = "ja" Then


€zu dein error, schau das fettgeschriebene


Daaaaaaaaaanke schöööööööööhn <3
Hackerfreak1 is offline  
Old 10/06/2010, 17:09   #8
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
PHP Code:
$Ja = ("ja")
$Nein = ("nein")
$
Inputbox("xD","ja oder nein?")

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"615438, -1, -1)
$Button1 GUICtrlCreateButton("Haha klick mich :D "007525)
$Button2 GUICtrlCreateButton("Mich nicht klicken o.o!!!"184120259169)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1 
            MouseMove
(644,391)
            
        Case 
$Button2
            Run
("Notepad.exe")
            
WinWaitActive("Unbenannt")
            
Send("Ich fahre deinen Pc runter :D")
            
            If $
"ja" Then
                Run
("notepad.exe")
                
WinWaitActive("Unbenannt")
                
Send (" neeeh mache ich nicht dan kan ich ja net mehr mit dir schreiben <3")
                
            If $
"nein" Then
                MsgBox
(1,"xD","hätte ich nicht gemacht xD!")
                
            EndIf
            
    EndSwitch
WEnd 
Wieso geht des jezt nicht

-.-

er ssacht i was wegen
Entswitch ..
Hackerfreak1 is offline  
Old 10/06/2010, 17:52   #9
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
probiers mal mit
ElseIf $1 = "nein" Then
MsgBox(1,"xD","hätte ich nicht gemacht xD!")

oder du machst nach der ersten if abfrage ein endif
BlackHybrid is offline  
Old 10/06/2010, 22:30   #10
 
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
Quote:
Originally Posted by BlackHybrid View Post
probiers mal mit
ElseIf $1 = "nein" Then
MsgBox(1,"xD","hätte ich nicht gemacht xD!")

oder du machst nach der ersten if abfrage ein endif

Okay Danke
Hackerfreak1 is offline  
Reply


Similar Threads Similar Threads
[Hilfe]Schnelle hilfe! Dyndns Hp geht nicht trotz korrekter eingabe
03/20/2011 - Metin2 Private Server - 6 Replies
Tag zusammen Also ich habe folgendes problem 1. Bin ich um 3 Uhr abendds ( 2:50) noch immer Wach und prepariere meinen Server und 2. Meine Homepage geht nicht! Also Stand sieht wie folgt aus bei der Portfreigabe in meiner Fritzbox 7270 Fon Wlan
Hilfe Hilfe Pls Gucken Brauche Hilfe
04/04/2010 - Technical Support - 3 Replies
Ja wegen der Signatur sieht es euch ma an in pics /http://img641.imageshack.us/img641/6070/unbenann t790kjkh.png http://img444.imageshack.us/img444/6981/unbenannt kjhghzuijhbh.png kann mir pls einer HELFEN...
HILFE HILFE HILFE MIT SjSro Startproblem
12/14/2009 - SRO Private Server - 4 Replies
Hi Leute hab ein Problem mit SjSro wenn ich auf starten klicke kommt diese Meldung Sorry.Failed to execute Silkroad. bitte helfen hab anti virus aus geht immer noch nicht wo liegt das problem thx schon mal im voraus BITTE HELFEN BITTE WILL UMBEDINGT ZOCKEN!!



All times are GMT +1. The time now is 04:19.


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.