J'en ai fait un mais il ne marche pas, le voici:
Code: Select all
var Dossier = System().currentDirectory();
var file = new File();
var date = new Date();
var Heure = date.getHours();
var Minute = date.getMinutes();
file.open('D:/Program Files (x86)/Actiona Files/HeureMission.txt', File.ReadOnly);
var Lecture1 = file.readText().split('\n')[0]; // 0 = Ligne 1 (Heure)
file.close();
file.open('D:/Program Files (x86)/Actiona Files/HeureMission.txt', File.ReadOnly);
var Lecture2 = file.readText().split('\n')[1]; // 1 = Ligne 2 (Minute)
file.close();
Console.print(Heure);
Console.print(Minute);
Console.print(Lecture1);
Console.print(Lecture2);
if(Heure>=Lecture1){
if(Minute>=Lecture2){
Script.nextLine=Script.nextLine=004;
}
}
Etienne.