Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:46

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

Advertisement



Autoit Code porblem

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 36
Received Thanks: 4
Question Autoit Code porblem

Wenn ich hier nicht richtig bin dann bitte verschieben!!!

Also zum problem:
Mein Code :
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

GUICreate("Form1", 626, 448, 192, 124)
GUIsetonevent($GUI_EVENT_CLOSE, "close")
opt("GUIOnEventMode", 1)
GUIsetstate(@sw_show)
$input = GUICtrlCreateInput("Input1", 456, 400, 121, 21)
$Button1 = GUICtrlCreateButton("Klicken um Passwort des eingegeben Benutzer zu ändern", 160, 400, 291, 25, $WS_GROUP)
GUIctrlsetonEvent($Button1, "_lol")

Func _lol()
Run("cmd.exe")
Sleep(300)
Send ("net user " & $input)
Send("*")
Send("{Enter}")
EndFunc



Func close()
Exit
EndFunc

While 1
Sleep(234)
WEnd
Also zum problem, wenn ich auf den button drücke kommt cmd und gibt net user ein und dann sollte ja eigentlich das was im input steht kommen aber da kommt ne 3!!!!!
was mach ich falsch?
greenfreak777 is offline  
Old 06/04/2011, 13:05   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,254
wenn du in der GUI was auslesen möchtest, musst du diesen befehl nutzen:
guictrlread($input)
omer36 is offline  
Thanks
1 User
Old 06/04/2011, 14:28   #3
 
elite*gold: 0
Join Date: Apr 2010
Posts: 36
Received Thanks: 4
hmm....
Ich weiss jetzt nicht wie ich das dann schaffe das er denn text des inputs in cmd schreibt.
Aber bei diesem tutorial
steht dass das so geht:
$input = InputBox ("Unsere erste InputBox", "Wie heißt du?")
Run ("notepad.exe")
WinWait ("Unbenannt")
Send ("Dein Name ist " & $input)
Exit
greenfreak777 is offline  
Old 06/05/2011, 17:24   #4
 
elite*gold: 9
Join Date: Dec 2009
Posts: 1,071
Received Thanks: 819
#moverequest

les dir erstmal das Tutorial komplett durch, dass greenfreak777 gepostet hat!
.Infinite is offline  
Old 06/06/2011, 20:00   #5
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Eine InputBox gibt dir direkt den wert zurück und alles, was aus einem GUICtrl kommt musst du mit GUICtrlRead auslesen.
BlackHybrid is offline  
Reply


Similar Threads Similar Threads
AutoIt Code to C++?
03/20/2010 - C/C++ - 4 Replies
Hi, Ich hab mal eine kleine Frage kann man den simplen Code #include <NomadMemory.au3> #RequireAdmin $open = _MemoryOpen(ProcessExists(".....")) While ProcessExists("......") = False MsgBox(0, "Text", "öffne bitte ......exe") WEnd
Böser Autoit code?
02/27/2010 - AutoIt - 2 Replies
Hallo ihr Lieben :), Hab ein programm runtergeladen, den einer in e*pvp hochgeladen hat. Ich wollte mir den code mal genauer anschauen, da ich dem ganzen nicht vertraute. Ich hab nun einpaar Zeilen gefunden, die mich recht verwirren. Könnten manche private Daten vom Computer via E-Mail an ihm schicken werden? Ich kenne mich nicht allzu gut in Autoit aus, dennoch kenne ich einpaar Begriffe, wo ich finde, die gehören nicht in den Autoit Projekt rein. Darunter zählt der @Computername. Und...
AutoIt exit code
02/04/2010 - Dekaron - 1 Replies
If all of you autoit scriptors can please add some sort of "exit" function to your scripts it would be great...its annoying having to right click and exit manually each time.
AutoIt Bot Code
05/20/2009 - AutoIt - 7 Replies
Ich hab versucht ein Bot mit den Befehlen ein Bild zu suche und das die Maus dort raufklickt zu scripten: #include <ImageSearch.au3> HotKeySet ( "{F10}" , "Start" ) HotKeySet ( "{F11}" , "Ende" ) $x1=0 $y1=0 Func Start ()



All times are GMT +2. The time now is 17:46.


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.