Code Monkey home page Code Monkey logo

Comments (2)

LorenzCK avatar LorenzCK commented on June 17, 2024 1

Hello @cvetantokov, thank you very much. I'm happy you find OnTopReplica useful!

It is possible to automatically setup OnTopReplica on launch using command line parameters. Use the command line to navigate to OnTopReplica's directory and

OnTopReplica.exe --help

will give you a full list of all available parameters.

For your use-case, you could use the following command:

OnTopReplica.exe --windowTitle="Opera" --region=100,100,300,200

This will clone the window with "Opera" in its title (my browser, for instance) and automatically crop the clone to a 300x200 pixel region, starting from the X:100 Y:100 point from top left.

Alternatively, you can also express the crop region in terms of padding from the external borders of the original window:

OnTopReplica.exe --windowTitle="Opera" --padding=100,200,300,400

This will crop the same browser window, using a region that is 100 pixels from the left border, 200 from the top, 300 from the right, and 400 from the bottom.

Once you find the right settings, you can simply create a .bat script that launches OnTopReplica like you need it.

Hope this helps! 😊

from ontopreplica.

cvetantokov avatar cvetantokov commented on June 17, 2024

from ontopreplica.

Related Issues (20)

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.