Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:57

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

Advertisement



Input box = nicht frage sondern 3??????

Discussion on Input box = nicht frage sondern 3?????? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Input box = nicht frage sondern 3??????

hallo ich habe das problem das bei meinem kleinen editor bot stadt den test der in input box 1 steht z.b. Frage und dort kommt am ende 3
kann mir wer helfen?

script:

Danke im voraus
.Cdog is offline  
Old 06/23/2011, 15:55   #2
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Sachen aus einer GUI musst du mit GUICtrlRead auslesen.
BlackHybrid is offline  
Old 06/23/2011, 16:19   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Quote:
Originally Posted by BlackHybrid View Post
Sachen aus einer GUI musst du mit GUICtrlRead auslesen.
also so?
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


#Region ### START Koda GUI section ### Form=
$Beispiel GUICreate("Beispiel Design"615438192124)
GUISetFont(164000"Arial Narrow")
GUISetBkColor(0x99B4D1)
$Button1 GUICtrlCreateButton("Start"1765629765)
GUICtrlSetFont(-1248004"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            
        Case 
$Button1
            
#Region ### START Koda GUI section ### Form=C:\Users\Carlos\Desktop\AutoIt\Forms\asdsdfdsf.kxf
$Form1_1 GUICreate ("Daten eingeben"429229320255)
GUISetFont(128000"BIRTH OF A HERO")
GUISetBkColor(0x0066CC)
$name GUICtrlRead ("Frage"1204823328)
GUICtrlSetFont(-1128000"Arial Narrow")
GUICtrlSetColor(-10x000000)
$Breite GUICtrlRead ("Antwort"1208023328)
GUICtrlSetFont(-1128000"Arial Narrow")
GUICtrlSetColor(-10x000000)
$hoch GUICtrlRead("Name der Datei"12011223328)
GUICtrlSetFont(-1128000"Arial Narrow")
GUICtrlSetColor(-10x000000)
GUICtrlSetColor(-10x000000)
$Label1 GUICtrlCreateLabel("Editor Bot"144016127)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$Nam GUICtrlCreateLabel("Frage"56486027)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$Breit GUICtrlCreateLabel("AW"56805227)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$H GUICtrlCreateLabel("name"561124927)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$Button1 GUICtrlCreateButton("Oke"13617614533)
GUICtrlSetColor(-10x000000)
GUICtrlSetBkColor(-10x99B4D1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            Case 
$Button1
            Run
("notepad.exe")
            
WinWaitActive("[CLASS:Notepad]")
            
Sleep(500)
            
Send ($name)
            
Send ("{Enter}")
            
Send ($Breite)
            
MsgBox(1,"","Frage: " $name "  " "Antwort: " $Breite)
            
Send ("{ALT}{F4}")
            
Send ("{Enter}")
            
Send ($hoch)
            
Send ("{Enter}")
            
Sleep (500)
            
Send ($hoch)
            
Send ("{Enter}")
            
Send ("{Enter}")
            EndSwitch
WEnd

    
EndSwitch
WEnd 
aber dann kommt ein error:
PHP Code:
>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Carlos\Desktop\Editor frage und variable in msg.au3"    
C:\Users\Carlos\Desktop\Editor frage und variable in msg.au3 (29) : ==> Incorrect number of parameters in function call.:
$name GUICtrlRead ("Frage"1204823328)
$name = ^ ERROR
>Exit code1    Time1.846 
.Cdog is offline  
Old 06/23/2011, 16:26   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Rofl
Schonmal in die Helpfile geschaut?
BlackHybrid is offline  
Old 06/23/2011, 16:30   #5
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Quote:
Originally Posted by BlackHybrid View Post
Rofl
Schonmal in die Helpfile geschaut?


Will nicht lügen sprich nein XD
hast du keine lösung oder so?
.Cdog is offline  
Old 06/23/2011, 16:34   #6
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
PHP Code:
MsgBox(1,"","Frage: " GUICtrlRead($name) & "  " "Antwort: " GUICtrlRead($Breite)) 
BlackHybrid is offline  
Old 06/23/2011, 16:43   #7
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Quote:
Originally Posted by BlackHybrid View Post
PHP Code:
MsgBox(1,"","Frage: " GUICtrlRead($name) & "  " "Antwort: " GUICtrlRead($Breite)) 


oe aber trozdem kommt sowas:
PHP Code:
>"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Users\Carlos\Desktop\Editor frage und variable in msg.au3"    
C:\Users\Carlos\Desktop\Editor frage und variable in msg.au3 (29) : ==> Incorrect number of parameters in function call.:
$name GUICtrlRead ("Frage"1204823328)
$name = ^ ERROR 
.Cdog is offline  
Old 06/23/2011, 16:54   #8
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Dann schau doch mal in die HelpFile -.-'
Man brauch nur GUICtrlRead und das Handel des Controls.
BlackHybrid is offline  
Old 06/23/2011, 16:55   #9
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Quote:
Originally Posted by BlackHybrid View Post
Dann schau doch mal in die HelpFile -.-'
Man brauch nur GUICtrlRead und das Handel des Controls.


Beispiel script?
und poste mall ein tearsure mit 1e*gold für deine mühe dazu
.Cdog is offline  
Old 06/23/2011, 17:02   #10
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389



PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


#Region ### START Koda GUI section ### Form=
$Beispiel GUICreate("Beispiel Design"615438192124)
GUISetFont(164000"Arial Narrow")
GUISetBkColor(0x99B4D1)
$Button1 GUICtrlCreateButton("Start"1765629765)
GUICtrlSetFont(-1248004"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
            
#Region ### START Koda GUI section ### Form=C:\Users\Carlos\Desktop\AutoIt\Forms\asdsdfdsf.kxf
            
$Form1_1 GUICreate("Daten eingeben"429229320255)
            
GUISetFont(128000"BIRTH OF A HERO")
            
GUISetBkColor(0x0066CC)
            
$name GUICtrlCreateInput("Frage"1204823328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
$Breite GUICtrlCreateInput("Antwort"1208023328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
$hoch GUICtrlCreateInput("Name der Datei"12011223328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
GUICtrlSetColor(-10x000000)
            
$Label1 GUICtrlCreateLabel("Editor Bot"144016127)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Nam GUICtrlCreateLabel("Frage"56486027)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Breit GUICtrlCreateLabel("AW"56805227)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$H GUICtrlCreateLabel("name"561124927)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Button1 GUICtrlCreateButton("Oke"13617614533)
            
GUICtrlSetColor(-10x000000)
            
GUICtrlSetBkColor(-10x99B4D1)
            
GUISetState(@SW_SHOW)
            
#EndRegion ### END Koda GUI section ###
            
While 1
                $nMsg 
GUIGetMsg()
                Switch 
$nMsg
                    
Case $GUI_EVENT_CLOSE
                        
Exit
                    Case 
$Button1
                        Run
("notepad.exe")
                        
WinWaitActive("[CLASS:Notepad]")
                        
Sleep(500)
                        
Send(GUICtrlRead($name))
                        
Send("{Enter}")
                        
Send(GUICtrlRead($Breite))
                        
MsgBox(1"""Frage: " GUICtrlRead($name) & "  " "Antwort: " GUICtrlRead($Breite))
                        
Send("{ALT}{F4}")
                        
Send("{Enter}")
                        
Send(GUICtrlRead($hoch))
                        
Send("{Enter}")
                        
Sleep(500)
                        
Send(GUICtrlRead($hoch))
                        
Send("{Enter}")
                        
Send("{Enter}")
                EndSwitch
            
WEnd

    
EndSwitch 
BlackHybrid is offline  
Thanks
1 User
Old 06/23/2011, 18:02   #11
 
Reeek's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 1,304
Received Thanks: 485
nein, nein, nein!
nicht mit send arbeiten... wenn schon, dann richtig!
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <misc.au3>
$button2 1
$hoch 
0
$breite 
0
$name 
0

#Region ### START Koda GUI section ### Form=
$Beispiel GUICreate("Beispiel Design"615438192124)
GUISetFont(164000"Arial Narrow")
GUISetBkColor(0x99B4D1)
$Button1 GUICtrlCreateButton("Start"1765629765)
GUICtrlSetFont(-1248004"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
            
#Region ### START Koda GUI section ### Form=C:\Users\Carlos\Desktop\AutoIt\Forms\asdsdfdsf.kxf
            
$Form1_1 GUICreate("Daten eingeben"429229320255)
            
GUISetFont(128000"BIRTH OF A HERO")
            
GUISetBkColor(0x0066CC)
            
$name GUICtrlCreateInput("Frage"1204823328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
$Breite GUICtrlCreateInput("Antwort"1208023328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
$hoch GUICtrlCreateInput("Name der Datei"12011223328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
GUICtrlSetColor(-10x000000)
            
$Label1 GUICtrlCreateLabel("Editor Bot"144016127)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Nam GUICtrlCreateLabel("Frage"56486027)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Breit GUICtrlCreateLabel("AW"56805227)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$H GUICtrlCreateLabel("name"561124927)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Button2 GUICtrlCreateButton("Oke"13617614533)
            
GUICtrlSetColor(-10x000000)
            
GUICtrlSetBkColor(-10x99B4D1)
            
GUISetState(@SW_SHOW)
            
#EndRegion ### END Koda GUI section ###            
            
Case $GUI_EVENT_CLOSE
                        
Exit
                    Case 
$Button2
                        $doc 
FileOpen(@MyDocumentsDir&'\Test\'&GUICtrlRead($hoch)&'.txt')
                        MsgBox(0, "", @MyDocumentsDir&'
\Test\'&GUICtrlRead($hoch)&'.txt')
                        FileWrite($doc, GUICtrlRead($name)&'
{enter}'&GUICtrlRead($Breite))
                        FileClose($doc)
                EndSwitch
            WEnd 
keine Ahnung ob das Script geht, hab's nicht im SciTe geschrieben sondern hier...
Reeek is offline  
Old 06/24/2011, 13:04   #12
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,297
Received Thanks: 325
Quote:
Originally Posted by Reeek View Post
nein, nein, nein!
nicht mit send arbeiten... wenn schon, dann richtig!
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <misc.au3>
$button2 1
$hoch 
0
$breite 
0
$name 
0

#Region ### START Koda GUI section ### Form=
$Beispiel GUICreate("Beispiel Design"615438192124)
GUISetFont(164000"Arial Narrow")
GUISetBkColor(0x99B4D1)
$Button1 GUICtrlCreateButton("Start"1765629765)
GUICtrlSetFont(-1248004"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

        Case 
$Button1
            
#Region ### START Koda GUI section ### Form=C:\Users\Carlos\Desktop\AutoIt\Forms\asdsdfdsf.kxf
            
$Form1_1 GUICreate("Daten eingeben"429229320255)
            
GUISetFont(128000"BIRTH OF A HERO")
            
GUISetBkColor(0x0066CC)
            
$name GUICtrlCreateInput("Frage"1204823328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
$Breite GUICtrlCreateInput("Antwort"1208023328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
$hoch GUICtrlCreateInput("Name der Datei"12011223328)
            
GUICtrlSetFont(-1128000"Arial Narrow")
            
GUICtrlSetColor(-10x000000)
            
GUICtrlSetColor(-10x000000)
            
$Label1 GUICtrlCreateLabel("Editor Bot"144016127)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Nam GUICtrlCreateLabel("Frage"56486027)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Breit GUICtrlCreateLabel("AW"56805227)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$H GUICtrlCreateLabel("name"561124927)
            
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
            
GUICtrlSetColor(-10x000000)
            
$Button2 GUICtrlCreateButton("Oke"13617614533)
            
GUICtrlSetColor(-10x000000)
            
GUICtrlSetBkColor(-10x99B4D1)
            
GUISetState(@SW_SHOW)
            
#EndRegion ### END Koda GUI section ###            
            
Case $GUI_EVENT_CLOSE
                        
Exit
                    Case 
$Button2
                        $doc 
FileOpen(@MyDocumentsDir&'\Test\'&GUICtrlRead($hoch)&'.txt')
                        MsgBox(0, "", @MyDocumentsDir&'
\Test\'&GUICtrlRead($hoch)&'.txt')
                        FileWrite($doc, GUICtrlRead($name)&'
{enter}'&GUICtrlRead($Breite))
                        FileClose($doc)
                EndSwitch
            WEnd 
keine Ahnung ob das Script geht, hab's nicht im SciTe geschrieben sondern hier...


Danke Hilft mir nur nicht kannst dus mir erklären?
.Cdog is offline  
Old 06/24/2011, 14:24   #13
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
oder zb so:

PHP Code:

#Region ### START Koda GUI section ### Form=
$Beispiel GUICreate("Beispiel Design"615438192124)
GUISetFont(164000"Arial Narrow")
GUISetBkColor(0x99B4D1)
$Button1 GUICtrlCreateButton("Start"1765629765)
GUICtrlSetFont(-1248004"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

#Region ### START Koda GUI section ### Form=C:\Users\Carlos\Desktop\AutoIt\Forms\asdsdfdsf.kxf
$Form1_1 GUICreate("Daten eingeben"429229320255)
GUISetFont(128000"BIRTH OF A HERO")
GUISetBkColor(0x0066CC)
$name GUICtrlCreateInput("Frage"1204823328)
GUICtrlSetFont(-1128000"Arial Narrow")
GUICtrlSetColor(-10x000000)
$Breite GUICtrlCreateInput("Antwort"1208023328)
GUICtrlSetFont(-1128000"Arial Narrow")
GUICtrlSetColor(-10x000000)
$hoch GUICtrlCreateInput("Name der Datei"12011223328)
GUICtrlSetFont(-1128000"Arial Narrow")
GUICtrlSetColor(-10x000000)
GUICtrlSetColor(-10x000000)
$Label1 GUICtrlCreateLabel("Editor Bot"144016127)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$Nam GUICtrlCreateLabel("Frage"56486027)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$Breit GUICtrlCreateLabel("AW"56805227)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$H GUICtrlCreateLabel("name"561124927)
GUICtrlSetFont(-1168000"BIRTH OF A HERO")
GUICtrlSetColor(-10x000000)
$Button_1 GUICtrlCreateButton("Oke"13617614533)
GUICtrlSetColor(-10x000000)
GUICtrlSetBkColor(-10x99B4D1)
GUISetState(@SW_HIDE)
#EndRegion ### END Koda GUI section ###


While 1
    $nMsg 
GUIGetMsg(1)
    Switch 
$nMsg[1]
        Case 
$Beispiel
            
Switch $nMsg[0]
                Case -
3
                    
Exit
                Case 
$Button1
                    GUISetState
(@SW_SHOW$Form1_1)
            EndSwitch
        Case 
$Form1_1
            
Switch $nMsg[0]
                Case -
3
                    GUISetState
(@SW_HIDE$Form1_1)
                Case 
$Button_1
                    FileWrite
(@ScriptDir "\"&GUICtrlRead($hoch)&".txt", GUICtrlRead($name) & @CRLF & GUICtrlRead($Breite))
                    If FileExists(@ScriptDir & "
\"&GUICtrlRead($hoch)&".txt") Then MsgBox("","ok", "Gespeichert!")
            EndSwitch
    EndSwitch
WEnd 
omer36 is offline  
Reply


Similar Threads Similar Threads
Suche metin2 serverfiles nicht rain sondern die gemoddeten
04/11/2012 - Metin2 Private Server - 11 Replies
hi suche die gemoddeten serverfiles die bearbeitet wurden! dankeschön gibts auch ^^
Neuer hack hab ich nicht gemacht sondern mein Kumpel
12/22/2010 - WarRock Hacks, Bots, Cheats & Exploits - 9 Replies
So hir hab ich ein hack für euch bei mir zeigt der kein virus an also müßte da keienr seihn ich hab den hack auch nicht gemacht testet einfach mal. Downloadlink: STOP TROJANER HAB VT SRY WIE MACH ICH EIN HACK? Funktionen: unl-ammo-telekill-opk-chams uvm Virus total:
Nicht nur das PW sondern auch die ID ändern , geht das ?
12/09/2010 - Metin2 Private Server - 4 Replies
Diese frage stellen sich wohl viele , mann kann ja bei Navicat und bei virtual PC datenbank das Passwort ändern ! Aber so weit ich weiß ist Root der Login Name bzw ID Kann bzw darf man das denn ändern ? für mehr sicherheit oder startet dann der server nicht mehr hats schon mal einer ausprobiert ? :D:handsdown:



All times are GMT +1. The time now is 07:58.


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.