Erik. Posted April 20, 2006 Share Posted April 20, 2006 Hi, i wile ago i made a program hat must kill the program. The program was runned into the back ground and you do not see it at your taskbar. how to kill that program? when i open my program it does not kill it. Someone a simply program that does work? its running into the background and you do not see it at your taskbar. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Valuater Posted April 20, 2006 Share Posted April 20, 2006 (edited) whats the name of it??... whats the process name have you looked at .. WinClose() Processclose() in help??? 8) Edited April 20, 2006 by Valuater Link to comment Share on other sites More sharing options...
Erik. Posted April 20, 2006 Author Share Posted April 20, 2006 Hi, yes a already did that. it does not work. explain: i do not have any acess to Ctrl+Alt+delete i do not see the program running the icon is hide from the desktop i can see the file running when i do into dos tasklist the program name is: Net op teacher The name of the program that must be closed is: Nstdw32.exe that must be closed i only made this: processclose("Nstdw32.exe") msgbox(64,"Program closed","The program is closed") That was all. That does not work I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
NightGaunt Posted April 20, 2006 Share Posted April 20, 2006 The service is run under the system account, only an Admin to the box would have access to stop it from running. It may well even get it's permissions from the Domain Controller depending upon how they set-up the NetOp install. When NetOp runs in stealth mode it is designed not to be stopped at the console level without the proper access rights. It sounds like you are running the Student version, probably in a classroom or similar setting; hacking of this sort is probably just bad-press for auto-it. "I have discovered that all human evil comes from this, man's being unable to sit still in a room. " - Blaise Pascal Link to comment Share on other sites More sharing options...
Erik. Posted April 20, 2006 Author Share Posted April 20, 2006 I can close the program!! What i do is: go to dos(cmd.exe) tasklist tskill (porcessnumber) -a then the process is killed i want to let it kill by a program and hidden kill so i do not have to open dos. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
NightGaunt Posted April 20, 2006 Share Posted April 20, 2006 I can close the program!! What i do is: go to dos(cmd.exe) tasklist tskill (porcessnumber) -a then the process is killed i want to let it kill by a program and hidden kill so i do not have to open dos. That's odd... What about $PID = ProcessExists("Nstdw32.exe"); Will return the PID or 0 if the process isn't found. If $PID Then ProcessClose($PID) Msgbox (62,"",$PID & ": Pid Number") If you get back a 0 you'll know it isn't finding the process correctly. "I have discovered that all human evil comes from this, man's being unable to sit still in a room. " - Blaise Pascal Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 20, 2006 Moderators Share Posted April 20, 2006 While 1 If ProcessExists('Nstdw32.exe') Then Do ProcessClose('Nstdw32.exe') ToolTip('Trying To Close Process', 0, 0) Until Not ProcessExists('Nstdw32.exe') Else ToolTip('Process Does Not Exist', 0 , 0) Sleep(3000) EndIf Sleep(10) WEndTry this and see if you get stuck in the Do/Until Loop. Maybe it restarts itself with another script running at the same time, might try to track that down. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Erik. Posted April 20, 2006 Author Share Posted April 20, 2006 i will try thanks I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 20, 2006 Share Posted April 20, 2006 i will try thanks Hi, maybe you can try this, too. expandcollapse popupOpt("WinTitleMatchMode", 4) #include <GUIConstants.au3> #include <Process.au3> $GUI = GUICreate("Exit Programm", 233, 251, 192, 125) ;Group $options_G = GUICtrlCreateGroup("Options", 8, 40, 217, 201) ;RadioButton $taskkill_R = GUICtrlCreateRadio("Taskkill", 16, 64, 80, 17) $winClose_R = GUICtrlCreateRadio("WinClose", 16, 88, 80, 17) $winKill_R = GUICtrlCreateRadio("WinKill", 16, 112, 80, 17) $processClose_R = GUICtrlCreateRadio("ProcessClose", 16, 136, 80, 17) $pid_R = GUICtrlCreateRadio("ProcessID", 126, 112, 80, 17) ;Input $programm_I = GUICtrlCreateInput("Type here", 16, 184, 201, 21, -1, $WS_EX_CLIENTEDGE) ;Label $status_L = GUICtrlCreateLabel("Ready...", 16, 216, 203, 17, $SS_SUNKEN) $headline_L = GUICtrlCreateLabel("Exit Program", 16, 8, 211, 25) $program_L = GUICtrlCreateLabel("Enter Program", 16, 160, 203, 17, $SS_SUNKEN) ;Button $Go_B = GUICtrlCreateButton("GO", 126, 64, 89, 30) GUICtrlSetColor($headline_L, "0xff0000") GUICtrlSetColor($program_L, "0xff0000") GUICtrlSetFont($headline_L, 14, 400, "", "Arial") GUICtrlSetState($programm_I, $GUI_FOCUS) GUISetState(@SW_SHOW) GUICtrlSetState($taskkill_R, $GUI_CHECKED) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Go_B If GUICtrlRead($taskkill_R) = $GUI_CHECKED Then _taskkill() If GUICtrlRead($winClose_R) = $GUI_CHECKED Then _winClose() If GUICtrlRead($winKill_R) = $GUI_CHECKED Then _winKill() If GUICtrlRead($processClose_R) = $GUI_CHECKED Then _processClose() If GUICtrlRead($pid_R) = $GUI_CHECKED Then _killByPID() Case Else ;;;;;;; EndSelect WEnd Func _taskkill() $rc = _RunDOS("start taskkill /F /IM " & GUICtrlRead($programm_I) & " /T") GUICtrlSetData($status_L, "Process " & GUICtrlRead($programm_I) & " killed") Sleep(2500) GUICtrlSetData($status_L, "Ready...") EndFunc ;==>_taskkill Func _winClose() If WinExists(GUICtrlRead($programm_I)) Then WinClose(GUICtrlRead($programm_I)) Else GUICtrlSetData($status_L, "Window doesn't exist") Sleep(2500) GUICtrlSetData($status_L, "Ready...") EndIf EndFunc ;==>_winClose Func _winKill() If WinExists(GUICtrlRead($programm_I)) Then WinKill(GUICtrlRead($programm_I)) Else GUICtrlSetData($status_L, "Window doesn't exist") Sleep(2500) GUICtrlSetData($status_L, "Ready...") EndIf EndFunc ;==>_winKill Func _processClose() If ProcessExists(GUICtrlRead($programm_I)) Then ProcessClose(GUICtrlRead($programm_I)) Else GUICtrlSetData($status_L, "Process doesn't exist") Sleep(2500) GUICtrlSetData($status_L, "Ready...") EndIf EndFunc ;==>_processClose Func _killByPID() If _ProcessGetName(GUICtrlRead($programm_I)) <> '' Then $rc = _RunDOS("start taskkill /PID " & GUICtrlRead($programm_I) & " /T") GUICtrlSetData($status_L, "ProcessID " & GUICtrlRead($programm_I) & " - (" & _ProcessGetName(GUICtrlRead($programm_I)) & ")" & " killed") Sleep(2500) GUICtrlSetData($status_L, "Ready...") Else GUICtrlSetData($status_L, "ProcessID doesn't exist") Sleep(2500) GUICtrlSetData($status_L, "Ready...") EndIf EndFunc ;==>_killByPID So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Erik. Posted April 20, 2006 Author Share Posted April 20, 2006 Lol Thanks i will try is it works. I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Paulie Posted April 20, 2006 Share Posted April 20, 2006 explain: i do not have any acess to Ctrl+Alt+delete if it will help you, instead of simulating ctr+alt+del Use: Run ("taskmgr.exe") Link to comment Share on other sites More sharing options...
Erik. Posted April 21, 2006 Author Share Posted April 21, 2006 Hi, i want to kill the program by another program so nobody see it. i will try. thanks for your help I little problem, hard to find and fix Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now