Can I mine crypto with HandyCafe?

Can you run a miner on idle cafe PCs and stop it when a customer arrives? Yes. Here is how to set up the task and when the program stops.

By Atilla Yurtseven · · Updated · 3 min read

Key takeaways

Yes. Your miner starts when a PC has been idle on the lock screen for the time you set. It stops when someone uses the keyboard or mouse or a customer session starts. Use the Client Tasks trigger 'Idle on the lock screen, stop on input'. The client must be 5.2.10 or newer. HandyCafe has no miner bundled. You install the program yourself.

  • The miner starts when the PC is idle and stops when someone uses it.
  • The trigger is Idle on the lock screen, stop on input.
  • The client must be 5.2.10 or newer and run Windows.
  • The program closes together with the child processes it started.
  • HandyCafe has no miner, pool setup or earnings reporting.
Operations HandyCafe
On this page

Can you run a miner on idle cafe PCs and stop it automatically when a customer arrives? Yes. The program starts when a PC has been idle on the lock screen. It stops when someone touches the keyboard or mouse or a session opens.

In HandyCafe you do this with Client Tasks. HandyCafe has no miner, pool setup, hashrate or earnings reporting and no wallet. It starts and stops the program you install.

What you need

  • Client version 5.2.10 or newer. Older clients do not receive this task.
  • A Windows client.
  • A package that includes task automation.
  • The miner installed on the PC, at the same path on every PC.

To copy the program to many PCs, File Sync can put it on the same target path on all clients.

Setting up the task

  1. Open Settings > Clients > Client Tasks.
  2. Press Add Task and enter a name.
  3. Set the trigger to Idle on the lock screen, stop on input.
  4. Enter Idle time before running (seconds). The range is 30 to 86400 and the default is 300.
  5. Enter Mouse tolerance (pixels). The range is 0 to 500 and the default is 10.
  6. Set the action to Run a program and enter the path and arguments. For a script, choose Run script (.bat / .cmd) and upload it to the server.
  7. Save. The task goes to connected clients at once.

This trigger offers only these two actions. The program is always left running in the background. That is why the Wait for it to finish option does not appear.

When the program starts

On the lock screen the client checks keyboard and mouse use every 5 seconds. If nothing has been used for the time you set, it starts the program. If the program is already running, it does not start a second copy.

The program does not start while a session is open or paused. The task becomes active again when the lock screen returns.

When the program stops

Event Result
Key press or click Always stops
Mouse move above the tolerance Stops
Mouse move below the tolerance Keeps running
Customer session starts Stops first as the session opens
Admin mode starts Stops
Client closes unexpectedly The program stops too

Closing the program also closes the child processes it started. Miners often open separate worker processes. This means nothing stays open in the background.

After it stops, the program starts again when a new idle period on the lock screen is complete.

Setting the mouse tolerance

At a low value even a small bump of the desk can stop the program. At a high value small mouse moves are ignored and the program stops on a key press or click. Start with the default of 10 pixels. Raise it if the program stops for no good reason.

Checking that it works

  1. After saving, wait for the idle time. You can use a short time while testing.
  2. Check in Task Manager that the program is running.
  3. Press a key and confirm that it closes.
  4. Wait for it to start again, then open a session on the PC. Confirm that it closes.

Good to know

  • The task goes to every client. There is no setting to pick one PC. If you install the program on only some PCs, the launch fails on the others and their other tasks carry on.
  • Antivirus may block the program. Security software, Windows Defender included, commonly flags miners as unwanted software. If the program does not start, look there first.
  • Do not use the other idle trigger. "Idle on the lock screen" can stop the program at session start but does not stop it on keyboard or mouse use.
  • HandyCafe does not show earnings. Follow those in your own miner.

You can also manage the PCs remotely from the server screen. Every field is described in the Client Tasks documentation.

Frequently asked questions

Does HandyCafe include a miner?

No. HandyCafe has no miner, pool setup, hashrate or earnings reporting and no wallet. It only starts and stops the program you install.

What happens when a customer sits down?

A key press or click always stops the program. A mouse move above the tolerance also stops it. When a customer session or admin mode starts, the program is closed first.

Does the program start again after it stops?

Yes. It starts again when a new idle period on the lock screen is complete. It does not start while a session is open or paused.

Can I run it on only some PCs?

The task goes to every connected client and there is no setting to pick one PC. Install the program only on the PCs you want. On the others the path does not exist. The launch fails there and their other tasks carry on.

Which version do I need?

This trigger needs client 5.2.10 or newer. Older clients do not receive the task.

See what Client Tasks can do

Start and stop your own programs from the server.