@@ -4655,22 +4655,15 @@ def zoom_action(data_set):
46554655
46564656 xx1 = xx - const
46574657 xx2 = xx + const
4658- x_cord1 = None
4659- x_cord2 = None
4660-
46614658
46624659 try :
46634660 for left , mid , right in data_set :
46644661 if left .strip ().lower () == 'action' :
4665- action = right .strip (). lower ().replace (' ' ,'' )
4662+ action = right .lower ().replace (' ' ,'' )
46664663 elif left .strip ().lower () == 'scale' :
46674664 scale = int (right )
46684665 elif left .strip ().lower () == 'count' :
46694666 count = int (right )
4670- elif 'coordinates' in left .strip ().lower ():
4671- cords = right .strip ()
4672- x_cord1 = int (cords [0 ].replace ('(' ,'' ))
4673- x_cord2 = int (cords [1 ].replace (')' ,'' ))
46744667 elif left .strip ().lower () == 'double tap' :
46754668 double_tap = right .strip ().lower () in ('true' , 'enable' , 'ok' , 'yes' )
46764669
@@ -4682,10 +4675,6 @@ def zoom_action(data_set):
46824675 if action == 'zoomout' :
46834676 for i in range (count ):
46844677 CommonUtil .ExecLog (sModuleInfo , f"Zoomed { i + 1 } time" , 1 )
4685- if x_cord1 :
4686- xs = x_cord1
4687- if x_cord2 :
4688- xe = x_cord2
46894678
46904679 action1 .long_press (x = xs + const , y = yy ).move_to (x = xs + (const * 1 * scale ), y = yy ).move_to (x = xs + int ((const * 1.5 * scale )), y = yy ).move_to (x = xs + (const * 2 * scale ), y = yy ).move_to (x = xs + int ((const * 2.5 * scale )), y = yy ).move_to (x = xs + (const * 3 * scale ), y = yy ).release ()
46914680 action2 .long_press (x = xe - const , y = yy ).move_to (x = xe - (const * 1 * scale ), y = yy ).move_to (x = xe - int ((const * 1.5 * scale )), y = yy ).move_to (x = xe - (const * 2 * scale ), y = yy ).move_to (x = xe - int ((const * 2.5 * scale )), y = yy ).move_to (x = xe - (const * 3 * scale ), y = yy ).release ()
@@ -4696,10 +4685,6 @@ def zoom_action(data_set):
46964685 elif action == 'zoomin' :
46974686 for i in range (count ):
46984687 CommonUtil .ExecLog (sModuleInfo , f"Zoomed { i + 1 } time" , 1 )
4699- if x_cord1 :
4700- xx1 = x_cord1
4701- if x_cord2 :
4702- xx2 = x_cord2
47034688
47044689 if double_tap == False :
47054690 action1 .long_press (x = xx1 , y = yy ).move_to (x = xx1 - (const * 1 * scale ), y = yy ).move_to (x = xx1 - int ((const * 1.5 * scale )), y = yy ).move_to (x = xx1 - (const * 2 * scale ), y = yy ).move_to (x = xx1 - int ((const * 2.5 * scale )), y = yy ).move_to (x = xx1 - (const * 3 * scale ), y = yy ).release ()
@@ -4752,7 +4737,7 @@ def pan_action(data_set):
47524737 try :
47534738 for left , mid , right in data_set :
47544739 if left .strip ().lower () == 'direction' :
4755- direction = right .strip (). lower ().replace (' ' ,'' )
4740+ direction = right .lower ().replace (' ' ,'' )
47564741 elif left .strip ().lower () == 'scale' :
47574742 scale = int (right )
47584743 elif left .strip ().lower () == 'count' :
0 commit comments