Forum Discussion

James804's avatar
James804
Copper Contributor
Apr 16, 2019

PowerShell Automation Involving MouseClicks

I'm trying to create an automation for Power BI so that it is able to refresh and publish a dataset to its online work space. 

I'm doing this through creating a PowerShell script that will open Power BI Desk, then click refresh, then click publish. 

I'm having trouble getting the mouse clicks down. 

I'd like a suggestion for a line I can add to my script so that I can place a left mouse click at location x by y. 

If I can figure out how to place one mouse click at coordinates I'll be able to work out the rest. 

 

Thank you for your help!

Resources