Comments (5)
Both commands end up using the Mouse Move Command when clicking items. The UI Automation and Click Item both get the clickable location of the element and then create the Mouse Move Command, set the parameters, then run the command.
However, to this point, Mouse Move could not use variables to move the mouse. In order to add variable support, the Mouse Move command was updated which changed the parameters from integer to string. It appears that the command thinks the value being parsed in your command is invalid (AKA not a number OR the number is not a string). I tested on old scripts and it seemed to work but I have added exception handling so it will output the error specifically with the X and Y values that are attempting to be parsed.
Can you run the latest DEV build and reply with the actual values of the command? I am currently unable to reproduce the issue.
from taskt.
Hi, thanks. I'll check it in last dev-branch:
2018-10-29 08:08:32.551 +03:00 [INF] Running Line 7: Wait For Window To Exist [Target Window: 'Запуск 1С:Предприятия', Wait Up To 600 seconds] 2018-10-29 08:08:32.864 +03:00 [INF] Running Line 8: Click UI Item [Perform Left Click on '{1CDataBase}' in Window 'Запуск 1С:Предприятия'] 2018-10-29 08:08:33.223 +03:00 [INF] Result Code: Error 2018-10-29 08:08:33.223 +03:00 [INF] Error: System.Exception: System.Exception: System.Exception: Error parsing input to int type (X: 643, Y:520,5) System.FormatException: Входная строка имела неверный формат. в System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) в System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) в System.Int32.Parse(String s) в taskt.Core.AutomationCommands.SendMouseMoveCommand.RunCommand(Object sender) в C:\src\taskt\taskt\Core\AutomationCommands.cs:строка 2272 в taskt.Core.AutomationCommands.SendMouseMoveCommand.RunCommand(Object sender) в C:\src\taskt\taskt\Core\AutomationCommands.cs:строка 2276 в taskt.Core.AutomationCommands.ThickAppClickItemCommand.RunCommand(Object sender) в C:\src\taskt\taskt\Core\AutomationCommands.cs:строка 2458 в taskt.Core.AutomationEngineInstance.ExecuteCommand(ScriptAction command) в C:\src\taskt\taskt\Core\AutomationEngine.cs:строка 231 в taskt.Core.AutomationEngineInstance.ExecuteCommand(ScriptAction command) в C:\src\taskt\taskt\Core\AutomationEngine.cs:строка 252 в taskt.Core.AutomationCommands.BeginIfCommand.RunCommand(Object sender, ScriptAction parentCommand) в C:\src\taskt\taskt\Core\AutomationCommands.cs:строка 5233 в taskt.Core.AutomationEngineInstance.ExecuteCommand(ScriptAction command) в C:\src\taskt\taskt\Core\AutomationEngine.cs:строка 200 в taskt.Core.AutomationEngineInstance.ExecuteCommand(ScriptAction command) в C:\src\taskt\taskt\Core\AutomationEngine.cs:строка 252 в taskt.Core.AutomationEngineInstance.ExecuteScript(String filePath) в C:\src\taskt\taskt\Core\AutomationEngine.cs:строка 116
Maybe error in a fractional number in coordinates )
from taskt.
can you recapture the command and see if it persists? AFAIK, It is not possible to have fractions in coordinates - screen coordinates are integers (whole number) only. What I can do is make the number round-down, but im not sure how this scenario is happening.
I will use your debug output posted here to assess and implement a fix.
from taskt.
I changed the parse method so it should round the variables down -- it should not be possible to move the mouse to a position like 540.5 but it should be better handled now.
from taskt.
Jason, thanks. Now my script works without errors.
from taskt.
Related Issues (20)
- Unable to launch browser commands in Taskt HOT 4
- Datatable and Variable do not allow leading zero(s) HOT 1
- Unable to perform Element Action
- How to run task in unattended mode
- Aguardar um processo
- Wait for a process
- Image Recognition Y Offset
- Screen recorder gives problematic SendKeys codes with DosBox
- System Diagnostics c# framework library
- Activate Window is browser how can i get browser info
- Error while trying to create browser (chrome) HOT 2
- SMTP without SSL HOT 1
- I don't have get UI item
- how to schedule a task using TaskT-RPA on a server HOT 1
- Export project Taskt RPA
- Script doesn't open when changing webelement action HOT 1
- be sinicized HOT 1
- /enhancement Compile taskt scripts?
- taskt version
- Documentation wiki url broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskt.