trunc.ate Posted January 16, 2004 Posted January 16, 2004 I am using WinXP and as to the Function Reference BlockInput should work correctly. But I noticed that the use of BlockInput makes my scripts behave differently. Example: Just some lines to activate Internet Explorer and open the Options dialog AutoItSetOption ( "WinTitleMatchMode", 2 ) WinActivate ( "- Microsoft Internet Explorer" ) WinWaitActive("- Microsoft Internet Explorer") Send ( "!x" ) Send ( "o" ) Exit This works as long as I am not using BlockInput. When I preceed that with BlockInput (1) it somehow fails at the ALT-x step What's happening here?
Valik Posted January 16, 2004 Posted January 16, 2004 BlockInput and the Alt key do not go well together. Jon said it was a bug in the OS, I believe.
trunc.ate Posted January 27, 2004 Author Posted January 27, 2004 BlockInput and the Alt key do not go well together. Jon said it was a bug in the OS, I believe. Darn, this makes BlockInput nearly useless for me, since my scripts are full of ALT key usages. I was just glad I finally made it to XP since 98 didn't support BlockInput at all and now there's a drawback again.Is there any workaround? I hesitate to embrace each Send command that uses the Alt key with a BlockInput (0) and BlockInput (1)...on the other hand...Any ideas?
CyberSlug Posted January 27, 2004 Posted January 27, 2004 You can wrap the command in a user-defined function. _Send("!x") _Send("o") Exit Func _Send($keys) BlockInput(0) Send($keys) BlockInput(1) EndFunc Or something like that. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Administrators Jon Posted January 27, 2004 Administrators Posted January 27, 2004 Darn, this makes BlockInput nearly useless for me, since my scripts are full of ALT key usages. I was just glad I finally made it to XP since 98 didn't support BlockInput at all and now there's a drawback again.It iused to work perfectly on XP but a recent hotfix broke it Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
trunc.ate Posted January 27, 2004 Author Posted January 27, 2004 A user defined function (included) is a good idea. It doesn't seem do slow things down so I can live with that ...until the next XP-hotfix*lol* Thanks
Valik Posted January 27, 2004 Posted January 27, 2004 A user defined function (included) is a good idea. It doesn't seem do slow things down so I can live with that ...until the next XP-hotfix*lol* Thanks It could be something Microsoft meant to do as it's not fixed in SP-2 Beta 1. I've not seen any information on this other than what Jon has said, though, so if anybody has anything else, let me know.
GEOSoft Posted January 27, 2004 Posted January 27, 2004 It iused to work perfectly on XP but a recent hotfix broke it Do you know which hotfix, Jon? There was one that was just removed from the server because of some problems and most MS patches now allow a rollback. If you have a number for the patch I'll see what I can find out for you. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
Administrators Jon Posted January 27, 2004 Administrators Posted January 27, 2004 No idea. By the time someone had reported the problem my system was already updated. And I've only installed the "critical" patches so it wouldn't be the sort of thing you would want to uninstall anyway Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
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