Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:30

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

Advertisement



Autoit problem

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

Reply
 
Old   #1
 
Daacher's Avatar
 
elite*gold: 1
Join Date: May 2009
Posts: 478
Received Thanks: 150
Autoit problem

Guten Tag,

ich habe ein Problem mit AutoIt undzwar mit der MsgBox:


Quote:
MsgBox (3, "Ja oder Nein", "soll ich dich weiterhin hacken?")

If "Ja" Then
MsgBox (0, "Ja", "OK gut, ich räum deine Festplatte leer!")
ElseIf "Nein" Then
MsgBox (0, "Nein", "ich werd dich trotzdem hacken!")
Else
MsgBox (0, "", "Hau nicht ab, das macht alles nur noch schlimmer!")
EndIf

Mein Problem ist:

Wenn die MsgBox öffnet und man auswählen muss zwischen "Ja, Nein und Abbrechen", kommt immer die selbe Antwort. z.B. wenn ich auf "Nein" klicke, kommt trotzdem die Antwort von "Ja". Nun ich habe irgendwie versucht, den code zu ändern, um mein Problem zu lösen, hat aber nicht geklappt

Ich wäre sehr dankbar, wenn jemand mir das richtig coden kann

mfg bilo120
Daacher is offline  
Old 12/30/2010, 15:09   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
öffne deine .au3, schreibe hin "MsgBox" , markiere das und click F1.
(jetz bist du in der hilfe zu MsgBox)
da siehs tdu dann unten eine kleine liste:

Code:
OK  -  1 
CANCEL  -  2 
ABORT  -  3 
RETRY  -  4 
IGNORE  -  5 
[I][U][B]YES  -  6 
NO  -  7 [/B][/U][/I]
TRY AGAIN ** -  10 
CONTINUE ** -  11
das bedeuted nix weiter, dass wenn du jetz auf "OK" druckst eine "1" als rückgabe wert erhälst..

also machst du nun folgendes:

erst deiner msgbox eine variable zuordnen... dann sieht es zb so aus:

PHP Code:
$frage MsgBox (3"Ja oder Nein""soll ich dich weiterhin hacken?")

If 
$frage 6 Then
MsgBox 
(0"Ja""OK gut, ich räum deine Festplatte leer!")
ElseIf 
$frage 7 Then
MsgBox 
(0"Nein""ich werd dich trotzdem hacken!")
Else
MsgBox (0"""Hau nicht ab, das macht alles nur noch schlimmer!")
EndIf 
omer36 is offline  
Thanks
1 User
Old 12/30/2010, 15:12   #3
 
Daacher's Avatar
 
elite*gold: 1
Join Date: May 2009
Posts: 478
Received Thanks: 150
gut danke dir sehr : )

€ closen bitte
Daacher is offline  
Reply

Tags
autoit befehl




All times are GMT +2. The time now is 21:30.


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