arminius Posted March 5, 2008 Share Posted March 5, 2008 CODERun("C:\Program Files\Windows Defender\MSASCui.exe") ControlClick("Windows Defender", "", 1008) ok with this coding I've been able to get the mouse pointer to click on the little down arrow to the right of scan but the little menu that opens doesn't appear to have a control ID, I can't use mouseclick cause it doesn't run when screensaver is running which is when I wanna run the script, so any suggestions please? Link to comment Share on other sites More sharing options...
herewasplato Posted March 5, 2008 Share Posted March 5, 2008 ControlClick("title", "text", controlID, button, clicks, x, y)Try using ControlClick with coords - leave the ControlID blank "" if need be. [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
arminius Posted March 5, 2008 Author Share Posted March 5, 2008 ControlClick("title", "text", controlID, button, clicks, x, y)Try using ControlClick with coords - leave the ControlID blank "" if need be.is this the right coding?CODEControlClick("Windows Defender", "", 598, 382)cause it didn't work Link to comment Share on other sites More sharing options...
herewasplato Posted March 5, 2008 Share Posted March 5, 2008 (edited) You cannot skip parms.Edit: You can leave them blank = "" Just don't skip them.ControlClick("title", "text", controlID, button, clicks, x, y)ControlClick("Windows Defender", "", "", "", 1, 598, 382)...and be sure to get the coords from the tab named Control within the AutoIt Window Info tool. Edited March 5, 2008 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
arminius Posted March 5, 2008 Author Share Posted March 5, 2008 You cannot skip parms.Edit: You can leave them blank = "" Just don't skip them.ControlClick("title", "text", controlID, button, clicks, x, y)ControlClick("Windows Defender", "", "", "", 1, 598, 382)...and be sure to get the coords from the tab named Control within the AutoIt Window Info tool.it says incorrect number of parameters in function call Link to comment Share on other sites More sharing options...
herewasplato Posted March 5, 2008 Share Posted March 5, 2008 (edited) I get no such error using this:ControlClick("Windows Defender", "", "", "", 1, 598, 382)Are you using the full (free) version of SciTE? It will prompt you for each parm.http://www.autoitscript.com/autoit3/scite/downloads.shtmlEdit: You can try...ControlClick("Windows Defender", "", "", "left", 1, 598, 382)...but I did not get an error when I left the button parm as "" Edited March 5, 2008 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
arminius Posted March 5, 2008 Author Share Posted March 5, 2008 I get no such error using this:ControlClick("Windows Defender", "", "", "", 1, 598, 382)Are you using the full (free) version of SciTE? It will prompt you for each parm.http://www.autoitscript.com/autoit3/scite/downloads.shtmlEdit: You can try...ControlClick("Windows Defender", "", "", "left", 1, 598, 382)...but I did not get an error when I left the button parm as ""no I didn't have that installed, I've installed it and am having trouble getting it to export or save files, anyway I tried both those codes and it still comes up with incorrect number of parameters in function call, the file is a .au3, is that right or should I be using something else? Link to comment Share on other sites More sharing options...
herewasplato Posted March 6, 2008 Share Posted March 6, 2008 Install the latest version of AutoIt and try again.That line of code should fine with v3.2.10.0http://www.autoitscript.com/cgi-bin/getfil...it-v3-setup.exe [size="1"][font="Arial"].[u].[/u][/font][/size] 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