4d3 < 11a11 > var topx=0, topy=0; 16,18d15 < var isc=1; < < var topx=0, topy=0; 23,27d19 < var pwhx=''; < var allowmove=true; < var inarow=0; < < // var windows=[]; // thanks to https://medium.com/@bluepnume/every-known-way-to-get-references-to-windows-in-javascript-223778bede2d 30c22 < var ij=0, ix=0, iy=0; --- > var ij=0; 33,38c25 < if (navigator.userAgent.indexOf("Firefox") != -1) { < pwhx=pwh + ',top=' + eval('' + ('' + topy).split('.')[0]) + ',left=' + eval('' + ('' + topx).split('.')[0]); < } else { < pwhx=pwh + ',screenY=' + eval('' + ('' + topy).split('.')[0]) + ',screenX=' + eval('' + ('' + topx).split('.')[0]); < } < //if (wois) { document.title+='~'; } --- > var pwhx=pwh + ',screenY=' + eval(('' + topy).split('.')[0]) + ',screenX=' + eval(('' + topx).split('.')[0]); 40d26 < //document.title+='`'; 45c31 < movetosx.push('' + topx + '.0'); --- > movetosx.push(topx); 60c46 < movetosx.push('' + topx + '.0'); --- > movetosx.push(topx); 63,68c49 < if (navigator.userAgent.indexOf("Firefox") != -1) { < pwhx=pwh + ',top=' + eval('' + ('' + movetosy[0]).split('.')[0]) + ',left=' + eval('' + ('' + movetosx[0]).split('.')[0]); < } else { < pwhx=pwh + ',screenY=' + eval('' + ('' + movetosy[0]).split('.')[0]) + ',screenX=' + eval('' + ('' + movetosx[0]).split('.')[0]); < } < //document.title='preopen' + pindex; --- > pwhx=pwh + ',screenY=' + eval(('' + movetosy[0]).split('.')[0]) + ',screenX=' + eval(('' + movetosx[0]).split('.')[0]); 70,72c51 < //if (wois) { document.title='postopen' + pindex; } < //pwhx=pwh + ',screenY=' + wois.screenY + ',screenX=' + wois.screenX; < wois.focus(); --- > //wois.focus(); 74,76c53,54 < //setTimeout(domoveto, 2000); < } else if (document.URL.toLowerCase().replace('//localhost','//www.rjmprogramming.com.au').indexOf('rjmprogramming.com.au') == -1 && allowmove) { < //document.title+='|'; --- > setTimeout(domoveto, 2000); > } else if (wois) { 79c57 < //if (document.URL.toLowerCase().replace('//localhost','//www.rjmprogramming.com.au').indexOf('rjmprogramming.com.au') == -1) { --- > if (document.URL.toLowerCase().replace('//localhost','//www.rjmprogramming.com.au').indexOf('rjmprogramming.com.au') == -1) { 81,85c59 < if (navigator.userAgent.indexOf("Firefox") != -1) { < pwhx=pwh + ',top=' + eval('' + ('' + movetosy[eval(pindex % movetosx.length)]).split('.')[0]) + ',left=' + eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < } else { < pwhx=pwh + ',screenY=' + eval('' + ('' + movetosy[eval(pindex % movetosx.length)]).split('.')[0]) + ',screenX=' + eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < } --- > pwhx=pwh + ',screenY=' + eval(('' + movetosy[0]).split('.')[0]) + ',screenX=' + eval(('' + movetosx[0]).split('.')[0]); 87,109c61 < wois.focus(); < pindex++; < //setTimeout(domoveto, 2000); < //} < } else if (allowmove) { < //document.title+='@'; < if (navigator.userAgent.indexOf("Firefox") != -1) { < pwhx=pwh + ',top=' + eval('' + ('' + movetosy[eval(pindex % movetosx.length)]).split('.')[0]) + ',left=' + eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < } else { < pwhx=pwh + ',screenY=' + eval('' + ('' + movetosy[eval(pindex % movetosx.length)]).split('.')[0]) + ',screenX=' + eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < } < //if (wois) { document.title='premove'; } < //alert('wois.moveTo()'); < //alert("eval(('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0])=" + eval(('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0])); < //alert("eval(('' + movetosy[eval(pindex % movetosy.length)]).split('.')[0])=" + eval(('' + movetosy[eval(pindex % movetosy.length)]).split('.')[0])); < ix=eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < //ix*=isc; < iy=eval('' + ('' + movetosy[eval(pindex % movetosy.length)]).split('.')[0]); < //iy*=isc; < wois.moveTo(ix, iy); < //if (wois) { document.title='postmove ' + ix + ',' + iy + ':' + window.devicePixelRatio; } < wois.resizeTo(incxn, incyn); < wois.focus(); --- > //wois.focus(); 111d62 < //setTimeout(domoveto, 2000); 113,119c64 < document.title+='%'; < if (navigator.userAgent.indexOf("Firefox") != -1) { < pwhx=pwh + ',top=' + eval('' + ('' + movetosy[eval(pindex % movetosx.length)]).split('.')[0]) + ',left=' + eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < } else { < pwhx=pwh + ',screenY=' + eval('' + ('' + movetosy[eval(pindex % movetosx.length)]).split('.')[0]) + ',screenX=' + eval('' + ('' + movetosx[eval(pindex % movetosx.length)]).split('.')[0]); < } < //wois.moveTo(eval(('' + topx).split('.')[0]), eval(('' + topy).split('.')[0])); --- > wois.moveTo(eval(('' + topx).split('.')[0]), eval(('' + topy).split('.')[0])); 122c67,68 < //setTimeout(domoveto, 2000); --- > } > setTimeout(domoveto, 2000); 124,159d69 < //} < setTimeout(domoveto, 2800); < } < < function tracker() { < if (wois) { < if (eval('' + pindex) > 0) { < var ws=''; < var hs=''; < try { < ws=('' + wois.screenX); < } catch(wert) { < ws=pwhx.replace(pwh,'').replace('screenX=','left=').split('left=')[1].split(',')[0]; < } < try { < hs=('' + wois.screenY); < } catch(wert) { < hs=pwhx.replace(pwh,'').replace('screenY=','top=').split('top=')[1].split(',')[0]; < } < if (!allowmove && ws == '0') { < inarow=0; < allowmove=true; < wois.focus(); < } < if (pwhx.replace(pwh,'').indexOf('' + ws) == -1 && ('' + movetosx[eval(pindex % movetosx.length)]).indexOf('.0') != -1) { // || pwhx.replace(pwh,'').indexOf('' + wois.screenY) == -1) { < inarow++; < if (inarow > 10 && ('' + ws + '~').indexOf('0~') == -1) { allowmove=false; } < console.log('tracker here ' + pwhx + ' ' + ws + ' ... ' + hs); < } else { < inarow=0; < console.log('Tracker Here ' + pwhx + ' ' + ws + ' ... ' + hs); < } < } else { < console.log('pretracker here '); < } < } 161c71 < --- > 164c74 <
--- > 168d77 < document.write('🙂
In some places you can move this to take the
controls from the automated screen edge
movements. If so to relinquish control
place at left hand edge again.
🙂
');