Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ShutDownProcess
#1
Code:
Copy      Help
ShutDownProcess("NOTEPAD")
;ShutDownProcess(win("" "Notepad"))


These fail for me on a few of my comps, and i am not sure why.
Do i have a system setting different if so what one do i change?
#2
what error message then is in qm output?

what is your qm version?
#3
quick Macros version 2.2.1.5

the output is in half german and here is the translation

translation:
The connection number is inadmissible

Error (RT) in Function: Die Bindungsnummer ist unzulässig.
#4
Try this:

ShutDownProcess("NOTEPAD" 16)

---------------

Also, when you run this macro, what number is displayed in qm output?

Macro
Code:
Copy      Help
GetWindowThreadProcessId(win("Notepad") &_i)
if(!WTSTerminateProcess(0 _i 0)) out GetLastError
#5
works perfect, thank you.
1702 is the ouput is that correct?


Forum Jump:


Users browsing this thread: 1 Guest(s)