@Metaferssance I was referring to the images mate, the text in your images. Thanks.
Click On element
-
@to-nice, execute code:
_Idle.moveAndClickOn([[SELECTOR]], {moveMode: "top"})![[SELECTOR]]- Selector of the element to click on as a string. To save a selector into a variable you can use this module.
All possible options:
- holdCtrl (boolean) - Hold ctrl key. Open link in a new tab. Possible values:
trueorfalse. - clickType (string) - Mouse click type. Possible values:
"left","right"or"double". - moveMode (string or array) - Moving mode, determines which part of the element will be clicked on. Possible values:
"center","top","bottom","left","right","random"or"nearest". You can specify an array with several possible values, one will be chosen at random. - additionalEmulation (boolean) - Enable additional emulation. Possible values:
trueorfalse. - moveSettings (object) - Move settings.
- speed (number) - Move speed.
- gravity (number) - Move gravity.
- deviation (number) - Move deviation.
_Idle.moveAndClickOn([[SELECTOR]], {holdCtrl: false, clickType: "left", moveMode: "top", additionalEmulation: false, moveSettings: {speed: 100, gravity: 6, deviation: 2.5}})! - holdCtrl (boolean) - Hold ctrl key. Open link in a new tab. Possible values:
-
@GhostZ It doesn't work well, my selector [[SELECTOR]] *[contains(@id, "t3_")]/a[@class="absolute inset-0"]
setting move and click with _Idle.moveAndClickOn([[SELECTOR]], {holdCtrl: false, clickType: "left", moveMode: "center", "top", additionalEmulation: false, moveSettings: {speed: 100, gravity: 6, deviation: 2.5}})!
but click in center !! In the images
-
@to-nice said in Click On element:
moveMode: "center",
You have specified a click in the center, also this function is designed to work accurately with elements of any size, to prevent misclicks, sufficiently large paddings is applied on all sides. Clicks are performed at a random position (Determined by the specified mode) closest to the cursor.
-
@spam Thanks for the help, I use save selector on CSS: >CSS> a[href*="/r/"].absolute.inset-0 and execute code: _Idle.moveAndClickOn([[SELECTOR]], {holdCtrl: false, clickType: "left", moveMode: "top", additionalEmulation: false, moveSettings: {speed: 100, gravity: 6, deviation: 2.5}})!
-
@spam You're awesome, it seems to be working perfectly. Can you help me with another problem?
Before clicking "execute code," I should be able to verify that the URL is not external to Reddit, but [[SELECTOR]] only returns the code //a[contains(@id,"post-title")]
in the log. How can I do this?
