hi friends...till date i use to execute my script under windows xp version but today when i executed it in windows vista then the 'Blockinput' method didnt worked in short it was not blocking....did anyone encounter this problem??? can anyone help me in getting it work under vista??
thanks always
blockinput not working under windows vista
Started by
Jasdeep
, Mar 30 2010 01:04 PM
12 replies to this topic
#1
-
Posted 30 March 2010 - 01:04 PM
Hi old friend,hi friends...till date i use to execute my script under windows xp version but today when i executed it in windows vista then the 'Blockinput' method didnt worked in short it was not blocking....did anyone encounter this problem??? can anyone help me in getting it work under vista??
thanks always
I have Vista 32 bit, and blockinput works as expected. Would you please post a script that illustrates the problem?
Leef_me
#2
-
Posted 30 March 2010 - 04:43 PM
well just a simple script like this
lcontrol & esc:: BlockInput,on Return lalt & esc:: BlockInput,off Returnwell thanks for a quick response
#3
-
Posted 31 March 2010 - 05:48 AM
I hit the hotkeys "lcontrol & esc"
:roll: then the keyboard and mouse didn't work :roll:
then I hit "lalt & esc" and all was normal again
Just as expected.
Is that the behavior you expect? Is that the behavior you get?
Here is another thread I was involved in that help my understanding.
<!-- m -->http://www.autohotke... ... blockinput<!-- m -->
:?: How about you try my version?
:roll: then the keyboard and mouse didn't work :roll:
then I hit "lalt & esc" and all was normal again
Just as expected.
Is that the behavior you expect? Is that the behavior you get?
Here is another thread I was involved in that help my understanding.
<!-- m -->http://www.autohotke... ... blockinput<!-- m -->
:?: How about you try my version?
f1:: secs=5 msecs:=secs*1000 msgbox when you hit ok, the keyboard and mouse will be blocked for %secs% seconds settimer, unblock, -%msecs% BlockInput,on Return unblock: BlockInput,off msgbox keyboard and mouse restored to normal function Return
#4
-
Posted 31 March 2010 - 06:40 AM
yes i want this behaviour but it doesnt works as its not blocking anythingI hit the hotkeys "lcontrol & esc"
then the keyboard and mouse didn't work
then I hit "lalt & esc" and all was normal again
Just as expected.
Is that the behavior you expect? Is that the behavior you get?
thanks
#5
-
Posted 31 March 2010 - 06:55 AM
hi leef_me i dnt knw hw its working on ur pc bcoz i tried ur code of blockinput on vista its not working man....
#6
-
Posted 12 April 2010 - 06:32 AM
Windows 7 and I have the same problem. BlockInput doesn't work at all. Maybe because of UAC? Jasdeep, try to run Autohotkey as Admin
#7
-
Posted 12 April 2010 - 07:27 AM
thanks michail for the reply but even after running it as a admin it didnt worked
#8
-
Posted 12 April 2010 - 07:45 AM
any clues to make it working under vista and win7??????????????
#9
-
Posted 13 April 2010 - 01:08 PM
I've read from a few different sources that BlockInput requires admin rights on Vista and 7.
It works just fine for me running as admin - on Windows 7 with UAC disabled and Windows Vista SP2 with UAC enabled. As a limited user (tested only on my Vista VM, which has UAC enabled), I am denied access. The following may be used to troubleshoot:
It works just fine for me running as admin - on Windows 7 with UAC disabled and Windows Vista SP2 with UAC enabled. As a limited user (tested only on my Vista VM, which has UAC enabled), I am denied access. The following may be used to troubleshoot:
if DllCall("BlockInput", "int", 1) ; attempt to block DllCall("BlockInput", "int", 0) ; unblock else MsgBox BlockInput failed, error %A_LastError%. ; ERROR_ACCESS_DENIED = 5
I have no explanation for that. Are you sure it was running as admin?even after running it as a admin it didnt worked
MsgBox % A_IsAdmin ; Should display 1.A limited workaround when BlockInput doesn't work is to create numerous hotkeys, as in Andreone's script or to register a keyboard hook (a mouse hook would also be feasible).
#10
-
Posted 16 April 2010 - 12:43 PM
thanks man its working when i run the program as an administrator. Previously also i run with administrator but it was not working and the reason was i was checking it on an VMware image (virtual image of windows 7) but yesterday when i checked it on genuine copy of windows 7 it started working.
[Deleted double post. ~jaco0646]
[Deleted double post. ~jaco0646]
#12
-
Posted 20 April 2010 - 06:15 AM
I had this problem as well with 7, but I cleared it all up when I ran the program in compatility mode with Windows XP SP 3
#13
-
Posted 17 March 2011 - 03:27 PM