slightly_abnormal Posted March 2, 2006 Share Posted March 2, 2006 (edited) Hello there.. I've tried various mixtures of codes to get my program to always be on top of other windows, but it's not working out.. e.g. heres an example.. if processexist ("swatblatter.exe") or ("autoit3.exe") then opt ("WinTitleMatchMode", 2) WinSetState ("swatblatter", "", @SW_SHOW) winactive("swatblatter") winactivate("swatblatter") endif opt ("WinTitleMatchMode", 2) WinSetState ("swatblatter", "", @SW_SHOW) winactive("swatblatter") winactivate("swatblatter") thanks for such a wonderful program! appreciate the help! Edited March 2, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
GaryFrost Posted March 2, 2006 Share Posted March 2, 2006 might try http://www.autoitscript.com/autoit3/docs/f...WinSetOnTop.htm SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 2, 2006 Author Share Posted March 2, 2006 (edited) might try http://www.autoitscript.com/autoit3/docs/f...WinSetOnTop.htmWinSetOnTop ( "swatblatter", "", 1 ) window still doesn't stay on top Edited March 2, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
GaryFrost Posted March 2, 2006 Share Posted March 2, 2006 WinSetOnTop ( "swatblatter", "", 1 ) window still doesn't stay on top Is this your own script, or external application? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 2, 2006 Author Share Posted March 2, 2006 (edited) Is this your own script, or external application?my own script. i'm using 3.1.1 Edited March 2, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
GaryFrost Posted March 2, 2006 Share Posted March 2, 2006 You using guicreate? If so have you tried $WS_EX_TOPMOST as the extended style? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 2, 2006 Author Share Posted March 2, 2006 (edited) You using guicreate?If so have you tried $WS_EX_TOPMOST as the extended style?how?$Form2 = GUICreate("window", 500, 500, 302, 218, , $WS_EX_TOPMOST)I got errors.. Edited March 2, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
GaryFrost Posted March 2, 2006 Share Posted March 2, 2006 how? $Form2 = GUICreate("window", 500, 500, 302, 218, , $WS_EX_TOPMOST) I got errors.. $Form2 = GUICreate("window", 500, 500, 302, 218, -1, $WS_EX_TOPMOST) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 2, 2006 Author Share Posted March 2, 2006 (edited) how?$Form2 = GUICreate("window", 500, 500, 302, 218, , $WS_EX_TOPMOST)I got errors.. oh I got it.. $Form2 = GUICreate("Windowizer", 390, 300, 302, 218, BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS), $WS_EX_TOPMOST)Your way is better though..gracias very much, grafost.. Edited March 2, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
slightly_abnormal Posted March 2, 2006 Author Share Posted March 2, 2006 One more thing.. How can I make a toggle so that I can enable/disable topmost? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now