Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Problems with the way Windows handles processess.


05 Apr 2014   #1
meb

Win 7 64x
 
 
Problems with the way Windows handles processess.

Well here they are, I'm a little hard of english; but I tried to phrase them the best I could:
In Windows 7 Ultimate 64X is their anyway to have another follow in the foot steps of 'explorer.exe' i.e. meaning that it will start or restart another whens starts.


I run an auto text completion program; every so often it goes idle and I have to manually end the process and restart it.. Is their anyway to have the operating system do for me?



Sincerely,
Matthew Edward Becker



My System SpecsSystem Spec
.

05 Apr 2014   #2

Windows 7 Home Premium
 
 

My System SpecsSystem Spec
05 Apr 2014   #3

Windows 7 32 bit
 
 

The code is untested. The way it should work is you click on the window of the program you wish to kill and restart to make it the active window. Then press hotkey Control Shift F12. Of course the program must be running in the tray to catch the hotkey press. You should be prompted you wish to restart the program. If you click Yes the program is closed. After 3 seconds it is run. There won't be any command line arguments as they cannot be gotten consistently enough to depend on that behavior.

Anyway give the script a try. The atatched file MilesAhead.ahk should be in the same folder as this script. Save this script with an ahk extension. Maybe Restart.ahk

Go to AutoHotkey for free ahk tools.

Code:
#Include MilesAhead.ahk
ppath := ""
pname := ""
;for now use Control Shift F12 as hotkey
^+F12::
ppath := WinGetProcessPath("A")
if (ErrorLevel)
{
  SoundPlay,*16
  return
}
pname := _FileName(ppath)
Process,Exist,%pname%
If (! ErrorLevel)
{
  SoundPlay,*16
  return
}
MsgBox,4,Application Restarter,Restart %ppath%  ??
If MsgBox Yes
{
  Process, Close,%pname%
  Sleep, 3000
  Run,%ppath%
}
return
MilesAhead.zip


My System SpecsSystem Spec
.


Reply

 Problems with the way Windows handles processess.




Thread Tools



Similar help and support threads for2: Problems with the way Windows handles processess.
Thread Forum
Registry location that handles log on screen General Discussion
lsass,exe leaking resources (handles) General Discussion
Wireless isn't loading as fast. Which driver handles it? Network & Sharing
Gadget handles Gadgets
Program for watching processess,and some kind of memory Performance & Maintenance

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:16 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33