Skip to content

Commit

Permalink
#834 - add using ocr to present() / visible()
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh committed Nov 29, 2020
1 parent 79a558d commit 35fbd38
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/tagui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ chrome_command="google-chrome"

if [ -z "$1" ]
then
echo "tagui v6.8: use following options and this syntax to run - ./tagui flow_filename option(s)"
echo "tagui v6.9: use following options and this syntax to run - ./tagui flow_filename option(s)"
echo
echo "live launch in live mode enabled with visual automation for interactive development"
echo "input(s) add your own parameter(s) to be used in your automation flow as variables p1 to p9"
Expand Down
2 changes: 1 addition & 1 deletion src/tagui.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ rem enable windows for loop advanced flow control
setlocal enableextensions enabledelayedexpansion

if "%~1"=="" (
echo tagui v6.8: use following options and this syntax to run - tagui flow_filename option^(s^)
echo tagui v6.9: use following options and this syntax to run - tagui flow_filename option^(s^)
echo.
echo live launch in live mode enabled with visual automation for interactive development
echo input^(s^) add your own parameter^(s^) to be used in your automation flow as variables p1 to p9
Expand Down
2 changes: 2 additions & 0 deletions src/tagui.sikuli/tagui.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ def vision_intent ( raw_intent ):
return 1

def visible_intent ( raw_intent ):
if using_ocr(raw_intent):
raw_intent = raw_intent[:-9].strip()
setAutoWaitTimeout(1)
params = (raw_intent + ' ')[1+(raw_intent + ' ').find(' '):].strip()
print '[tagui] ACTION - ' + raw_intent.strip()
Expand Down

0 comments on commit 35fbd38

Please sign in to comment.