Kann mir jdm helfen? (autoitproblem)

01/27/2010 23:44 1cooli3hacker#1
also auch wenns vllt nicht ganz passt=D

zur info ich scripte ca. 2h autoit jetztD= also vollNOOB

Quote:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Prozesskiller by xmoeglll", 253, 129, 443, 377)
$Process = GUICtrlCreateInput("Hallo", 8, 32, 233, 23)
$Label1 = GUICtrlCreateLabel("Prozess:", 104, 8, 44, 17)
$Button1 = GUICtrlCreateButton("Kill Prozess", 8, 64, 233, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
kill ()
EndSwitch
WEnd

Func kill ()
ProcessClose ($Process)
EndFunc
so weit so gut hab ich dann mal getestet ging nicht -.-
hab dann mal den input getestet (mit einer msgbox), die die variable Process anzeigen sollte... aber dann kam immer nur 3 raus = ( ich weiss nicht was ich da falsch gemacht habe...


EDIT: ohne die GUI bekomm ich des hin ohne fehler aber die ganzen fenster nerven-.-
01/28/2010 08:50 Cholik#2
1. Dafür haben wir eine AutoIt Sektion ...
2. Wähl bitte nächstes Mal eine eindeutige Überschrift für deinen Thread.

#moved
01/28/2010 12:49 Neon™#3
Du musst den Inhalt der Box hiermit auslesen:

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Prozesskiller by xmoeglll", 253, 129, 443, 377)
$Process = GUICtrlCreateInput("Hallo", 8, 32, 233, 23)
$Label1 = GUICtrlCreateLabel("Prozess:", 104, 8, 44, 17)
$Button1 = GUICtrlCreateButton("Kill Prozess", 8, 64, 233, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
kill ()
EndSwitch
WEnd

Func kill ()
$Process_to_kill = GuiCtrlRead($Process)
ProcessClose ($Process_to_kill)
EndFunc
01/28/2010 16:47 kknb#4
ProcessClose(GuiCtrlRead($Process))
01/28/2010 17:52 1cooli3hacker#5
Quote:
Originally Posted by Neon™ View Post
Du musst den Inhalt der Box hiermit auslesen:

Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Prozesskiller by xmoeglll", 253, 129, 443, 377)
$Process = GUICtrlCreateInput("Hallo", 8, 32, 233, 23)
$Label1 = GUICtrlCreateLabel("Prozess:", 104, 8, 44, 17)
$Button1 = GUICtrlCreateButton("Kill Prozess", 8, 64, 233, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
kill ()
EndSwitch
WEnd

Func kill ()
$Process_to_kill = GuiCtrlRead($Process)
ProcessClose ($Process_to_kill)
EndFunc

Danke = )

nochmal sorry für falsche section =(

jetzt weiss ich ja wo es hin muss=D

habs auch nur heir gemacht weil ein paar unter mir habn auch solche threads gemacht....

werds dann gleich mal ändern =)

nochmal danke=)