Hi, I use this code to make the window never active
This is important for me to get current text selection on external documents.
Now, how I can come back to the original window order?
I tried setting various order but no results.
Finally, is it normal that the window adopting that code delays during dragging?
By using Flat Window I solved the issue, but I don't know if it's correct.
Thanks as usual!
Code:
---Sets the window non active hWnd = Application.GetWndHandle(); strCall = hWnd..",-20,".. Math.HexToNumber("0x08000000"); DLL.CallFunction(_SystemFolder .. "\\user32.dll", "SetWindowLongA", strCall, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL); Window.SetOrder(Application.GetWndHandle(), HWND_NOTOPMOST); Window.SetOrder(Application.GetWndHandle(), HWND_TOPMOST);
Now, how I can come back to the original window order?
I tried setting various order but no results.
Finally, is it normal that the window adopting that code delays during dragging?
By using Flat Window I solved the issue, but I don't know if it's correct.
Thanks as usual!
Comment