Author Topic: is there commandline/key shortcut for Pause/unpause?  (Read 11499 times)

Offline kC_

  • Contributor
  • ***
  • Posts: 128
is there commandline/key shortcut for Pause/unpause?
« on: May 19, 2009, 08:54:51 pm »
hi, is there a key shortcut for pause & unpause

(altbinz 0.30.1)

cheers

kC

Offline Rdl

  • Administrator
  • *****
  • Posts: 4056
Re: is there commandline/key shortcut for Pause/unpause?
« Reply #1 on: May 19, 2009, 09:12:20 pm »
hi, is there a key shortcut for pause & unpause

(altbinz 0.30.1)

cheers

kC
You have to be a bit more precise. Global pause/unpause? Commandline switch for starting program in pause or unpaused state?

Offline kC_

  • Contributor
  • ***
  • Posts: 128
Re: is there commandline/key shortcut for Pause/unpause?
« Reply #2 on: May 19, 2009, 11:20:34 pm »
sorry, i mean global pause/unpause..
basically the internet provider i am with, whilst off peak is truly unlimited usage, they mark the heaviest users during the busiest periods (with the largest load on their nodes)

so some bright spark has written an application that monitors the nodes usage, and can run commands based upon the limits that are hit.

so in my case i want this script to pause my alt binz, its syntax and commands are below, but i just need to know what command altbinz would require me to put for
"start" (unpause)
"stop" (pause)

i dont want the altbinz program to exit or disconnect, just pause.

cheers!

applcations readme incl syntax below

Quote
ALTimeter Beta
==============

Program
=======

The program accesses the RSS status page every x seconds (depending on your refresh rate) and the dial graphic every 5 minutes and displays the node load and ALT status on the ALTimeter tray icon as well as the ALT status (green is off, red is on and grey is unknown).
Optionally, the program accesses your Enta billing page and downloads your usage stats to be shown in the task bar tool tip.

Setup
=====

On first run, ALTimeter requires your Enta username and password (or MD5 hash) to log into your RSS status page, it is also possible to set a refresh rate time - please note that a refresh rate time below 60 seconds is possible however it uses more CPU and does not reveal more information because the RSS feed is only updated once per minute.
Optionally you may enter your ENTA billing username and password and usage refresh rate in minutes, this shows your current peak and offpeak usage on the task bar tool tip, if you don't require this info then hit cancel when the dialogs appear for billing username, password and refresh rate.

Addition files made by the program
==================================

ALTimeter.ini - setup file containing the users username, password and dial
ALT.xml - users RSS feed which is used to grab the ALT status
ALT.png - the dial graphic downloaded from Entanet
ALTimeter.ico - the icon for the program which updates every minute
ALTimeter.log - a log of the activity of the program to track issues and bugs
ALTimeter.csv - a comma separated text file containing the day of the year, time, node load and ALT status (-1 is unknown, 0 ALT off, 1+ ALT on)
ALTusage.html - a temporary file used to generate the usage meter

Scripted Start/Stop Programs
============================
ALTimeter supports a basic script language which can run and stop programs, press buttons, press keys and do mouse clicks. Current code supports 4 programs and 2 options, start and stop, which is used when the ALT is non-active and when the ALT is active.
Current supported commands:-
RUN - run a program, using RUN:test will pass the command line option to the exe
KEY - send a keypress or combination of keys - extended keys are Ctrl, Alt, Shift & Win. Using + combines 2 or 3 keypresses
BUTTON - press a button - this should be the button name
LCLICK - left click the mouse at x,y position, the format is LCLICK:x+y i.e. LCLICK:410+50 will left click the mouse at 410, 50
STOP - stop a program running by sending a winclose command, this may only close a program to the taskbar
KILL - sends a winkill command to the program
PSTOP - sends a processclose command, be warned this process stops a program instantly, without saving or exiting

To add a program to process,open the ALTimeter.ini in a text editor such as notepad edit the first program entry. The format is..

Program=   Full path and exe name
Start=      Command to start when ALT isn't active, the code can process multiple commands via comma separation
Stop=      Command to stop when ALT is active, the code can process multiple commands via comma separation

Example..

[Program1]
Program=c:\program files (x86)\FileZilla FTP Client\Filezilla.exe
Start=RUN,KEY:Ctrl+p
Stop=STOP

Program contains the full paths and exe name
Start will launch the program and press Ctrl P, this starts the download queue
Stop closes the program


Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: is there commandline/key shortcut for Pause/unpause?
« Reply #3 on: May 20, 2009, 12:27:10 am »
You say you don't want to disconnect, but if you change your mind you can toggle connection by replacing (via script) the following in altbinz_status.xml:

<connect>true</connect> -> <connect>false</connect>

Edit: ah, never mind, I see the tool you're using needs a keyboard shortcut.
« Last Edit: May 20, 2009, 12:29:54 am by Hecks »

Offline kC_

  • Contributor
  • ***
  • Posts: 128
Re: is there commandline/key shortcut for Pause/unpause?
« Reply #4 on: May 20, 2009, 11:55:30 pm »
k nevermind thanks anyway

Offline Rdl

  • Administrator
  • *****
  • Posts: 4056
Re: is there commandline/key shortcut for Pause/unpause?
« Reply #5 on: May 23, 2009, 10:21:15 pm »
Added - F1 to toggle Pause (can be configured now via language file)