Commits

Tom Yeh committed 99648df

changed wait(mili) to wait(seconds)

  • Participants
  • Parent commits f88e414

Comments (0)

Files changed (17)

File examples/src/main/java/org/sikuli/api/examples/ColorStateChangeExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.PersonStatusGreen);
-			wait(5000);
+			wait(5);
 			showImage(Images.PersonStatusRed);
-			wait(3000);
+			wait(3);
 			showImage(Images.PersonStatusSilver);
-			wait(3000);
+			wait(3);
 			showImage(Images.PersonStatusRed);
-			wait(3000);        				
+			wait(3);        				
 			showImage(Images.PersonStatusGreen);
-			wait(3000);
+			wait(3);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/DragDropExample.java

 	}
 
 
+	// TODO: this is not working yet
 	public static void main(String[] args) throws IOException, InterruptedException {
 		URL backgroundImage = Images.GoogleSearchPage;
 		URL dragTargetImage = Images.OSXDockIcon;

File examples/src/main/java/org/sikuli/api/examples/EnterTextExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showComponent(new TextFieldPanel());
-			wait(6000);
+			wait(6);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/FindAllExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.OSXDockPreferences);
-			wait(5000);
+			wait(5);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/FindExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.GoogleSearchPage);
-			wait(8000);
+			wait(8);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/ForegroundTargetExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.SceneDogCat2);			
-			wait(8000);
+			wait(8);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/HelloWorldExample.java

 				
 		// Display "Hello World" next to the found target for 3 seconds
 		Canvas canvas = new DesktopCanvas();
-		canvas.addLabel(r, "Hello World").display(3000);
+		canvas.addLabel(r, "Hello World").display(3);
 		
 		// Click the center of the found target
 		Mouse mouse = new DesktopMouse();

File examples/src/main/java/org/sikuli/api/examples/MouseExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showComponent(new TwoImageButtons());
-			wait(10000);
+			wait(10);
 			close();
 		}
 	};	

File examples/src/main/java/org/sikuli/api/examples/MultiStateTargetExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.OSXDockPreferences);
-			wait(5000);
+			wait(5);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/OrderingExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.OSXSharingPreferences);
-			wait(12000);
+			wait(12);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/RelativeExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.GoogleSearchPage);
-			wait(20000);
+			wait(20);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/SpeakerExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.GoogleSearchPage);
-			wait(8000);
+			wait(8);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/StateChangeEventExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.SceneEmpty);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneCat1);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneDog);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneCat1);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneEmpty);
-			wait(3000);
+			wait(3);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/StyledRectangleExample.java

 //				// TODO Auto-generated catch block
 //				e.printStackTrace();
 //			}
-			wait(10000);
+			wait(10);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/TargetEventExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.SceneEmpty);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneCat1);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneCat2);
-			wait(3000);       					
+			wait(3);       					
 			showImage(Images.SceneDogCat2);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneDog);
-			wait(3000);
+			wait(3);
 			showImage(Images.SceneEmpty);
-			wait(3000);
+			wait(3);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/TextTargetExample.java

 	static ScreenSimulator simulator = new ScreenSimulator(){
 		public void run(){
 			showImage(Images.SkypeCallsPreferences);
-			wait(15000);
+			wait(15);
 			close();
 		}
 	};

File examples/src/main/java/org/sikuli/api/examples/WaitExample.java

 			showImage(Images.OSXSystemPreferences);
 			waitForClick();
 			showImage(Images.OSXDockPreferences);
-			wait(10000);
+			wait(10);
 			close();
 		}
 	};