Refactor mouse button handling to use string literals instead of ButtonType constants; add debug print for screenshot action in web server
This commit is contained in:
		@@ -40,6 +40,7 @@ class WebServerApp:
 | 
			
		||||
                    img_data = None
 | 
			
		||||
            else:
 | 
			
		||||
                if 'host_screenshot' in data:
 | 
			
		||||
                    print('Taking screenshot...')
 | 
			
		||||
                    # take a screenshot right here
 | 
			
		||||
                    # capture the full screen
 | 
			
		||||
                    screenshot_img = ImageGrab.grab()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user