Linkage accessible information

1. Mastery believe there are many custom message, the message is done by passing a small feature will greatly simplify programming and improve efficiency. Win32 is invoked, such as the display of a stock can send a message to accessible information to achieve.

C code

UWM_STOCK the RegisterWindowMessage = UINT (_T ( "Stock")); 
 
:: PostMessage (HWND_BROADCAST, UWM_STOCK, 7580019,0); 
// is to see 580,019 pages, 
:: PostMessage (HWND_BROADCAST, UWM_STOCK, 6031007,0); 
// is see page 031 007

Note stock code: code plus 7 before the Shanghai Stock Exchange, ticker symbol in front of other markets plus 6.

2. If no message interface, keyboard input to the analog linkage, inefficient poor stability.

AutoHotkey Code

; HWND_BROADCAST specified here is 0xFFFF, a plurality of access channels is a broadcast message window; 
; if the specified particular window handle, a message is sent to a particular window. 

active_id: = 0xFFFF 
UWM_STOCK: = DllCall ( "the RegisterWindowMessage", Str, "Stock") 
the PostMessage, UWM_STOCK, 7600050,0,, ahk_id% active_id%

  

 

Guess you like

Origin www.cnblogs.com/freeboygirl/p/10960887.html