Please login or register.

Login with username, password and session length

Author Topic: Running a windows command  (Read 3019 times)

Tinman55

  • Full Member
  • ***
  • Helpful Post Rating: 1
  • Posts: 29
Running a windows command
« on: April 09, 2009, 06:13:53 PM »

Need some help here just to dbl check. Do you have to have AHP running on the pc if you want a macro to work that states "Macro must be run from PC" ??

I always have my CM15a hooked to the pc and the pc runs 24/7, but I do not run AHP 24/7.
Logged

bitman

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 597
Re: Running a windows command
« Reply #1 on: April 09, 2009, 10:57:03 PM »

Yes AHP must run the macro as it is not a windows or even DOS macro but an AHP macro.
Logged
Long live X10! - Because I just like it is all.....

Tinman55

  • Full Member
  • ***
  • Helpful Post Rating: 1
  • Posts: 29
Re: Running a windows command
« Reply #2 on: April 10, 2009, 08:03:04 AM »

Thanks for clearing that up for me......I have been having trouble with some of my macros that all execute a windows command (.bat files in this case) They would work most of the time when I had AHP open and did the "run macro"  but not always and they never would work when AHP was closed. These are alarm macros that turn on floodlights and start some IP cameras to record.....SO its not like they have had to run....YET  ;D  After further reading I see there is a bug in AHP that loses it macros window commands on a reboot. So I made the script file like Tuiceman did in his post and we will see how it goes.
Logged

bitman

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 597
Re: Running a windows command
« Reply #3 on: April 10, 2009, 09:33:17 AM »

I read somewhere here that some versions of AHP fail to execute .bat files all the time and that the cure was to turn them into .exe files via bat2exe.

 
Logged
Long live X10! - Because I just like it is all.....

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Running a windows command
« Reply #4 on: April 12, 2009, 07:09:58 PM »

Actually the Windows command bug is long standing I posted a workaround Here with a step by step walk threw!
A search should have turned it up! ::) :'
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

Tinman55

  • Full Member
  • ***
  • Helpful Post Rating: 1
  • Posts: 29
Re: Running a windows command
« Reply #5 on: April 13, 2009, 08:11:51 AM »

Thanks Tuiceman, Your guide has made my macros run perfect ever since. And, I might add... that will be a very handy little program to have in the future  :)%
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.