|
You last visited: Today at 00:37
Advertisement
Problem mit Script
Discussion on Problem mit Script within the AutoIt forum part of the Coders Den category.
12/16/2013, 00:46
|
#16
|
elite*gold: 0
Join Date: May 2013
Posts: 85
Received Thanks: 0
|
nah, haut doch hin was will man mehr
/thread
|
|
|
12/16/2013, 01:30
|
#17
|
elite*gold: 50
Join Date: Sep 2012
Posts: 3,841
Received Thanks: 1,462
|
Quote:
Originally Posted by alpines
Code:
Func _Array()
If IsArray($a) Then
;Wenn es ein Array ist.
Else
;Wenn es kein Array ist.
MouseClick("left",0,0,1,1)
_Array()
EndIf
EndFunc
Recursion-Error missile launched. Impact in 3, 2, 1...
Ich würde die Funktion anders formulieren.
|
Code:
Func _Array()
While 1
If IsArray($a) Then
;Wenn es ein Array ist.
Else
;Wenn es kein Array ist.
MouseClick("left",0,0,1,1)
EndIf
Wend
EndFunc
Quote:
Originally Posted by RF1T2
nah, haut doch hin was will man mehr
/thread
|
nenenene so geht das garnicht
|
|
|
12/18/2013, 18:50
|
#18
|
elite*gold: 0
Join Date: May 2013
Posts: 85
Received Thanks: 0
|
Also die If Abfrage in eine while Schleife packen und das wars?
Und warum geht das sonst eig nich?
|
|
|
12/18/2013, 19:04
|
#19
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Du meinst den Snippet den Claiver gepostet hat?
Ganz einfach, du kriegst nach 1899 (64-Bit) und knapp ~3800 (32-Bit) einen Recursion-Error.
|
|
|
12/19/2013, 23:41
|
#20
|
elite*gold: 0
Join Date: Jul 2013
Posts: 192
Received Thanks: 46
|
Bin zwar selber noch neu aber vllt. so(umständlich):
Code:
$xyz=MsgBox ( 48+4, "test", "Ja oder NEIN" )
If $xyz = 6 Then
MsgBox ( 0, "Antwort", "Sie haben JA gewählt" )
ElseIf $xyz=7 Then
MsgBox ( 0, "Antwort", "Sie haben NEIN gewählt" )
EndIf
|
|
|
12/19/2013, 23:48
|
#21
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by .S1mpl3*
Bin zwar selber noch neu aber vllt. so(umständlich):
Code:
$xyz=MsgBox ( 48+4, "test", "Ja oder NEIN" )
If $xyz = 6 Then
MsgBox ( 0, "Antwort", "Sie haben JA gewählt" )
ElseIf $xyz=7 Then
MsgBox ( 0, "Antwort", "Sie haben NEIN gewählt" )
EndIf
|
dein post hast nichts mit dem thread zu tun...
das problem war ein boolean ergebnis in verbindung mit switch|select abfragen. der grund des problems lag darinn, das switch und select vergleiche verlangen, während if direkt mit boolean werten umgehen kann...
für vergleiche wie deinem (vergleich mit rückgabe von funktion), ist natürlich switch deutlich besser geeignet:
Code:
Switch MsgBox(52, 'test', 'ja oder nein')
Case 6
MsgBox(0, 'Antwort', 'JA')
Case 7
MsgBox(0, 'Antwort', 'Nein')
EndSwitch
hierfür wird keine nutzlose variable angelegt, sondern direkt der rückgabewert mit bestimmten werten verglichen...
|
|
|
12/20/2013, 08:49
|
#22
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
If MsgBox() = 6 Then
Else
Würde auch keine Variable anlegen.
|
|
|
12/20/2013, 14:01
|
#23
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by alpines
If MsgBox() = 6 Then
Else
Würde auch keine Variable anlegen.
|
So kann man aber nur auf einen wert prüfen....
|
|
|
12/20/2013, 14:23
|
#24
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Wie viele returned denn 6?
|
|
|
12/21/2013, 01:12
|
#25
|
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
|
Quote:
Originally Posted by alpines
Wie viele returned denn 6?
|
bei der abfrage
ist viel wichtiger welche werte $x annehmen kann...
legt man das beispiel MsgBox zu grunde, sind mögliche return werte: 1,2,3,4,5,6,7,8,9,10,11 (im direkten beispiel von mir nur 6,7)...
|
|
|
 |
|
Similar Threads
|
HP Script Problem
09/24/2011 - Metin2 Private Server - 2 Replies
Also hab nochn älteres Hp Script..
Und wollte mal fragen, was ich umstellen muss, damit das Kästchen nicht leer bleibt?
http://h3.abload.de/img/catsueke.jpg
Darunter ist dann noch ein 2. Wo was drin steht, wenn ich aber z.b das 1 Oben löschen will, lässt es sich nicht wirklich löschen, weil die Ränder immer da bleiben ect, oder der Platz bleibt frei blabla..
Was genau muss ich in der Index ändern das da ein Bild drin ist oder sonst was?
|
SQL Script Problem
07/03/2011 - Shaiya - 0 Replies
Fixed sorry for post
|
Problem VB 10 Patcher Script Problem
09/20/2010 - .NET Languages - 8 Replies
Hayho liebe Com.
ich habe mal wieder einen ganz netten Patcher gescriptet, für einen metin2 P Server,
da es nicht mein erster is, hab ich echt kp was da vorliegt, Hier der Script an sich:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEv entArgs) Handles...
|
[HOW-TO]Hp-Script+Admin-script (weekly-updatet) problem!
06/21/2010 - Metin2 Private Server - 11 Replies
hallo leute ich hab ein problem und zwar bei dem hp script von masterboss kommt der fehler :
http://img541.imageshack.us/img541/8140/24955249. png
und wenn ich dann die datei öffne und in die zeile gehe kommt:
while($row = mysql_fetch_array($ergebnis))
kann mir jmd helfen?
|
Problem Script
02/05/2009 - Cabal Online - 4 Replies
Ok i have a problem, i use a the script bot from camp.
My problem is i can run the script on my pc starting it up from cabal without a bypass and run the script/bot this is with GG running as well.
But when i try the same thing on my laptop it doesn't work i need to have a bypass up and because the bypass makes you d/c(i think its the programme am using) i can't seem to run the script/bot.
Anyone got any ideas of how to make it work on my laptop with having to bypass it.
The bot does work...
|
All times are GMT +1. The time now is 00:37.
|
|