Solved

BlockInput not working on Windows 7

Posted on 2013-02-02
6
1,699 Views
Last Modified: 2013-03-03
Hi Experts,

Private Declare Function BlockInput Lib "user32" Alias "BlockInput" (ByVal fBlock As Integer) As Integer

Private Sub DisableInput()
          BlockInput(1)
End Sub


This code not working in Windows 7 64 bit. I am working in Admin login, still not working

Regards,
Soumen
0
Comment
Question by:Soumen-Roy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 7

Expert Comment

by:tipsybroom
ID: 38846953
does it crash?

what is the returnvalue?

try this with windows 7 x64:
http://www.donationcoder.com/Software/Skrommel/index.html#BlockInput
0
 
LVL 12

Assisted Solution

by:Mohamed Abowarda
Mohamed Abowarda earned 250 total points
ID: 38849366
In Windows 7 and Vista, you need to provide administrator privileges to use this function.

Try running the program as administrator and it should work.
0
 

Author Comment

by:Soumen-Roy
ID: 38850575
It is not crashing.
Return value is False.
I am working in Administrator login as I said.

Please help
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 38854663
Right click the exe and select Run As Admin
0
 

Author Comment

by:Soumen-Roy
ID: 38866827
Right Click-> Run as admin showing no difference. No password is asked, or nothing extra happened. Same result.
0
 

Author Closing Comment

by:Soumen-Roy
ID: 38946906
thanx
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question