Register for your free account! | Forgot your password?

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

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

Advertisement



[AU3]Problem

Discussion on [AU3]Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Akatana's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 22
Received Thanks: 1
[AU3]Problem

Hey habe eine Frage aber erstmal hier der Source:
PHP Code:
#include <File.au3>
#include <File.au3>
#include <String.au3>

$file "data.txt"
$path ""

$pa InputBox ("Path""Add ur path below:")
$id InputBox ("Data""Place ur ID")
$pw InputBox ("Data""Place ur Password""""*")

$crypt_id _StringEncrypt (1$id"Akatana")
$crypt_pw _StringEncrypt (1$pw"Akatana")

FileWrite ($file"")
_FileWriteToLine ($file1$crypt_id1)
_FileWriteToLine ($file2$crypt_pw1)

$id2 FileReadLine ($file1)
$pw2 FileReadLine ($file2)

$crypt_id2 _StringEncrypt (0$id2"Akatana")
$crypt_pw2 _StringEncrypt (0$pw2"Akatana")

If 
$path True Then
    
Switch $path
    
Case True
    $pa To $path
    
Case False
    
EndSwitch
EndIf


If 
$pw = ("test"Then 
    MsgBox
(0"Password""Your Password is correct!")
    
Run("C:\WINDOWS\EXPLORER.EXE /n,/e," $path)
    Exit
Else
    
MsgBox(0"Password""Your Password is incorrect!")
EndIf 
So nun zur Frage:
Ich würde gerne $path mit dem vom user ausgewählten $pa austauschen leider funktioniert das mit dem Switch Command irgendwie nicht wie man oben sieht...
Hätte da jemand ne Lösung?

lg
Akatana
Akatana is offline  
Old 10/26/2010, 11:57   #2
 
sava's Avatar
 
elite*gold: 1
Join Date: Dec 2006
Posts: 360
Received Thanks: 135
Moin,

wiesow machst du das nicht einfach, wenns so nicht funktioniert, nicht mit einer Hilfsvariable

Quote:
$hilfe = $path
$path = $pa
$pa = $hilfe
Das wäre ja ein einfaches Austauschen und wenn du das noch mehr brauchst, einfach ne Function

Mfg
sava is offline  
Thanks
1 User
Old 10/26/2010, 12:08   #3
 
Akatana's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 22
Received Thanks: 1
Ja danke funktioniert perfekt :P
Akatana is offline  
Reply


Similar Threads Similar Threads
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



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


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.