Cem Posted January 28, 2005 Posted January 28, 2005 I have a RouterSoftware for my Bluetooth device to connect to my cellphone. Certainly I do not switch the Bluetooth function on in my cellphone and get some cointinuesly disturbing popups. (software Setups will not do) So I thought to have a scripts to stop 2 known porcesses which I can stop manualy to stop it. Is there a shortcut to stop these ? Regards to All
Andre Posted January 28, 2005 Posted January 28, 2005 Hi, I don't understand what u want exactly. But u can use : ProcessClose("notepad.exe") $PID = ProcessExists("notepad.exe") ; Will return the PID or 0 if the process isn't found. If $PID Then ProcessClose($PID) regards, Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Cem Posted January 28, 2005 Author Posted January 28, 2005 Hi AndreSure Notepad closesBut my Process , which I can see in Windows Taskmanager Processes Tab, does not.ProcessClose("mRouterWidCommSupport14.exe")$PID = ProcessExists("mRouterWidCommSupport14.exe") If $PID Then ProcessClose($PID)or this oneProcessClose("mRouterRuntime.exe")$PID = ProcessExists("mRouterRuntime.exe") If $PID Then ProcessClose($PID)Using the Task Manager I can close those processes/Cem
Andre Posted January 28, 2005 Posted January 28, 2005 (edited) Hi Cem, The processclose function needs the psapi.dll which should be in the AutoIt directory, perhaps it's missing. Try this also : $Pid = ProcessExists('mrouterruntime.exe') If $Pid Then MsgBox(4096,'process id','id = ' & $Pid) Andre Edited January 28, 2005 by Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Cem Posted January 28, 2005 Author Posted January 28, 2005 Andrelooks like there is happing somethingbut it does not stop the proecessHere the Info I got out with Security Task ManagermRouterRuntime Module 42% 2236 10,4 MB C:\Program Files\Intuwave\Shared\mRouterRuntime\mRouterRuntime.exe Program 13:43:54 DDE Server Window Intuwave Ltd. : mRouter mRouterWidCommSupport14 Module 42% 4656 6,6 MB 0:01 C:\Program Files\Intuwave\Shared\mRouterRunTime\mRouterWidCommSupport14.exe Program 13:45:33 Intuwave Ltd. : mRouter /Cem
Andre Posted January 28, 2005 Posted January 28, 2005 Hmm, doesn't say me a thing, but did u try my last example ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Cem Posted January 28, 2005 Author Posted January 28, 2005 Yes I did ! ProcessClose("mRouterRuntime.exe") $Pid = ProcessExists('mrouterruntime.exe') If $Pid Then MsgBox(4096,'process id','id = ' & $Pid) But it does not stopp the process /Cem
Andre Posted January 28, 2005 Posted January 28, 2005 Cem, Try this only !!! $Pid = ProcessExists('mrouterruntime.exe') If $Pid Then MsgBox(4096,'process id','id = ' & $Pid) Should return the PID of the process. Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Cem Posted January 28, 2005 Author Posted January 28, 2005 -> Should return the PID of the process. So what after that there is no MessageBox to see Is ther no PID ? I can see the PID number in the Task Manager there it is 2236 /Cem
Andre Posted January 28, 2005 Posted January 28, 2005 If u don't get the Pid in the messagebox then perhaps u made an typo error in the processname ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Cem Posted January 28, 2005 Author Posted January 28, 2005 Thats wright ! it was not mRouterRuntime.exe and should be mRouterRuntime. like its in the Taskmanager olé whats next I think is that I have to edit the upper scripts to come to an end /Cem
Andre Posted January 28, 2005 Posted January 28, 2005 Give it a try and let me know. Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Cem Posted January 28, 2005 Author Posted January 28, 2005 In Bold the script which is now working fineThanks a lot to Andre$Pid = ProcessExists('mRouterRuntime.')If $Pid Then MsgBox(4096,'process id','id = ' & $Pid)ProcessClose("mRouterRuntime.exe")$PID = ProcessExists("mRouterRuntime.") If $PID Then ProcessClose($PID)$Pid = ProcessExists('mRouterWidCommS')If $Pid Then MsgBox(4096,'process id','id = ' & $Pid)ProcessClose("mRouterWidCommSupport14.exe")$PID = ProcessExists("mRouterWidCommS") If $PID Then ProcessClose($PID)RegardsCem
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