Comments (4)
Can you use Debug.off()
and Debug.on()
to temporarily switch off the logging output?
https://lackey.readthedocs.io/en/latest/lackey.html#lackey.DebugMaster.off
from lackey.
Can you use
Debug.off()
andDebug.on()
to temporarily switch off the logging output?https://lackey.readthedocs.io/en/latest/lackey.html#lackey.DebugMaster.off
I have tried it but I don't get the expected behaviour:
import lackey
def test_type():
print(lackey.Debug.__dict__)
np = lackey.App("Notepad")
np.focus()
lackey.type(np.window(), "my secret")
lackey.Debug.off()
test_type()
lackey.Debug.on(1)
test_type()
Outputs:
{'_debug_level': 0}
[action] Clicked at (Location object at (1440,523))
[action] Typing 'my secret' with modifiers 'None'
{'_debug_level': 1}
[action] Clicked at (Location object at (1440,523))
[action] Typing 'my secret' with modifiers 'None'
from lackey.
Sorry, it's been a little while since I've looked at this.
Try disabling it with lackey.Settings.ActionLogs = False
.
from lackey.
Turning action logs off works. Thanks!
from lackey.
Related Issues (20)
- Functions `findAny` and `find...List` are missing HOT 2
- Documentation not available (.io => .org) HOT 1
- Method waitVanish does not raise FindFailed exception after seconds timeout HOT 2
- Raspbian support HOT 1
- Adjust the minimum of similarity HOT 2
- Is Lackey still active/supported? HOT 3
- How can I customize the size of the screen that needs to be monitored HOT 1
- Mouse method `move(xoff, yoff)` doesn't work as expected
- Typo in `Region.getCell` method
- Locks language switching while interactive mode on Windows
- lackey.type can not support chinese HOT 1
- Chinese path error
- Pillow 8.3.0 not working, use 8.2.0 instead
- How To Remove Unwanted Printing ? HOT 2
- opening app doesn't work
- Feature request: mask
- TypeError - grow()
- 0.74 not available via pip HOT 3
- Feature request: waitBest and findBest with multiple patterns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lackey.