学习笔记2
<script>
var Sh = new ActiveXObject("WScript.Shell");
sh.Run "cmd net send 某一个IP地址或用*好表示局域网所有IP地址 “发送信息内容”",1,true '
</script>
var pnsys=new ActiveXObject("WScript.shell"); pn=pnsys.Environment("PROCESS"); alert(pn("WINDIR")); } //启动计算器 function runcalc() { var calc=new ActiveXObject("WScript.shell"); calc.Run("calc"); }
var Sh = new ActiveXObject("WScript.Shell");
sh.Run "cmd net send 某一个IP地址或用*好表示局域网所有IP地址 “发送信息内容”",1,true '
</script>
var pnsys=new ActiveXObject("WScript.shell"); pn=pnsys.Environment("PROCESS"); alert(pn("WINDIR")); } //启动计算器 function runcalc() { var calc=new ActiveXObject("WScript.shell"); calc.Run("calc"); }
int[] pins = { 9, 3, 7, 2 };
int[] copy = (int[])pins.Clone();
//----
delegate void stopMachineryDelegate();
public void Add(stopMachineryDelegate stopMethod)
{
this.stopMachinery += stopMethod;
}
public void Remove(stopMachineryDelegate stopMethod)
{
this.stopMachinery -= stopMethod;
}
//--
class TemperatureMonitor
{
public delegate void StopMachineryDelegate();
public event StopMachineryDelegate MachineOverheating;
}
//--
class TemperatureMonitor
{
public delegate void StopMachinerDelegate;
public event StopMachineryDelegate MachineOverheating;
private void Notify()
{
if (this.MachineOverheating != null)
{
this.MachineOverheating();
}
}
}
//---
private System.Timers.Timer ticking = new System.Timers.Timer();
public Ticker()
{
this.ticking.Elapsed += new ElapsedEventHandler(this.OnTimedEvent);
this.ticking.Interval = 1000; //
this.Enabled = true;
}
private void OnTimedEvent(object source, ElapsedEventArgs args)
{
int hh = args.SignalTime.Hour;
int mm = args.SignalTime.Minutes;
int ss = args.SignalTime.Seconds;
Notify(hh, mm, ss);
}
//---
using System.Collections.Generic;
Queue<Circle> myQueue = new Queue<Circle>();
Circle myCircle = new Circle();
myQueue.Enqueue(myCircle);
myCircle = myQueue.Dequeue();
int[] copy = (int[])pins.Clone();
//----
delegate void stopMachineryDelegate();
public void Add(stopMachineryDelegate stopMethod)
{
this.stopMachinery += stopMethod;
}
public void Remove(stopMachineryDelegate stopMethod)
{
this.stopMachinery -= stopMethod;
}
//--
class TemperatureMonitor
{
public delegate void StopMachineryDelegate();
public event StopMachineryDelegate MachineOverheating;
}
//--
class TemperatureMonitor
{
public delegate void StopMachinerDelegate;
public event StopMachineryDelegate MachineOverheating;
private void Notify()
{
if (this.MachineOverheating != null)
{
this.MachineOverheating();
}
}
}
//---
private System.Timers.Timer ticking = new System.Timers.Timer();
public Ticker()
{
this.ticking.Elapsed += new ElapsedEventHandler(this.OnTimedEvent);
this.ticking.Interval = 1000; //
this.Enabled = true;
}
private void OnTimedEvent(object source, ElapsedEventArgs args)
{
int hh = args.SignalTime.Hour;
int mm = args.SignalTime.Minutes;
int ss = args.SignalTime.Seconds;
Notify(hh, mm, ss);
}
//---
using System.Collections.Generic;
Queue<Circle> myQueue = new Queue<Circle>();
Circle myCircle = new Circle();
myQueue.Enqueue(myCircle);
myCircle = myQueue.Dequeue();