Jump to content
Valnurat

Mouseclick problem

Recommended Posts

Valnurat
Posted (edited)

Can you explain why my mouseclick don't work in my shockwave fullscreen.

Quote

#include <AutoItConstants.au3>

Example()

Func Example()

 Sleep(5000)
   Local $WindowTitle = "Adobe Flash Player"
   Local $WindowClass = "ShockwaveFlashFullScreen"

   WinActivate($WindowTitle)

  Sleep(100)
  MouseClick($MOUSE_CLICK_PRIMARY, 509, 629, 5)
EndFunc   ;==>Example

 

I know my syntax is ok, because it moves to coordinates, but this will only press 1 time, even that I want to press 5 times.

How can that be?

Edited by Valnurat

Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites
TheXman
Posted (edited)

It could be a lot of reasons but one could be that the clicks are happening too fast to register.  Look at the MouseClickDelay option to slow down the delay between mouse clicks to something more human-like.  As it states, the default is 10 milliseconds.  That means that all 5 of your clicks are being sent in about 50 milliseconds.

Edited by TheXman

Whoever said that there's no such thing as a dumb question, probably asked a lot of DUMB questions.  Dumb questions are ones that you can easily find the answer to on your own.

Share this post


Link to post
Share on other sites
Valnurat

Does mouseclickdelay affect the speed of movement?


Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites
TheXman
12 minutes ago, Valnurat said:

Does mouseclickdelay affect the speed of movement?

:wtf:Wow, REALY?!?  You wait 3 days to reply and that's your question?  The function is literally named mouseCLICKdelay and your question is whether it affects the speed of movement?  The function is not named mouseMOVEdelay.  What do you think?  Look it up in the help file! 

While you're at it, take a look at my signature below.  It is referring to questions like yours.


Whoever said that there's no such thing as a dumb question, probably asked a lot of DUMB questions.  Dumb questions are ones that you can easily find the answer to on your own.

Share this post


Link to post
Share on other sites
JLogan3o13

@Valnurat, dog ate your help file? Look it up

 


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Valnurat
17 minutes ago, TheXman said:

:wtf:Wow, REALY?!?  You wait 3 days to reply and that's your question?  The function is literally named mouseCLICKdelay and your question is whether it affects the speed of movement?  The function is not named mouseMOVEdelay.  What do you think?  Look it up in the help file! 

While you're at it, take a look at my signature below.  It is referring to questions like yours.

Come on. Chillax. I have some other stuff to attend also.


Yours sincerely

Kenneth.

Share this post


Link to post
Share on other sites
JLogan3o13

What are you trying to click in a Shockwave window, exactly? Most Shockwave apps would be games nowadays.


√-1 2^3 ∑ π, and it was delicious!

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

  • Similar Content

    • BogdanNicolescu
      By BogdanNicolescu
      While 1 / / / A whole bunch of codes found in help and here: https://www.autoitscript.com/autoit3/docs/ / / / WEnd OR:

       
      HotKeySet("{ESC}", "Terminate") While 1 MouseClick("Right",674,422) MouseClick("Left",673,447) Sleep(2000) / / / A whole bunch of codes found in help and here: https://www.autoitscript.com/autoit3/docs/ / / / MouseClick("Left",675,339) SLeep(3000) WEnd Func Terminate()     Exit 0 EndFunc  
      Sorry if i should't let this here to be found by newbies like me -.-'
    • santoshM
      By santoshM
      Dear friends i am facing a problem , i have created a window in autoit some time it is moving with the mouse curser even if iam not clicking the window 
    • sumanth1980
      By sumanth1980
      Here i am wrote a simple lines to install basic applications but when i clicked on one application/program to install it was working fine but when i cancel the program in the middle to install another program it was not working. I am not an expert in this but i want a solution for this ... Can any one help me on this....
      ORG-1.au3
    • PleaseHelpMEIWillLoveyou
      By PleaseHelpMEIWillLoveyou
      Is there a way to use a custom terminal or something from my pc and run a script on another pc.
      please let me know if its possible
      (not for anything bad just for a project im working on)
    • juniq
      By juniq
      Hey I'm writing on a script which places a link in the context menu so you can choose several mp3 files and rename them using id3 tag udf and year / time stuff variables.
      My problem: I'm renaming the files through "FileMove", But HOW can I get the current directory of the chosen files only? I can't use stringsplit cz there are more than 1 delimiter "\". and I can't trim the string because the stringlength changes every time. How can I get ONLY the directory where the files from $cmdline chosen are? 
×