1、先建立一個“計算”圖標名為“save cursorxy”,在編輯窗口里鍵入以下內容:
originx:=cursorx
originy:=cursory
取現在鼠標所在的坐標位置。
2、再建立一個“繪圖”圖標名為“屏保”,這是屏保的內容,當然也可以是動畫。
3、建立一個“交互”圖標,并在右側建立兩個“計算”圖標,響應方式分別為 time limit 和 keypress 。在time limit 中time limit欄目中鍵入0.1秒;在interruption 欄目中選中continue timing ;在option 中選中restar for each try 。在branch 中選中try again 。下面的計算圖標里鍵入以下內容:
if cursorx<>originx|cursory<>originy|altdown|shiftdown then
quit()
end if
在 keypress 中的key里輸入“?”,在branch 中選中try again 。下面的計算圖標里鍵入以下內容:
quit()
4、現在作完了,試一試吧。
新聞熱點
疑難解答