Search the Community
Showing results for tags 'block'.
Found 7 results
BlockIt - Block files utility
MrCreatoR posted a topic in AutoIt Example Scripts
Preventing App (IE) from opening
JBeardNC posted a topic in AutoIt General Help and SupportWhen I'm updating Flash or Java for example, I am closing IE for the user beforehand and IE must remain closed as to not interfere with the install. I'd like to see if there is a (better) way to prevent them from opening IE during the middle of the update. Currently, I launch a separate process/script that simply does a While loop and every 50 ms, it checks for IE using WinExists and if it finds it, kills the process. But what ends up happening is if it closes the process at the right moment, the user will get a message that looks like a permissions error or an error like the IE shortcut doesn't exist and prompts the user to remove the shortcut and its causing some confusion. It may be because I have the 50 ms interval too small but I wanted to reach out and see if there is a better way to block an application from opening temporarily while something finishes, in this case, block IE while Java or Flash install completes. I tried using If ProcessExists and got the same results. Here's the script I'm using. Any better ideas? I just need to block IE from opening for about 30 seconds. If it has a notification (like the toast pop-up I added), that's even better but its not required. #include <toast.au3> $sMsg = "Adobe Flash is being updated on your computer." & @CRLF & @CRLF & "Internet Explorer will open once the update is complete." sleep (2000) While ProcessExists ("AdobeFlashUpdate.exe") sleep(50) If WinExists ("Internet Explorer") Then WinClose ("Internet Explorer") OpenToast() EndIf WEnd Func OpenToast() _Toast_Set(5, 0xFFFF33, 0x000000, 0xCC0000, 0xFFFFFF, 10) $aRet = _Toast_Show(0, "Please wait...", $sMsg, 10, False) ;_Toast_Hide() EndFunc Run ("C:\Program Files (x86)\Internet Explorer\iexplore.exe") Exit
Dear all, I'm creating this program where the goal is to automate some mouse -click and dragging on an external application. Now the problem is, this external application is blocking every automate mouse moves, clicks or anything related to using the mouse. So I figured autoit uses postmessage and user32.dll to move the mouse and that this application blocks these attempts. Now I'm wondering if there's a different way to move the mouse so it'll go undetected by this external app. Any other suggestions are welcome to. Thnx in advance
PhoenixXL posted a topic in AutoIt Example ScriptsRESTRICT EDIT UDF Restrict the text that can be entered in an editbox through a String Regular Expression. The UDF works be subclassing the control. >Here is a similar UDF based on Windows Message. Functions The UDF is pretty simple and could be modified with ease. User can set their SRE pattern to block the text entered in the editbox Tooltips can be used in case of an error. The title of the Tooltip is Error_2 where the number(2) signifies the pattern that caused the error. The script is made to use function pointer variables rather than direct patterns, to make it more flexible and broader. Supports +ve and -ve SRE pattern matches. See example for better understanding. Note : The Pattern should be made such that every phase of typing is met, Example, if the user wants The second letter should be always a digit. Then he should make sure that the pattern is also satisfied when user enters the first character, as through the process of typing. Index ; #INDEX# ======================================================================================================================= ; Title .........: RestrictEdit ; Version........: 1.0 ; AutoIt Version : 188.8.131.52++ ; Language ......: English ; Author(s)......: Phoenix XL ; Librarie(s)....: WinAPI, Array and GUIEdit ; Description ...: Functions for restricting the text typed in an Edit control through SRE. ; The edit control is subclassed and the original processing is blocked when pattern isn't satisfied. ; =============================================================================================================================== ; #CURRENT# ===================================================================================================================== ;_Restrict_Edit ; =============================================================================================================================== ; #INTERNAL_USE_ONLY# =========================================================================================================== ; HideToolTip_Edit ;_NewWnd_Proc_ ;_SubClass_ ; =============================================================================================================================== ChangeLog v1.0 - First Release v2.0 - Replaced the SRE pattern parameter(2nd parameter) with function pointer parameter[A script Breaking change]. Added support for positive and negative pattern matches Download v2.0 RestrictEdit(UDF).7z Previous downloads : 161
Block user Input on Window
Reinhardt1julian posted a topic in AutoIt General Help and SupportHi, I want to know if there is a way, that the user can't do anything on my window, but hotkeys. So, i want them to not be able to scroll scrolling bars or slide sliders, but they should be able to press a hotkey, and the rest of the computer should work normally. That's why I don't want to use BlockInput
Administrator System - Block Applications
LiquidNitrogen posted a topic in AutoIt Example ScriptsThis is Something i Made to block Applications from Being Used without Using the Windows UAC and Stuff. Its Quicker and it Works. Let me know what You Think. You Need the config.ini file in the Folder with the Script. Admin System.rar
lock a dll to block dll calls
FireFox posted a topic in AutoIt General Help and SupportHi, Is it possible to lock a Windows dll (like user32) to block any function call from other applications? Thanks for anyhelp. Br, FireFox.