Sign in to follow this  
Followers 0
arminius

where controlclick and mouseclick fail

8 posts in this topic

CODE
Run("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?

post-33039-1204724148_thumb.jpg

Share this post


Link to post
Share on other sites



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]

Share this post


Link to post
Share on other sites

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?

CODE
ControlClick("Windows Defender", "", 598, 382)

cause it didn't work

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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.shtml

Edit: 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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

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.shtml

Edit: 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?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0