Reputation: 29
I cannot find this information anywhere, including its documentation - is this non existent?
doesn't matter anymore, I have found a workaround that works for now.
Upvotes: 2
Views: 7200
Reputation: 94
Here's my attempt at a solution.
According to project description of PyDirectInput, this library is suppose to replicate the functionality of PyAutoGUI mouse and keyboard inputs.
In addition, this library works in conjunction with PyAutoGUI.
This would lead me to believe that using the click() documentation of PyAutoGUI and replacing it with pydirectinput would result in the following solution:
import pyautogui
import pydirectinput
pydirectinput.click(button='right')
However not all optional parameters and features may be available for a particular function.
On the bright side, click() is listed among the features implemented.
There may be a chance that this parameter may not be implemented. If it's not implemented, the author Ben Johnson is open to new feature implementation. Perhaps you can work with the author to implement this parameter.
I would give this code a try.
If the code above worked and other tasks must be accomplished in PyDirectInput, I would look at the list of features implemented (towards bottom of the page) with the documentation of PyAutoGUI. Then I would apply the same methodology used for the provided code solution to code the other tasks.
I hope this helped.
Upvotes: 4