Mouse click operations are not working

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
phani.2905
Posts: 41
Joined: Thu Nov 07, 2013 12:19 pm

Mouse click operations are not working

Post by phani.2905 » Thu Nov 07, 2013 12:34 pm

Hi all,

Currently we are using Record and Playback technique for preparing scripts. The issue is Mouse click operations are not working for us and every time when i record, a Mouse "Click" is shown as Mouse "Down" . Recently we migrated from 3.2.3 version to 4.1 version. Most of the scripts were working fine in older version are not working now. What might be the problem and why i am facing this timing issues.

Please some one guide me.

Thanks in advance,
A.R.Phanindranath
Last edited by phani.2905 on Mon Nov 11, 2013 7:58 am, edited 1 time in total.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Mouse click operations are not working

Post by Support Team » Fri Nov 08, 2013 4:44 pm

Hello Phani,

Could you please verify if 'Asychronous dispatching of mouse and keyboard events' is enabled in the 'Advanced Settings' of Ranorex? The checkbox needs to be enabled.
Are you working remotely or on a virtual environment?

Please take a look at this post:
http://www.ranorex.com/forum/mouse-down ... -t615.html

Regards,
Markus (T)
.
Image

phani.2905
Posts: 41
Joined: Thu Nov 07, 2013 12:19 pm

Re: Mouse click operations are not working

Post by phani.2905 » Mon Nov 11, 2013 7:48 am

Hi Markus,

Thanks for responding quickly. :)

Mark i am working from Remote Machine. Yes Asynchronous Mode is Disabled. But if i enable it, i am not able to record effectively, as you know it is very hard to record a script from Remote Machine with Asynchronous mode enabled.

Please guide me ASAP, in solving this problem.
Thanks in advance,
A.R.Phanindranath,

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Mouse click operations are not working

Post by Support Team » Tue Nov 12, 2013 2:30 pm

Hello Phani,

Thanks for your response.

We would need more information about your issue.

Which technology do you use in your application?
Do you have only 'Mouse Down' or also 'Mouse Up' actions in your recording actions table?
Is your system under heavy load or the automated application is very complex, e.g. deeply nested websites?
Please try to set/increase the LowLevelHooksTimeout in the registry as described in the post:
http://www.ranorex.com/forum/mouse-down ... tml#p17859

Regards,
Markus (T)
.
Image

tharward
Posts: 9
Joined: Sat Nov 16, 2013 4:17 am

Re: Mouse click operations are not working

Post by tharward » Sat Nov 16, 2013 4:37 am

I don't mean to hijack this thread, but I too am experiencing this same issue while evaluating Ranorex.

I am using Remote Desktop to access a pc with Ranorex installed. I was running through the Lesson Guidebook using the Keepass app and I noticed the Mouse Down problem. Changing them to Mouse Clicks worked for the most part, but then on playback sometimes it works and sometimes it doesn't.

I had seen the article about needing to turn off asynchronous dispatching of mouse and keyboard events, so I turned it off and that helped during recording. But then the playback would break way more often so I looked into it and found this article stating that the asynchronous dispatching needs to be turned on if you are accessing the pc remotely. So now I am stuck and my evaluation license expires at the end of this month.

I did create the LowLevelHooksTimeout setting in the registry with a value of 7000 as suggested in this article, but I continue to have issues during playback with the asynchronous dispatching turned on.

In answering the questions that you asked Phani . . .

I am using the Keepass app so I'm not sure what technology it was created with. Before making any changes to the Global Settings, I was seeing both Mouse Down and Mouse Clicks get recorded, just not with any consistency.

I will now bow out of the thread and await your response to Phani. I just wanted to make sure that you know that others are experiencing the same problem and I am able to duplicate it by following the steps in Lesson 1 of the guide book using the Keepass application.

Thanks,

Troy

phani.2905
Posts: 41
Joined: Thu Nov 07, 2013 12:19 pm

Re: Mouse click operations are not working

Post by phani.2905 » Sat Nov 16, 2013 4:51 pm

Thanks Marcus for your responce. :)
  • We are using ASP.Net technology.

    Yes in recording actions table Mouse click is shown as Mouse Down. Even we changed Mouse "Down" to Mouse "Click". Even tried increasing time out. But had no luck.!! :(

    Our site is simple site.It is not a deeply nested website.

    We dont have "LowLevelHooksTimeout" key in our Registry. Our system has 64 Bit Operating System.
    Please advise us at the earliest. :?
With Regards,
A.R.Phanindranath

phani.2905
Posts: 41
Joined: Thu Nov 07, 2013 12:19 pm

Re: Mouse click operations are not working

Post by phani.2905 » Tue Nov 19, 2013 10:11 am

tharward wrote:I don't mean to hijack this thread, but I too am experiencing this same issue while evaluating Ranorex.

I am using Remote Desktop to access a pc with Ranorex installed. I was running through the Lesson Guidebook using the Keepass app and I noticed the Mouse Down problem. Changing them to Mouse Clicks worked for the most part, but then on playback sometimes it works and sometimes it doesn't.

I had seen the article about needing to turn off asynchronous dispatching of mouse and keyboard events, so I turned it off and that helped during recording. But then the playback would break way more often so I looked into it and found this article stating that the asynchronous dispatching needs to be turned on if you are accessing the pc remotely. So now I am stuck and my evaluation license expires at the end of this month.

I did create the LowLevelHooksTimeout setting in the registry with a value of 7000 as suggested in this article, but I continue to have issues during playback with the asynchronous dispatching turned on.

In answering the questions that you asked Phani . . .

I am using the Keepass app so I'm not sure what technology it was created with. Before making any changes to the Global Settings, I was seeing both Mouse Down and Mouse Clicks get recorded, just not with any consistency.

I will now bow out of the thread and await your response to Phani. I just wanted to make sure that you know that others are experiencing the same problem and I am able to duplicate it by following the steps in Lesson 1 of the guide book using the Keepass application.

Thanks,

Troy
Hi Troy,
This is Phani, gone through your post.
How is the script behaving while execution. What happens when you change Mouse Down to Mouse click.
which version of Ranorex are you using?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Mouse click operations are not working

Post by Support Team » Tue Nov 19, 2013 2:24 pm

Hello,

@Phani:
Are you working remotely on a virtual environment that could be under heavy load?
If the registry key for LowLevelHooksTimeout did not exist, you could create this value and set it to a high value (e.g. 7000 or 10000). Please try it out.

@Troy:
Do you have an action 'Mouse Up' in your recording?
Please post a screenshot of your actions table.

Thanks in advance.

Regards,
Markus (T)
.
Image

tharward
Posts: 9
Joined: Sat Nov 16, 2013 4:17 am

Re: Mouse click operations are not working

Post by tharward » Tue Nov 19, 2013 6:13 pm

Hi Phani,

Changing Mouse Down to Mouse Click works better, but I am still getting inconsistent results.

Additional testing has helped me narrow down my problem.

Last Friday and yesterday, I was working from home which means I was using a VPN (virtual private network) to connect to the Ranorex pc via Remote Desktop. Today, I am in the office and things are working much better. This leads me to believe that the mouse and keyboard behavior are affected by the VPN.

I have been using IBM Rational Robot in this same setup for many years and it has worked great, so I am hoping that it is just a matter of tweaking the settings because I connect via VPN for 50% of my work time.

I am currently running with the Use asynchronous dispatching of keyboard and mouse events turned off and I removed the LowLevelHooksTimeout setting that I added on Friday. I am connected directly to the network (no VPN) and am remoted in to the pc with Ranorex installed via Remote Desktop. Both machines are running Windows 7 64-bit. With these settings, the script from Lesson 1 of the Ranorex User Guide is executing successfully each time.

I will continue to test and report, but it is looking like my main issue is with recording and playback when connected via VPN.

@Markus:
I do not have any Mouse Up actions in my recording. I have attached a screenshot of my actions table as requested.

Thank you very much for looking into this problem.

Troy
Attachments
Ranorex Actions Table_tlh.jpg
Ranorex Actions Table_tlh.jpg (346.92 KiB) Viewed 6840 times

tharward
Posts: 9
Joined: Sat Nov 16, 2013 4:17 am

Re: Mouse click operations are not working

Post by tharward » Tue Nov 19, 2013 6:20 pm

I forgot to include in my last post that I am using Ranorex Studio Version 4.1.2.16100 with .NET Runtime Version 4.0.30319.1008.

phani.2905
Posts: 41
Joined: Thu Nov 07, 2013 12:19 pm

Re: Mouse click operations are not working

Post by phani.2905 » Wed Nov 20, 2013 7:55 am

Hi Marcus,

Thanks for the response. :)

Actually, i need to speak to my IT Maintenance Group in order to create or modify Registry keys. I will talk to them and update you. I will definitely look at that option.

@ Troy,
Hi
I am not an Ranorex expert, But I spent hours together in order to find a solution for the same issue that we both encountered. After going through your attached snapshot, I have a suggestion for you. I don't know whether it will work for you or not. It worked for me 90% of the times.
Increase "Duration" time, Change "Location" co-ordinates to "Center" , Give enough "Move time" and use Delays ahead of every Validation Point. [I observed that you were not using Validation points.] Please see attached image and let me know if it works/Doesn't:?: .. Hoping that this will help you to some extent. :)

Thanks,
Phani
Attachments
Ranorex Actions Table_Phani.jpg
Ranorex Actions Table_Phani.jpg (416 KiB) Viewed 6834 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Mouse click operations are not working

Post by Support Team » Wed Nov 20, 2013 3:00 pm

Hello Phani!
Hello Troy!

@Phani
Thank you for posting your approaches to solving this issue. This could help other users to fix their issues.
I would recommend to increase your 'Move Time' to a higher value since 100ms could be too short in some cases. You could also change the default 'Move Time' in the 'Recorder Defaults' setting.

@Troy
Please try to disable 'Turbo Mode' in the recording and change 'Mouse Down' to 'Mouse Click' actions.
Additionally, please increase 'Mouse move time per action (ms)' in the 'Recorder Defaults' setting to a higher value (default: 300 ms). A Ranorex colleague will call you today in order to analyze your issue.

Regards,
Markus (T)
.
Image

tharward
Posts: 9
Joined: Sat Nov 16, 2013 4:17 am

Re: Mouse click operations are not working

Post by tharward » Wed Nov 20, 2013 8:46 pm

Thank you Phani, Markus, and Martin (I received a phone call from Martin)!!

I followed the suggestions from all of you and am now able to play back my scripts successfully almost every time while connected via VPN.

I will continue to tweak the settings as necessary to achieve the best configuration for my setup.

Once again I appreciate the awesome support and suggestions from all of you!

Thanks,

Troy

phani.2905
Posts: 41
Joined: Thu Nov 07, 2013 12:19 pm

Re: Mouse click operations are not working

Post by phani.2905 » Thu Nov 21, 2013 8:25 am

Hi Marcus,

Thanks for your valuable suggestions and i will update my script.
Coming to Registry Key settings, My IT Team had created LowLevelHooksTimeout key and set it to 7000.

But my problem still exist. :? , In Recording Mouse click is shown as Mouse Down. As a work around method i am changing them to Mouse click. As you know it is time consuming, Please let me know if there is any thing else i can do.


@ Troy,

:D Glad to hear that your scripts are running fine. Can you please let me know, What exactly you have modified in your script?

Thanks,
Phani

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Mouse click operations are not working

Post by Support Team » Thu Nov 21, 2013 4:36 pm

Hello Troy! Hello Phani!

@Troy
Thank you for your good feedback :-)

@Phani
Have you disabled 'Turbo Mode' in your settings and increased 'Mouse move time' in the 'Recorder Defaults'?
Please let me know if you experience any difference.

Regards,
Markus (T)
.
Image