Python Forum
generate a fake lag using python? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: generate a fake lag using python? (/thread-6215.html)



generate a fake lag using python? - jhave_21 - Nov-11-2017

hi all, So I wanna generate a fake lag using python, fake because even the screen is "non-responsive" the processes is still running (on the background), what I mean by lag is the screen is not moving, maybe what I really mean is to capture the current screen when the script is activated and maintain it for a couple of seconds or until I do something.

Do you think there's any module for this
I wan't to create a simple (fake lag) so that when I put it in a script I'll use "time.sleep()"
so that it would just activate on the specified time.
note:I'm running windows 7 but I want it to run too at other versions of windows and I'm using python 2.7


RE: generate a fake lag using python? - sparkz_alot - Nov-11-2017

Sounds as if you're looking for a screen saver type solution but using a screen capture image.

You might try pyscreenshotautopy or mss.

As a side not, you really should be using the latest version of Python (3.6.3), not the 'dead' version.


RE: generate a fake lag using python? - jhave_21 - Nov-12-2017

Hi, I did not yet tried your suggestion but what do you mean "dead" version?


RE: generate a fake lag using python? - metulburr - Nov-12-2017

Python2.x is most likely not going to be maintained after 2020.


RE: generate a fake lag using python? - jhave_21 - Nov-12-2017

well, May I know why? I like 2.7