java利用jna怎么实现对某个特定程序的监控,求高手指点,
1个回答
展开全部
给你一个javascript的程序,文件名保存为1就可以
<html>
<head>
<title>网页开屏 </title>
</head>
<script language="javascript">
var x = 10;
var dx = 5;
var y = window.screen.availHeight;
var newWin = window.open("", "myWin", "menubar=0,toolbar=0");
newWin.document.write("I nbsp L nbspo nbspv nbspe nbsp Y nbspo nbspu!");
newWin.resizeTo(x, y);
var time = window.setInterval("active()", 100);
function active() {
if(newWin.closed){
clearInterval(time);
return;
}
else if(x < screen.availWidth){
x+=dx;
}
else {
clearInterval(time);
}
newWin.resizeTo(x,y);
}
</script>
</html>
<html>
<head>
<title>网页开屏 </title>
</head>
<script language="javascript">
var x = 10;
var dx = 5;
var y = window.screen.availHeight;
var newWin = window.open("", "myWin", "menubar=0,toolbar=0");
newWin.document.write("I nbsp L nbspo nbspv nbspe nbsp Y nbspo nbspu!");
newWin.resizeTo(x, y);
var time = window.setInterval("active()", 100);
function active() {
if(newWin.closed){
clearInterval(time);
return;
}
else if(x < screen.availWidth){
x+=dx;
}
else {
clearInterval(time);
}
newWin.resizeTo(x,y);
}
</script>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询