Open baccatabob opened 2 years ago
Hello @baccatabob Bob, copied this to my pbixrefresher.py running the code I get the following error: "RuntimeError: There is no active desktop required for moving mouse cursor!". any advice? The VM is in Azure, w an active connection.
Thanks for your tool. It appears to have been broken by recent GUI changes in Power BI Desktop. We got it working, but I can't create a pull request for the new version of pbixrefresher.py. The new version is below.
import time import os import sys import argparse import psutil from pywinauto.application import Application from pywinauto import timings
def type_keys(string, element): """Type a string char by char to Element window""" for char in string: element.type_keys(char)
def main():
Parse arguments from cmd
if name == 'main': try: main() except Exception as e: print(e) sys.exit(1)