Giter Club home page Giter Club logo

memobird-bat's Introduction

Introduction

This is a batch file (BAT) used for printing message with Memobird (咕咕机) in windows when the logged in/out to Windows.

Run with your own Memobird

  1. Register your developer account at https://open.memobird.cn/ and obtain your access key (AK)

  2. Obtain your Memobird ID by double-clicking the button on your device. The ID will print out automatically.

  3. Bind your account using HTTP POST to http://open.memobird.cn/home/setuserbind

    The data send should contains:

    "ak" = "Your access key",
    "memobirdID" = "Your memobird ID",
    "useridentifying" = "An arbitrary nickname"

    You should get the message returned containing you userID (a digital string)

  4. Apply the POST parameters to batch file.

    Where, AAA = Your access key obtained in Step 1, BBB = Your memobird ID obtained in Step 2 and CCC = Your userID Obtained in Step 3.

    curl -d "ak=AAA&printcontent=%Msg%&memobirdID=BBB&userID=CCC" -X POST http://open.memobird.cn/home/printpaper

Edit the directory

It should be noticed that, when adding bat file to Start Up folder or the user configurations, indirectly referencing other files might fail. So it is strongly recommended to directly reference base64.bat.

Please change the directory of base64.bat in the scripts line 6&7 before using it.

Add to system configuration

For Windows 8 Pro or newer

Use Win+R and open gpedit.msc, the Local Group Policy Editor.

Under Computer Configuration / Windows Settings you'll find Scripts (Startup/Shutdown)

Under User Configuration / Windows Settings you'll find Scripts (Logon/Logoff)

Then you can add the scripts.

For Win8 or Win10

If you are not using a Pro version Windows, you may use the methods below to add the batch file to the start-up folder.

Use Win+R and open shell:startup, the Start-up folder.

Copy the BAT file to the folder opened.

For Win7 or below

Start -> Programs or All Programs->Start Up->Right click and open folder.

Copy the BAT file to the folder opened.

Reference

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.