作者: SKAN 最近更新时间: 20080617
Sets the CPU to be used in Dual/Quad/Multi core processors / Effectively, this function allows you to choose which AHK script uses what processor.
Affinity_Set( CPU=1, PID=0x0 )
关于函数的参数和返回值, 请参阅其源码或 此文档.
Currently there is only one function Affinity_Set().
The documentation is part of authors post of this function.
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?p=202460#202460
不存在
; #Include Affinity.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Process, Exist, calc.exe PID := errorLevel Affinity_Set( 3, PID ) ; presuming Affinity.ahk is available in User Library