|
|
@ -13,7 +13,8 @@
|
|
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
|
|
<?import javafx.scene.layout.HBox?>
|
|
|
|
<?import javafx.scene.layout.HBox?>
|
|
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
|
<?import javafx.scene.layout.VBox?>
|
|
|
|
<AnchorPane prefHeight="300.0" prefWidth="600.0" stylesheets="@main.css" xmlns="http://javafx.com/javafx/17.0.2-ea"
|
|
|
|
<?import javafx.scene.control.CheckBox?>
|
|
|
|
|
|
|
|
<AnchorPane prefHeight="350.0" prefWidth="600.0" stylesheets="@main.css" xmlns="http://javafx.com/javafx/17.0.2-ea"
|
|
|
|
xmlns:fx="http://javafx.com/fxml/1" fx:controller="xyz.wbsite.jmacro.JMainController">
|
|
|
|
xmlns:fx="http://javafx.com/fxml/1" fx:controller="xyz.wbsite.jmacro.JMainController">
|
|
|
|
<children>
|
|
|
|
<children>
|
|
|
|
<Separator layoutY="-1.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="0.0"
|
|
|
|
<Separator layoutY="-1.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="0.0"
|
|
|
@ -37,11 +38,27 @@
|
|
|
|
</VBox.margin>
|
|
|
|
</VBox.margin>
|
|
|
|
</HBox>
|
|
|
|
</HBox>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
|
|
|
|
<children>
|
|
|
|
|
|
|
|
<Label contentDisplay="CENTER" prefHeight="25.0" text="开始后自动最小化"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<CheckBox fx:id="autoMini" focusTraversable="false">
|
|
|
|
|
|
|
|
<HBox.margin>
|
|
|
|
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
|
|
|
|
</HBox.margin>
|
|
|
|
|
|
|
|
</CheckBox>
|
|
|
|
|
|
|
|
</children>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<VBox.margin>
|
|
|
|
|
|
|
|
<Insets top="3.0" bottom="3.0"/>
|
|
|
|
|
|
|
|
</VBox.margin>
|
|
|
|
|
|
|
|
</HBox>
|
|
|
|
|
|
|
|
|
|
|
|
<HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
<HBox alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
<children>
|
|
|
|
<children>
|
|
|
|
<Label contentDisplay="CENTER" prefHeight="25.0" text="执行模式"/>
|
|
|
|
<Label contentDisplay="CENTER" prefHeight="25.0" text="执行模式"/>
|
|
|
|
|
|
|
|
|
|
|
|
<RadioButton mnemonicParsing="false" text="循环" selected="true" userData="loop">
|
|
|
|
<RadioButton mnemonicParsing="false" text="循环" selected="true" userData="loop" focusTraversable="false">
|
|
|
|
<HBox.margin>
|
|
|
|
<HBox.margin>
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
</HBox.margin>
|
|
|
|
</HBox.margin>
|
|
|
@ -49,7 +66,7 @@
|
|
|
|
<ToggleGroup fx:id="runMode"/>
|
|
|
|
<ToggleGroup fx:id="runMode"/>
|
|
|
|
</toggleGroup>
|
|
|
|
</toggleGroup>
|
|
|
|
</RadioButton>
|
|
|
|
</RadioButton>
|
|
|
|
<RadioButton mnemonicParsing="false" text="定时" toggleGroup="$runMode" userData="timing">
|
|
|
|
<RadioButton mnemonicParsing="false" text="定时" toggleGroup="$runMode" userData="timing" focusTraversable="false">
|
|
|
|
<HBox.margin>
|
|
|
|
<HBox.margin>
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
<Insets left="5.0"/>
|
|
|
|
</HBox.margin>
|
|
|
|
</HBox.margin>
|
|
|
@ -64,14 +81,14 @@
|
|
|
|
<HBox fx:id="modeLoop" alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
<HBox fx:id="modeLoop" alignment="CENTER_LEFT" prefHeight="25.0" prefWidth="200.0">
|
|
|
|
<children>
|
|
|
|
<children>
|
|
|
|
<Label text="每"/>
|
|
|
|
<Label text="每"/>
|
|
|
|
<TextField fx:id="interval" alignment="CENTER" prefWidth="35.0" promptText="时间" text="60">
|
|
|
|
<TextField fx:id="interval" alignment="CENTER" prefWidth="35.0" promptText="时间" text="60" focusTraversable="false">
|
|
|
|
<HBox.margin>
|
|
|
|
<HBox.margin>
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
</HBox.margin>
|
|
|
|
</HBox.margin>
|
|
|
|
</TextField>
|
|
|
|
</TextField>
|
|
|
|
<Label text="秒执行1次,"/>
|
|
|
|
<Label text="秒执行1次,"/>
|
|
|
|
<Label text="共"/>
|
|
|
|
<Label text="共"/>
|
|
|
|
<TextField fx:id="times" alignment="CENTER" prefWidth="35.0" promptText="次数" text="1">
|
|
|
|
<TextField fx:id="times" alignment="CENTER" prefWidth="35.0" promptText="次数" text="1" focusTraversable="false">
|
|
|
|
<HBox.margin>
|
|
|
|
<HBox.margin>
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
</HBox.margin>
|
|
|
|
</HBox.margin>
|
|
|
@ -89,7 +106,7 @@
|
|
|
|
<children>
|
|
|
|
<children>
|
|
|
|
<Label text="在"/>
|
|
|
|
<Label text="在"/>
|
|
|
|
<TextField fx:id="timing" prefWidth="150.0" promptText="如8:30:20,9:00"
|
|
|
|
<TextField fx:id="timing" prefWidth="150.0" promptText="如8:30:20,9:00"
|
|
|
|
text="8:30:20,9:00">
|
|
|
|
text="8:30:20,9:00" focusTraversable="false">
|
|
|
|
<HBox.margin>
|
|
|
|
<HBox.margin>
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
<Insets left="3.0" right="3.0"/>
|
|
|
|
</HBox.margin>
|
|
|
|
</HBox.margin>
|
|
|
@ -155,7 +172,7 @@
|
|
|
|
<AnchorPane layoutX="262.0" layoutY="14.0" prefHeight="250.0" prefWidth="400.0" AnchorPane.bottomAnchor="0.0"
|
|
|
|
<AnchorPane layoutX="262.0" layoutY="14.0" prefHeight="250.0" prefWidth="400.0" AnchorPane.bottomAnchor="0.0"
|
|
|
|
AnchorPane.leftAnchor="204.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
|
|
AnchorPane.leftAnchor="204.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
|
|
<children>
|
|
|
|
<children>
|
|
|
|
<Label layoutY="4.0" prefHeight="30.0" prefWidth="60.0" text="控制台" AnchorPane.leftAnchor="0.0"
|
|
|
|
<Label layoutY="4.0" prefHeight="30.0" prefWidth="60.0" text="运行日志" AnchorPane.leftAnchor="0.0"
|
|
|
|
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
|
|
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
|
|
<padding>
|
|
|
|
<padding>
|
|
|
|
<Insets left="10.0" right="10.0"/>
|
|
|
|
<Insets left="10.0" right="10.0"/>
|
|
|
@ -163,7 +180,7 @@
|
|
|
|
</Label>
|
|
|
|
</Label>
|
|
|
|
<Separator layoutX="-3.0" layoutY="39.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="1.0"
|
|
|
|
<Separator layoutX="-3.0" layoutY="39.0" opacity="0.5" prefWidth="200.0" AnchorPane.leftAnchor="1.0"
|
|
|
|
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="30.0"/>
|
|
|
|
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="30.0"/>
|
|
|
|
<TextArea fx:id="console" editable="false" layoutX="1.0" layoutY="41.0" prefHeight="270.0"
|
|
|
|
<TextArea fx:id="console" editable="false" layoutX="1.0" layoutY="41.0" prefHeight="320.0"
|
|
|
|
style="-fx-background-color: transparent; -fx-focus-color: no; -fx-control-inner-background: transparent;-fx-text-fill: #444444;"
|
|
|
|
style="-fx-background-color: transparent; -fx-focus-color: no; -fx-control-inner-background: transparent;-fx-text-fill: #444444;"
|
|
|
|
wrapText="true" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0"
|
|
|
|
wrapText="true" AnchorPane.leftAnchor="1.0" AnchorPane.rightAnchor="0.0"
|
|
|
|
AnchorPane.topAnchor="35.0">
|
|
|
|
AnchorPane.topAnchor="35.0">
|
|
|
|