Docfxit Posted January 5, 2024 Posted January 5, 2024 When I press <crtl> and <`> Back Quote I would like to send <shift> F4 What is happening with this code is it's closing the open window. #include <Misc.au3> While 1 ; If <crtl> and <`> Back Quote If _IsPressed("11") And _IsPressed("C0") Then Send ( "!{F4}") ElseIf _IsPressed("1B") Then ;MsgBox($MB_SYSTEMMODAL, "_IsPressed", "The Esc Key was pressed, therefore we will close the application.") ExitLoop EndIf Sleep(250) WEnd The open window I have is: Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("A - 5250 Display","") If Not WinActive("A - 5250 Display","") Then WinActivate("A - 5250 Display","") WinWaitActive("A - 5250 Display","") Does anyone know why it's closing the window? Thanks,
ioa747 Posted January 5, 2024 Posted January 5, 2024 the !{F4} is alt+F4 and alt+F4, that's what it does, it closes the current window the +{F4} is Shift+F4 I know that I know nothing
Docfxit Posted January 5, 2024 Author Posted January 5, 2024 That's really great!!! Thank you very much.
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