Jump to content

Recommended Posts

Posted

Good day,

I, and others it would appear, are having issues with BlockInput($BI_DISABLE) and logging-in|signing-in!

Here is my script:

; -----------------------------------------------
; 3/17/2026 8:49:23 AM
; -----------------------------------------------
#RequireAdmin
; -----------------------------------------------
#include "ExtMsgBox.au3"
; -----------------------------------------------
Opt("MustDeclareVars", 1)
; -----------------------------------------------
Global $iEMBWidth = 540
Global $iMsgDelay = 2
; -----------------------------------------------
On_SignInNotice()
; -----------------------------------------------
Func On_SignInNotice()
    Local $sMsg = "Continuing with Procedure 2_GR5..." & @CRLF & _
            "[All keyboard and mouse activity will be disabled!]"
    ; -----------------------------------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    ; ---------------------
    BlockInput($BI_DISABLE)
    ; ---------------------
    _ExtMsgBox(48, " ", " WARNING!", $sMsg, $iMsgDelay)
EndFunc   ;==>On_SignInNotice
; -----------------------------------------------

I HAVE tried many of the provided solution...ALL without success!

Any ideas?

Posted

Hhhhmmmm....

This appears to work?!?

; -----------------------------------------------
; 3/17/2026 8:49:23 AM
; -----------------------------------------------
#RequireAdmin
; -----------------------------------------------
#include "ExtMsgBox.au3"
; -----------------------------------------------
Opt("MustDeclareVars", 1)
; -----------------------------------------------
Global $iEMBWidth = 540
Global $iMsgDelay = 2
; -----------------------------------------------
On_SignInNotice()
; -----------------------------------------------
Func On_SignInNotice()
    Local $sMsg = "Continuing with Procedure 2_GR5..." & @CRLF & _
            "[All keyboard and mouse activity will be disabled!]"
    ; -----------------------------------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    ; ---------------------
;~  BlockInput($BI_DISABLE)
    ; ---------------------
    _ExtMsgBox(48, " ", " WARNING!", $sMsg, $iMsgDelay)
    Block_Me()
EndFunc   ;==>On_SignInNotice
; -----------------------------------------------
Func Block_Me()
    Local $sMsg = "Continuing with Procedure 2_GR5..." & @CRLF & _
            "[All keyboard and mouse activity will be enabled!]"

    BlockInput($BI_DISABLE)
    Sleep(4000)
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    BlockInput($BI_ENABLE)
        _ExtMsgBox(48, " ", " WARNING!", $sMsg, $iMsgDelay)
EndFunc   ;==>Block_Me
; -----------------------------------------------

 

  • Solution
Posted (edited)

..this seems to have resolved the issue:

; -----------------------------------------------
; 3/17/2026 8:49:23 AM
; -----------------------------------------------
#RequireAdmin
; -----------------------------------------------
#include "ExtMsgBox.au3"
; -----------------------------------------------
Opt("MustDeclareVars", 1)
; -----------------------------------------------
Global $iEMBWidth = 540
Global $iMsgDelay = 2
; -----------------------------------------------
On_SignInNotice()
; -----------------------------------------------
Func On_SignInNotice()
    Local $sMsg = "Continuing with Procedure 2_GR5..." & @CRLF & _
            "[All keyboard and mouse activity will be disabled!]"
    ; -----------------------------------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    _ExtMsgBox(48, " ", " WARNING!", $sMsg, $iMsgDelay)
    ; ---------------------
    MouseMove(950,  540, 0)        ;<====|
    BlockInput($BI_DISABLE)        ;<====| Update to this section!!!
    Sleep(1000)                    ;<====| For testing only!
EndFunc   ;==>On_SignInNotice
; -----------------------------------------------

 

Edited by mr-es335

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...