@@ -165,9 +165,10 @@ private void runSequence()
165165 {
166166 // Extract info from action
167167 string action = lstbx_points . Items [ i ] . ToString ( ) . Split ( ":" ) [ 1 ] . Trim ( ) . Split ( " " ) [ 0 ] ;
168+ string click = "" ;
168169 if ( action . Contains ( "Click" ) )
169170 {
170- clickType = action . Split ( "-" ) [ 0 ] ;
171+ click = action . Split ( "-" ) [ 0 ] ;
171172 action = action . Split ( "-" ) [ 1 ] ;
172173 }
173174 string type = lstbx_points . Items [ i ] . ToString ( ) . Split ( ":" ) [ 1 ] . Trim ( ) . Split ( " " ) [ 1 ] ;
@@ -210,8 +211,8 @@ private void runSequence()
210211 {
211212 case "Left" :
212213 SetCursorPos ( x , y ) ;
213- if ( ! clickType . Equals ( "Hold" ) )
214- for ( int j = 0 ; j < int . Parse ( clickType ) ; j ++ )
214+ if ( ! click . Equals ( "Hold" ) )
215+ for ( int j = 0 ; j < int . Parse ( click ) ; j ++ )
215216 {
216217 mouse_event ( MOUSEEVENTF_LEFTDOWN , 0 , 0 , 0 , 0 ) ;
217218 mouse_event ( MOUSEEVENTF_LEFTUP , 0 , 0 , 0 , 0 ) ;
@@ -221,8 +222,8 @@ private void runSequence()
221222 break ;
222223 case "Middle" :
223224 SetCursorPos ( x , y ) ;
224- if ( ! clickType . Equals ( "Hold" ) )
225- for ( int j = 0 ; j < int . Parse ( clickType ) ; j ++ )
225+ if ( ! click . Equals ( "Hold" ) )
226+ for ( int j = 0 ; j < int . Parse ( click ) ; j ++ )
226227 {
227228 mouse_event ( MOUSEEVENTF_MIDDLEDOWN , 0 , 0 , 0 , 0 ) ;
228229 mouse_event ( MOUSEEVENTF_MIDDLEUP , 0 , 0 , 0 , 0 ) ;
@@ -232,8 +233,8 @@ private void runSequence()
232233 break ;
233234 case "Right" :
234235 SetCursorPos ( x , y ) ;
235- if ( ! clickType . Equals ( "Hold" ) )
236- for ( int j = 0 ; j < int . Parse ( clickType ) ; j ++ )
236+ if ( ! click . Equals ( "Hold" ) )
237+ for ( int j = 0 ; j < int . Parse ( click ) ; j ++ )
237238 {
238239 mouse_event ( MOUSEEVENTF_RIGHTDOWN , 0 , 0 , 0 , 0 ) ;
239240 mouse_event ( MOUSEEVENTF_RIGHTUP , 0 , 0 , 0 , 0 ) ;
0 commit comments