typhoon Posted 11 hours ago Posted 11 hours ago I have my script GUI running as AlwaysOnTop as I use it between two other apps. When I originally wrote the script under Win7, being AlwaysOnTop automatically kept Windows from alt-tabbing back to it. In other words, I could alt-tab directly between the two other apps while clicking on the script GUI in between, and Win7 seemed to know not to alt-tab back to the AlwaysOnTop GUI. This doesn't appear to be the case in Win11. Whenever I click on the script GUI, it becomes the last-focused app, and Windows will go back to it when pressing alt-tab instead of the other window. How do I stop this and recreate the functionality I had under Win7?
ioa747 Posted 6 hours ago Posted 6 hours ago Find the combination between the ;~ that suits you best. #include <GUIConstantsEx.au3> #include <WindowsStylesConstants.au3> Example() Func Example() ;~ GUICreate(" My GUI input acceptfile", 320, 120, -1, -1, -1, $WS_EX_TOPMOST) GUICreate(" My GUI input acceptfile", 320, 120, -1, -1, -1, BitOR($WS_EX_NOACTIVATE, $WS_EX_TOPMOST)) Local $idInp_File = GUICtrlCreateInput("", 10, 5, 300, 20) GUICtrlCreateInput("", 10, 35, 300, 20) Local $idBtn = GUICtrlCreateButton("Ok", 40, 75, 60, 20) GUISetState(@SW_SHOW) ;~ GUISetState(@SW_SHOWNOACTIVATE) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idBtn ExitLoop EndSwitch WEnd EndFunc ;==>Example I know that I know nothing
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