Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #property strict
- #include <WinUser32.mqh>
- void OnStart()
- {
- int hwnd = WindowHandle(_Symbol, _Period);
- string text = "0123456789";
- GetWindowTextW(hwnd, text, StringLen(text));
- PrintFormat("hwnd=0x%x, text=%s", hwnd, text);
- GetWindowTextW(GetParent(hwnd), text, StringLen(text));
- PrintFormat("prentHwnd=0x%x, text=%s", GetParent(hwnd), text);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement