Sign in to follow this  
Followers 0
zeno

Mouse click function not working..... properly....

5 posts in this topic

Hi.....Pple...

I'm new to this area....... and at the moment I working on some software deployment where I need to package some software......

I'm using autoit to simulate some mouse clicks and send() to send some keyboard strokes.....

But I'm sortof stuck here..... I can manage to get part of it to work but not all....

The programing I'm installing prompts with the usual licence screen where I use autoit's MouseClick function to first tick the check box and then send a keystroke (n for Next) send(n) to continue with the installation. This works fine.

The part I'm getting bogged down on is at the next screen I also need to use a send(n) to have to proceed... but this key gets sent the software further pops up with a smaller window that has an "ok" or "no" button. This is where the script stops and doesn't do anything.

I can't figure out why this doesn't work ..... below is the actual script...

;Acknowledge licence checkbox and click NEXT (this works fine)

While WinWait("Intel® PROSet/Wireless Installer", "INTEL SOFTWARE LICENSE AGREEMENT") = 1

WinActivate("Intel® PROSet/Wireless Installer", "INTEL SOFTWARE LICENSE AGREEMENT")

MouseClick ("left", 357, 517)

Send("{n}")

ExitLoop

WEnd

;Setup type screen Typical/Custom (this also works fine)

While WinWait("Intel® PROSet/Wireless Installer", "Please choose a setup type:") = 1

WinActivate("Intel® PROSet/Wireless Installer", "Please choose a setup type:")

Send("{n}")

ExitLoop

WEnd

;Install default componenets prompt box - this doesn't work....

While WinWait("Intel® Pro Installer") = 1

WinActivate("Intel® Pro Installer")

Send("{SPACE}")

ExitLoop

WEnd

For the second While Winwait("Intel® PROSet/Wireless Installer", "Please choose a setup type:") when the Send("{n}") is excuted it pops up a second window... hence two windows are active..... I can get the focus to the newly activated window but for some reason the send() or even if I use MouseClick() it doesn't work.

Can anyone provide any reason why this doesn't work..... I tried embedding the third While Winwait(..) inside the second While Winwait as I assumed it was called from inside the second pop-up window but that didn't work either......

I even checked the coding and the window titles as well but still to no avail..... if I manually click "OK" the script will continue to execute but then later on it also has a window pop-up which calls another second window to opo-up and it stops again....

So I assume it has something to do with the logic..............

Have any of you experts out there come across this before or have any suggestions.........

PLEASE HELP.......... MUCH APPRECIATED.......

Zeno

Share this post


Link to post
Share on other sites



Thanks for the reply........

Actually I already tried send("{Enter}") and send("{SPACE}") and neither of these worked................

Share this post


Link to post
Share on other sites

Check out ControlClick() or even ControlSend()


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Thanks for the suggestions I'll give it a try...............

But any ideas why the standard WinActivate and and MouseSend doesn't work..........

Does it have anything to do with the logic of the code.........?

Or the sequence the windows POP up...........

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