The invention discloses a Windows
handle adaptive program silent automatic loading method and
system, and relates to the technical field of program loading.The method comprises the steps that a target process is obtained, and window handles of the target process are enumerated to form a candidate
handle set; collecting multi-source rectangular observation of the candidate handles to form historical buffering, and screening, determining and analyzing the handles; the cross-screen mixing degree and the time
jitter degree of the
handle are calculated and analyzed, and the geometric state of the handle is judged to be a resident state, a half-cross state or a
transition state according to a preset threshold value; counting and generating a gating result in the gating time window; when gating is passed, determining a rectangle used in the round according to a geometric state: if the rectangle is in a resident state, adopting a main source mode for selection, and if the rectangle is in a half-span state or a
transition state, adopting a fusion mode; and determining a final binding handle in the candidate handle set based on the current round of use of a rectangle, and updating a
coordinate mapping relation of silent automatic loading. The method can adapt to multi-display, window cross-screen and
jitter scenes, and the accuracy and robustness of automatic loading are improved.