Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 02:31

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

Advertisement



Problem mit dem run befehl

Discussion on Problem mit dem run befehl within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Problem mit dem run befehl

Ich wollte mal wissen ob mir wer sagen kann warum er die datei nicht findet/ausführt...

PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            
        case 
$Button1
            
            IniWrite
(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"GUICtrlRead($Input1form))
            
run($Input1form)
            if @
error Then
            MsgBox
(16"Error""File does not exists"5)
            endif
            
        
        
        case 
$Button2
            GUICtrlSetData
($Input1form,IniRead(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"""))
            if 
not FileExists(@DesktopCommonDir&"\Teamspeak.ini"Then
                msgbox
(16"Error""Cannot read Teamspeak.ini..."& @CRLF _
                
"May because there is no file to read..."5)
            endif
            
    
    EndSwitch
WEnd
EndFunc 
Ich bedanke mich schonmal im vorraus für antworten
MfG Ludder231
Ludder231 is offline  
Old 03/13/2011, 19:21   #2
 
SCORNI's Avatar
 
elite*gold: 26
Join Date: Jun 2009
Posts: 972
Received Thanks: 228
Du musst die Inputbox auslesen.

PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            
        case 
$Button1
            
            IniWrite
(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"
            
run(guictrlread($Input1form))
            if @
error Then
            MsgBox
(16"Error""File does not exists"5)
            endif
            
        
        
        case 
$Button2
            GUICtrlSetData
($Input1form,IniRead(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"""))
            if 
not FileExists(@DesktopCommonDir&"\Teamspeak.ini"Then
                msgbox
(16"Error""Cannot read Teamspeak.ini..."& @CRLF _
                
"May because there is no file to read..."5)
            endif
            
    
    EndSwitch
WEnd
EndFunc 
SCORNI is offline  
Thanks
1 User
Old 03/13/2011, 19:45   #3
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
Quote:
Originally Posted by SCORNI View Post
Du musst die Inputbox auslesen.

PHP Code:
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            
        case 
$Button1
            
            IniWrite
(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"
            
run(guictrlread($Input1form))
            if @
error Then
            MsgBox
(16"Error""File does not exists"5)
            endif
            
        
        
        case 
$Button2
            GUICtrlSetData
($Input1form,IniRead(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"""))
            if 
not FileExists(@DesktopCommonDir&"\Teamspeak.ini"Then
                msgbox
(16"Error""Cannot read Teamspeak.ini..."& @CRLF _
                
"May because there is no file to read..."5)
            endif
            
    
    EndSwitch
WEnd
EndFunc 
Ah danke! So sollte deins aussehen oder?
PHP Code:
IniWrite(@DesktopCommonDir&"\Teamspeak.ini""File2""Path2"GUICtrlRead($Input1form))
            
run(GUICtrlRead($Input1form))
            if @
error Then
            MsgBox
(16"Error""File does not exists"5)
            endif 
Naja habs mit deiner hilfe geschafft THX!
Ludder231 is offline  
Reply


Similar Threads Similar Threads
Metin Befehl Problem
02/24/2011 - Metin2 Private Server - 4 Replies
Heei Epvp wenn ich mir nen spp oder so cheaten will kann der befehel auf mein server net gefunden werden bei meim kumpel gehts
Flyff GM Befehl problem
12/19/2010 - Flyff Private Server - 7 Replies
Hallo elitepvpers, mein Server läuft jetzt!:) Aber da gibt es ein Problem mit den GM Befehlen. Ich kann zwar lvl, job und alles aber ich kann keine items einfügen. Ich glaube mir fehlt der Befehl /createitem! Kann mir da einer helfen?? thx schonmal
GM BEFEHL Problem!
07/14/2010 - Flyff Private Server - 7 Replies
Hallo Leute, wie der Titel schon sagt habe ich ein Problem^^ Und zwar, wenn ich das item Acer Boots(M) haben will (.item 22445) dann passiert nichs. Aber wenn ich den Befehl gebe das ich einen anderen Job haben will, z.B. Blade Hero (.job 25), dann nimmt er es an ^-^ Kann mir da vllt einer Helfen?? MFG ChickenWings13
Quest Befehl problem
03/13/2010 - Metin2 Private Server - 0 Replies
Hiho, weiß jemand wie man die befehle pc.give_item2() item.set_socket() kombiniert? Beim Abschließen der Quest soll der Spieler ein Item, ich nehm jetzt einfach mal vnum 189 als Beispiel, erhalten und Sockel 0 soll mit dem Stein vnum 28637 schon gefüllt sein. hab schon paar sachen versucht z.b.
GM Befehl Mobs rufen? Wer kennt den Befehl?
04/13/2008 - Metin2 - 27 Replies
Hallo, ich wollte mal von euch wissen ob jemand diesen Befehl kennt, und die Id von diesen Mobs oder Metin Steine Items etc.. IceSpeed



All times are GMT +1. The time now is 02:33.


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