Automatic ALT/TAB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • R4CK
    Forum Member
    • Dec 2008
    • 5

    Automatic ALT/TAB

    Hi all!

    I've got a problem with this alt tabber project.
    What i'd like to do with:
    1. 2 or more window "slideshow" in full screen
    2. timer function between 10 - 60 sec

    The program is "not working perfectly" because, my project needs to be on top, because it is not changes the windows if i minimize it.

    So please if someone have a little time to check, please do it!
    It would be great if someone can tell me what is the solution for that problem.

    Thx!
    Attached Files
  • Imagine Programming
    Indigo Rose Customer
    • Apr 2007
    • 4252

    #2
    This function will set a window on top:

    Code:
    function Window.SetAlwaysOnTop(hWnd, bOnTop)
    	if(bOnTop==true)then
    		local parms = hWnd .. ",-1,0,0,0,0,3";
    		DLL.CallFunction(_SystemFolder .. "\\User32.dll", "SetWindowPos", parms, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
    		return true;
    	elseif(bOnTop==false)then
    		local parms = hWnd .. ",-2,0,0,0,0,3";
    		DLL.CallFunction(_SystemFolder .. "\\User32.dll", "SetWindowPos", parms, DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);
    		return true;
    	else
    		return -1
    	end
    end
    Usage:
    Code:
    Window.SetAlwaysOnTop(Application.GetWndHandle(), true)
    --Sets the window on top, false to restore this.
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler

    Comment

    • R4CK
      Forum Member
      • Dec 2008
      • 5

      #3
      Thx for the fast reply!

      It works well with your solution now!

      Comment

      Working...
      X