av2606 Posted November 7, 2008 Share Posted November 7, 2008 (edited) Sorry for opening a number of threads in the last few days but I am having a few problems.Now this problem is a bit funny. Basically I compiled two programs using AutoIt to block the keyboard and mouse. They are very simple and basic, but it does the jobThe following code is compiled as blockMaK.exe;Block MouseBlockInput ( 1 )sleep ( 2147483647 )The following code is compiled as unblockMaK.exe;Unblock MouseProcessClose ("blockMak.exe")Now basically I have an AutoIt compiled script which is supposed to install FireFox. It does this just fine. However, I want to block the keyboard and mouse whilst it installs. It blocks it ok, but the main problem is AutoIt cannot click/send the fucntions to control the application setup whilst the mouse/keyboard is unblocked. I hope this makes sense. Here's a copy of the batch file just incase.start %SystemDrive%\WindowsFirstRun\MaK\blockMak.exe <- blocks mousestart "XF" /wait %SystemDrive%\WindowsFirstRun\ff.exe <-AutoIt script to install FireFoxstart %SystemDrive%\WindowsFirstRun\MaK\unblockMak.exe <- kill blockMak.exeEdit: I just realised that I can actually add BlockInput to the install AutoIt script for firefox itself, and it installs fine without blocking the clicks in the installer, only else where! Edited November 7, 2008 by av2606 Link to comment Share on other sites More sharing options...
Grake Posted November 7, 2008 Share Posted November 7, 2008 firefox has a built in silent switch ff.exe -ms Link to comment Share on other sites More sharing options...
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