0% found this document useful (0 votes)
24 views2 pages

Sa

The document defines functions for simulating mouse events and moving the mouse cursor programmatically. It includes functions for creating mouse events, getting element offsets, and moving the mouse in intervals to simulate dragging.

Uploaded by

Mohammad saleem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views2 pages

Sa

The document defines functions for simulating mouse events and moving the mouse cursor programmatically. It includes functions for creating mouse events, getting element offsets, and moving the mouse in intervals to simulate dragging.

Uploaded by

Mohammad saleem
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

function mouseevent(type, sx, sy, cx, cy) {

var evt;
var e =
{bubbles: true,
cancelable: (type != "mousemove"),
view:window,
detail: 0,
screenX: sx,
screenY: sy,
clientX: cx,
clientY: cy,
ctrlkey: false,
ctrlkey: false,
altkey: false,
shiftkey:false,
metakey: false,
button: 0,
relatedTarget: undefined
};
if (typeof( document.createEvent ) == "function") {
evt = document.createEvent("mouseEvents")
evt = intmouseEvent(type,
e.bubbles, e.cancelable, e.view, e.detail,
e.screenX, e.screenY, e.clientX, e.clientY,
e.ctrlkey, e.altkey, e.shiftkey, e.metakey,
e.button, document.body.parentNode);
} else if (document.createEventButton) {
evt = document.createEventButton();
for (prop in e){
evt[prop] = e[prop];
}
evt.button = {0:1, 1:4, 2:2, }[evt.button] || evt.button;
return evt;
}
var a = document.getElementsByClassName("spin")[0]
b = document.getElementsByClassName("lucky Number");
a.addEventListener("mousemove", function(e) {console.log("clientX:" + e.clientX +",
clientY:" e.clientY +", screenX:" + e.screenX +", screenY:" + e.screenY +",
movementX:" + e.movementX);

function bootRot(x, y){


a.dispatchEvent(mouseEvent("mousemove", x, y,x, xy,));
}

function bootstart(){
if ((b.innerHTML. != "Dragging") && parseInt b.innerHHTML) <2000){
var xIncial = 0, yIncial = 0;

for(var ofparent = a; ofparent; ofparent = ofparent.offsetparent){


}
a.dispatchEvent(mouseEvent("mousedown", Xs[0], Ys[0], Xs[0], Ys[0] ));

bootRot(Xs[0], Ys[0];

setTimeout(function(){
bootRot(Xs[1], Ys[1]);
setTimeout(function(){
bootRot(Xs[2], Ys[2]);
setTimeout(function(){
bootRot(Xs[3], Ys[3]);
a.dispatchEvent(mouseEvent("mouseup", Xs[3], Ys[3], Xs[3], Ys[3] ));
}
}

var bootIntervalid = setInterval(bootStart, 1800);

function bootstop(){ // bootstop(): command stop the execute of the script.


clearInterval bootIntervalid;

You might also like