Tuicemen.com

Advanced search  

News:

Alex10  (Build 1.5.3.5 ) is now  available for download ~:0~

Pages: [1]

Author Topic: closing another application from a user command not working  (Read 1470 times)

KENRAD

  • PCC Tester
  • Hero Member
  • ****
  • Helpful Rating: 4
  • Offline Offline
  • Posts: 480
closing another application from a user command not working
« on: December 22, 2013, 08:58:34 pm »

Hey T, 

I started trying to set up a few new user commands that will close other applications and it doesn't seem to be working in the latest release.  I am trying to close simple exe's compiled with AHK. 

 (Chr)  Ken
Logged
I have no clue how to do this but its a lot of fun trying.
Win 8.1, win 7 64 and 32 bit,
XTBR, CM15A, ZTroller
PCC, T.A.C ,HS3, Nitrogenlogic remote, Bluewatch(BT), Bluewatch(WIFI), all plug ins
Microsoft kinect,
Nitrogen logic depth controllers
Phillips Hue, Global Cache, Hyperion, Kodi

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3151
  • Making Home Automation Fun!
    • Tuicemen.com
Re: closing another application from a user command not working
« Reply #1 on: December 23, 2013, 06:52:50 am »

I need a little more info so I can look into this.
PCC Should close a executable program if it is listed in the task manager.

The exe files you created with AHK are scripts.
If this script starts say notepad then opens IE for example.
You need to tell PCC to close notepad and IE, closing the AHK.exe file won't do that.
Closing a AHK exe file only will close that script not what was activated with it.
 (Chr)
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

KENRAD

  • PCC Tester
  • Hero Member
  • ****
  • Helpful Rating: 4
  • Offline Offline
  • Posts: 480
Re: closing another application from a user command not working
« Reply #2 on: December 23, 2013, 05:34:58 pm »

I am trying to close the AHK.EXE file and it is no working.  Itguy helped me create a simple AHK script that will trigger an event in HS that has PCC speak a reminder every (X) minutes based on milliseconds.  So what I am trying to accomplish is when a light switch is turned on for instance the basement. (that is out of sight)  every 30 minutes PCC will remind me that the basement light is on.  but when I turn the switch off I want PCC to close the script because it loops continuously until it is closed.   

 (Chr)  Ken
Logged
I have no clue how to do this but its a lot of fun trying.
Win 8.1, win 7 64 and 32 bit,
XTBR, CM15A, ZTroller
PCC, T.A.C ,HS3, Nitrogenlogic remote, Bluewatch(BT), Bluewatch(WIFI), all plug ins
Microsoft kinect,
Nitrogen logic depth controllers
Phillips Hue, Global Cache, Hyperion, Kodi

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3151
  • Making Home Automation Fun!
    • Tuicemen.com
Re: closing another application from a user command not working
« Reply #3 on: December 23, 2013, 06:14:04 pm »

You may need to do this with AHK and have PCC trip the stop script.
Can you stop the script with windows task manager?
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

KENRAD

  • PCC Tester
  • Hero Member
  • ****
  • Helpful Rating: 4
  • Offline Offline
  • Posts: 480
Re: closing another application from a user command not working
« Reply #4 on: December 23, 2013, 08:23:52 pm »

I am able to stop the script in the task manager but not in PCC


 (Chr)  Ken
Logged
I have no clue how to do this but its a lot of fun trying.
Win 8.1, win 7 64 and 32 bit,
XTBR, CM15A, ZTroller
PCC, T.A.C ,HS3, Nitrogenlogic remote, Bluewatch(BT), Bluewatch(WIFI), all plug ins
Microsoft kinect,
Nitrogen logic depth controllers
Phillips Hue, Global Cache, Hyperion, Kodi

Tuicemen

  • Administrator
  • Hero Member
  • *****
  • Helpful Rating: 24
  • Offline Offline
  • Posts: 3151
  • Making Home Automation Fun!
    • Tuicemen.com
Re: closing another application from a user command not working
« Reply #5 on: December 28, 2013, 04:04:44 pm »

Ok digging into this a little more it seems some applications just can't be closed with VB.net (CZB)
I'm able to close some applications but not others. (cB)
It looks like creating a AHK script exe to do this maybe the only route for this at the moment.
However I'll continue to look into this to see why some apps will close while others won't.
Logged
Get the inside scoop and member perks in the
Members Only Section!

Please don't email me Automation questions 
The forum is for that!

KENRAD

  • PCC Tester
  • Hero Member
  • ****
  • Helpful Rating: 4
  • Offline Offline
  • Posts: 480
Re: closing another application from a user command not working
« Reply #6 on: December 28, 2013, 08:46:00 pm »

Thanks for looking into is T,

Itguy is also looking on his end as he is the one that wrote the original AHK script


 (Chr)  Ken
Logged
I have no clue how to do this but its a lot of fun trying.
Win 8.1, win 7 64 and 32 bit,
XTBR, CM15A, ZTroller
PCC, T.A.C ,HS3, Nitrogenlogic remote, Bluewatch(BT), Bluewatch(WIFI), all plug ins
Microsoft kinect,
Nitrogen logic depth controllers
Phillips Hue, Global Cache, Hyperion, Kodi
Pages: [1]