Hi,
I just wanted to know if a Codemodule can have something like the recording's turbo mode?
If yes, is there a Command to enable it in the Code Module?
looking forward hearing from you
Turbo Mode in Code Module?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Turbo Mode in Code Module?
Hi,
Regards,
Peter
Ranorex Team
Please take a look to following section in your UserCodeFilejust wanted to know if a Codemodule can have something like the recording's turbo mode?
If yes, is there a Command to enable it in the Code Module?
void ITestModule.Run() { Mouse.DefaultMoveTime = 300; Keyboard.DefaultKeyPressTime = 100; Delay.SpeedFactor = 1.0; }Basically you have to set all properties to 0.
Regards,
Peter
Ranorex Team
Re: Turbo Mode in Code Module?
Thank you for your quick and informative answer 
I have some delays build in my test suite. In which aspect does Delay.Speedfactor = 0; affect them?

I have some delays build in my test suite. In which aspect does Delay.Speedfactor = 0; affect them?
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Turbo Mode in Code Module?
Hi,
http://www.ranorex.com/Documentation/Ra ... onds_1.htm
If you set the property scaleBySpeedFactor to true, then the Speedfactor will be considered. If you set the property to false, this is done by default in a Recorder Action, then the Speedfactor won't be considered.
Regards,
Peter
Ranorex Team
There are two overloads for the DelayTodor wrote:I have some delays build in my test suite. In which aspect does Delay.Speedfactor = 0; affect them?
http://www.ranorex.com/Documentation/Ra ... onds_1.htm
If you set the property scaleBySpeedFactor to true, then the Speedfactor will be considered. If you set the property to false, this is done by default in a Recorder Action, then the Speedfactor won't be considered.
Regards,
Peter
Ranorex Team
Re: Turbo Mode in Code Module?
Okay, that means when i use
the Delay will be ignored, right?
Because scaleBySpeedFactor will be true for this Delay.Duration(1000);?
*Edit: Okay i have tried it... When you set Delay.Speedfactor to zero, none of the Delays are executed.
Ignore the two questions above, i am too lazy to delete them
Thanks again for your help
regards
Code: Select all
Delay.Duration(1000);
//at a
Delay.Speedfactor= 0;
Because scaleBySpeedFactor will be true for this Delay.Duration(1000);?
*Edit: Okay i have tried it... When you set Delay.Speedfactor to zero, none of the Delays are executed.
Ignore the two questions above, i am too lazy to delete them

regards