Task at HG Startup

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by [email protected], Feb 6, 2006.

  1. arnis@nyherji.is

    [email protected]

    Joined:
    Oct 30, 2004
    Messages:
    43
    Likes Received:
    0
    Location:
    Iceland
    i want HG to do certain thing, preferably with logic every time it start up, I.E the the PC running HG is rebooted the next time it runs it will sense that it is starting up, and do special tasks.

    at the moment I am not seeing the best way to do this, any sugestions ?
     
    [email protected], Feb 6, 2006
    #1
  2. arnis@nyherji.is

    PSC

    Joined:
    Aug 3, 2004
    Messages:
    626
    Likes Received:
    0
    Location:
    Brisbane, Australia
    Arnis,

    Firstly, all you need to do is setup HG so it starts automatically on boot up.

    The HomeGate program can be started with various properties enabled upon start-up. These properties are called Command-Line Parameters. For example the program can start with a particular file loaded, and with the C-Bus communications channel already open. This is particularly useful when the program is set to automatically start when the computer is started (by having the program in the Windows StartUp folder) or if you have a Desktop shortcut.

    To set the command-line parameters, right click on the HomeGate shortcut (on the desktop or Start menu), and select the Properties item. The command-line parameters are entered into the Target box.

    The syntax is as follows :

    ExeFilename [filename] [/cgate] [ /www ] [ /jpeg=level ] [/operate] [/nosplash] [/syncschedules] [/log=enable | /log=save | /log=append] [ /autosave | /autosave=time ]

    Where :

    ? ExeFilename is the path and file name of the executable file. Note that if there are spaces in the executable file path or file name, the ExeFileName must be enclosed within double quotes.
    ? Filename is the name of a file to be loaded. Note that if there are spaces in the file name, the file name must be enclosed within double quotes.
    ? /cgate selects whether C-Bus communications are to be opened with C-Gate.
    ? /www determines whether to connect via the World Wide Web

    ? /jpeg determies the compression of jpeg images for www access. Options are low, medium, high or best (default is high).
    ? /operate puts the program in Operation Mode
    ? /nosplash shows the splash screen for only the minimum amount of time
    ? /syncschedules performs a Synchronise to Schedules after connection to C-Gate
    ? /log=enable enables the logging
    ? /log=save enables the logging and saves it to a log file

    ? /log=append enables the logging and appends it to the log file
    ? /autosave sets the autosave feature on, with the default duration (15 minutes)
    ? /autosave=time sets the autosave on with the specified time (in seconds)

    The ExeFileName must be present, and must be first. The FileName is optional, but if used, must be second. All other parameters are optional and may occur in any order. There must be a space between each parameter.

    Examples :

    "C:\Clipsal\HomeGate.exe" "C:\Clipsal\HomeGate\Projects\MyHouse.ctd"

    will load the file MyHouse.ctd at start-up

    "C:\Clipsal\HomeGate.exe" "C:\Clipsal\HomeGate\Projects\MyHouse.ctd" /cgate /log=save

    will load the file MyHouse.ctd at start-up and connect via C-Gate, with logging enabled.

    "C:\Clipsal\HomeGate.exe" "C:\Clipsal\HomeGate\Projects\MyHouse.ctd" /cgate /www /jpeg=high

    will load the file MyHouse.ctd at start-up and connect via C-Gate, with web access with high quality jpeg images


    Secondly, you just need to type your logic into the 'Intialisation' module nestled in the logic engine - Left window, +Program, +Advanced, Intialisation.

    I hope this helps.
     
    PSC, Feb 7, 2006
    #2
  3. arnis@nyherji.is

    Phil.H

    Joined:
    Jul 29, 2004
    Messages:
    466
    Likes Received:
    0
    Location:
    Sydney
    Phil.H, Feb 7, 2006
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.