0

私はバッチ ファイル プログラミングが好きですが、静かに実行されます。コードを公開したくないので、HTA ウィンドウを作成して実行を表示することにしました。

表示されていてもフチなしにしたいのですが、動かせないので、移動できるようにするか、マウスで移動する必要があります。たとえば、ウィンドウに近づくと、カーソルから移動して表示されます。できます」、いくつかのボタン、画像の例を見ましたが、ウィンドウでは、作成できません

<HTML><HEAD><HTA:application border="none" showInTaskbar="no" innerBorder="no" scroll="no" singleInstance="yes" selection="no" version="1.0"/>
<style type="text/css">
    body 
    { 
        color: #FFFFFF; background: #1E1E1E; font-family: "Lucida Console"; font-size: 11px; 
    }
</style>
<script type="text/javascript">
document.onmouseenter=MoveWindow;
document.onmouseover=MovenoWindow;
document.onload=resize();
document.onmouseenter=MoveWindow;
document.onmouseover=MovenoWindow;
    function resize()
    {
        window.moveTo(screen.width/2-116,screen.height/2-screen.height/2)
        window.resizeTo(220,20)
    }
    function MoveWindow (event) 
    {
        if (!event) 
        {
            event = window.event;
        }
        cursor = { x : 0, y : 0 };
        cursor.x = event.clientX;
        cursor.y = event.clientY;
        window.moveBy (cursor.x-1,cursor.y-1);
        }
    function MovenoWindow (event) 
    {
        if (!event) 
        {
            event = window.event;
        }
        cursor = { x : 0, y : 0 };
        cursor.x = event.clientX;
        cursor.y = event.clientY;
        window.moveBy (cursor.x-10,cursor.y-10);
    }
</script></head>
<body topmargin="5" leftmargin="5" marginheight="0" marginwidth="0">
<center>CATCH ME IF YOU CAN</center></BODY></HTML>
4

0 に答える 0