Code Monkey home page Code Monkey logo

Comments (3)

readnotify avatar readnotify commented on May 20, 2024

Also tried this:-

 [cnd@uvm ~]$ python3 clicky.pyc 
 RuntimeError: Bad magic number in .pyc file

from atbswp.

readnotify avatar readnotify commented on May 20, 2024

I noticed this find nothing:-

grep -r sys.arg .

so it looks like this tool does not have any way to read commandline arguments?

I guess this is now a feature-request:-

Please allow us to run this code as follows:-

  ./atbswpv0.3.0-linux  saved_capture_file

and for the code to open, automatically play that capture, and then end and exit.

Think about this: right now, there's no way to automate the mouse, without using the mouse...

This simple extra addition allows us to script mouse things from the command line.

from atbswp.

RMPR avatar RMPR commented on May 20, 2024

a) Document what "Compile to exe" actually is/does
b) Make it work so that I can save something and then run a command to play it back :-)

( I assume (b) exists, but it's not documented on the project homepage... )

The .pyc is a python bytecode file, you can read more about that here. I am not against a PR to explain a bit what it is to people that might be confused. I just don't find it that much relevant to add to the project page as it's not something specific to atbswp, but to the whole Python ecosystem. I will probably never do that myself.

Also tried this:-

 [cnd@uvm ~]$ python3 clicky.pyc 
 RuntimeError: Bad magic number in .pyc file

This is actually interesting to me, can you try to decompile the file and post the content here?

uncompyle6 -o . your_filename.pyc

You might need to install uncompyle6 first

I noticed this find nothing:-

grep -r sys.arg .

so it looks like this tool does not have any way to read commandline arguments?

I guess this is now a feature-request:-

Please allow us to run this code as follows:-

  ./atbswpv0.3.0-linux  saved_capture_file

and for the code to open, automatically play that capture, and then end and exit.

Think about this: right now, there's no way to automate the mouse, without using the mouse...

This simple extra addition allows us to script mouse things from the command line.

Yes, it's a GUI-only program (for now). Playing a capture from atbswp seems like an useful addition for people that don't have Python installed on their OS. Feel free to open a new issue with that specific inquiry and I will certainly have a look when I have more time.

from atbswp.

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.