Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TAG and SCREENSHOT options #137

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added TAG and SCREENSHOT options #137

wants to merge 1 commit into from

Conversation

3ynm
Copy link

@3ynm 3ynm commented Dec 29, 2015

Now you can set a TAG and capture SCREENSHOTS while using selfspy.

PS: Gurgeh, I'm the guy which contacted you about the project through Twitter, how can we manage the retake? Greetings!

currenttime = str(int(time.time()))

self.app.primaryScreen().grabWindow(self.app.desktop().winId()).save(os.path.join(self.directory,currenttime+'.png'), 'png')
print "Screenshot saved to "+ os.path.join(self.directory,currenttime+".png")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use logging and print as a function (for Python 3).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually the project only compiles with python2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really an argument, is it? :)
(it will only make it more difficult to port in the future)
Apart from that: what about using logging instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no actual log file on selfspy, so I don't see how this would be useful. Anyways I'm willing to reconsider

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be logged to the default output handler (console).

@blueyed
Copy link
Contributor

blueyed commented Dec 29, 2015

FWIW, I found this useful when looking at automatically taking screenshots: http://www.autopy.org/documentation/api-reference/bitmap.html#capture_screen

@3ynm
Copy link
Author

3ynm commented Jan 2, 2016

@blueyed why should I use that instead of PyQt?

@blueyed
Copy link
Contributor

blueyed commented Jan 2, 2016

I just wanted to leave this as some suggestion - it might be more lightweight than PyQt.

@gurgeh
Copy link
Collaborator

gurgeh commented Feb 7, 2016

@Hacktivista I'm back doing some cleaning. I think that the PyQT-dependency should be optional (especially since I'm guessing that this only works on Linux?), if people want the screenshot functionality. I don't know what the normal method is for letting someone take over a project. Tell me if you know, otherwise I will have to look it up.

@3ynm
Copy link
Author

3ynm commented Feb 7, 2016

Should work on every OS. Since it's QT does. Although I proved on Linux only.

Here into to transfer repo: https://help.github.com/articles/transferring-a-repository/

@gurgeh
Copy link
Collaborator

gurgeh commented Mar 14, 2016

@Hacktivista I tried the transfer, but since you already have a fork named "selfspy", it won't go through. You'll have to rename or remove it first!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants