Announcement

Collapse
No announcement yet.

Never Active Window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Never Active Window

    Hi, I use this code to make the window never active
    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);
    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!

  • #2
    Ok, it seems no one has solution for this strange need!
    Unfortunately I need it because I get any text selection from everywhere, then send the text in the clipboard to the Text to Speech program.

    Does anybody have some better solution to make window never active?

    Thanks in advance!

    Comment

    Working...
    X