1224 Posted June 10, 2009 Posted June 10, 2009 BlockInput(1) Sleep(60000) BlockInput(0) Func Exitfunc () Exit EndFunc before can work but when I reinstall windows, BlockInput cannot work I can type the word and use the mouse smoothly Is there anything need to be installed or modify? P.S. user32.dll is well, because _IsPressed function works fine
PsaltyDS Posted June 10, 2009 Posted June 10, 2009 anyone knows how to fix it?Fix what? The code you posted only blocks inputs for 60 seconds. What does reinstalling Windows have to do with it? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
1224 Posted June 10, 2009 Author Posted June 10, 2009 during the 60seconds, I can still move the mouse or click the mouse, and also can type the word why? I want to block them
trancexx Posted June 10, 2009 Posted June 10, 2009 Because you are Superman? What system (windows)? ♡♡♡ . eMyvnE
1224 Posted June 10, 2009 Author Posted June 10, 2009 Because you are Superman?What system (windows)?Windows Vista 32 bitsand I have mentioned in 1st postbefore can workbut when I reinstall windows, BlockInput cannot work
infernothebest Posted June 10, 2009 Posted June 10, 2009 not all autoit commands work in windows vista Apple Keybord shortcuts for XP
Inverted Posted June 10, 2009 Posted June 10, 2009 MSDN says "Vista requires elevation for this function to work" Put #RequireAdmin at the top of your script.
KaFu Posted June 10, 2009 Posted June 10, 2009 Windows Vista 32 bitsand I have mentioned in 1st postYou did? Me blind ... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
1224 Posted June 11, 2009 Author Posted June 11, 2009 You did? Me blind ...I said that I have mentionedbefore can workbut when I reinstall windows, BlockInput cannot workthe key point is "before can work"before<---------the window is the same, i.e. Vista 32 bits
1224 Posted June 11, 2009 Author Posted June 11, 2009 I'm interested to know if my suggestion helped.thanksIt really can helpbut do you know how can I change the system, so that I no need to add "#Requireadmin" but also can have the same effect
Inverted Posted June 11, 2009 Posted June 11, 2009 (edited) What do you mean ? You can't do this without having the right permissions. Unless you/the user has UAC disabled. Or XP Edited June 11, 2009 by Inverted
1224 Posted June 11, 2009 Author Posted June 11, 2009 What do you mean ? You can't do this without having the right permissions. Unless you/the user has UAC disabled. Or XP Admin also need to confirm the permissions all the times= =I have disabled the UAC, thanks for help
Inverted Posted June 11, 2009 Posted June 11, 2009 Maybe you can delete that line and enable the option in AutoIt3Wrapper (Resource update : execution level : require administrator) There is an option to make the compiled exe request privileges. I think it would ask only 1 time. But to test this you'll need to compile your script with this option, re-enable UAC and reboot, lol. If you do this, post back results !
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