Module my_autopylot.screen_scraping39
Functions
def scrape_save_contents_to_notepad(folderPathToSaveTheNotepad: str = '', switch_to_window: str = '', X: int = 0, Y: int = 0)
-
Description
Copy pastes all the available text on the screen to notepad and saves it.
Args
folderPathToSaveTheNotepad
- Folder path to save the notepad file
switch_to_window
- Window name to switch to
X
- X coordinate of the screen to click and get focus
Y
- Y coordinate of the screen to click and get focus
Returns
- [status, data]
status
- True if successful, False if not
data
- Text copied from the screen by scraping
def screen_clear_search(delay=0.2)
-
Description
Clears previously found text (crtl+f highlight)
Args
delay
- Delay in seconds. Default is 0.2
Returns
- [status]
status
- True if successful, False if not
def screen_scrape_extract_table(switch_to_window: str, after_this_word: str, before_this_word: str, include_after_this_word=False, include_before_this_word=False)
-
Description
Extracts the table from the screen and returns the data in a list.
Args
switch_to_window
:str
, optional- [description]. Defaults to "".
after_this_word
:str
, optional- [description]. Defaults to "".
before_this_word
:str
, optional- [description]. Defaults to "".
include_after_this_word
:bool
, optional- [description]. Defaults to False.
include_before_this_word
:bool
, optional- [description]. Defaults to False.
Returns
[status, data] status (bool): True if the function executed successfully. data (list): List of the data in the table.