12-12-2019, 04:30 PM
I would like to be able to rename the script, right now when pressing F2 nothing happens.
I've got some errors when testing some examples from the library:
Compilation: 3 errors
<open "<0x100000013>|6|68">Script15.cs(6,68): error CS1061: 'DEventArgs' does not contain a definition for 'DoNotCloseDialog' and no accessible extension method 'DoNotCloseDialog' accepting a first argument of type 'DEventArgs' could be found (are you missing a using directive or an assembly reference?)
<open "<0x100000013>|12|24">Script15.cs(12,24): error CS1061: 'AWnd' does not contain a definition for 'FocusControlOfThisThread' and no accessible extension method 'FocusControlOfThisThread' accepting a first argument of type 'AWnd' could be found (are you missing a using directive or an assembly reference?)
<open "<0x100000013>|13|5">Script15.cs(13,5): error CS1061: 'DEventArgs' does not contain a definition for 'DoNotCloseDialog' and no accessible extension method 'DoNotCloseDialog' accepting a first argument of type 'DEventArgs' could be found (are you missing a using directive or an assembly reference?)
Compilation: 1 errors
<open "<0x10000000E>|11|3">Script10.cs(11,3): error CS1061: 'ADialog' does not contain a definition for 'ThreadWaitClosed' and no accessible extension method 'ThreadWaitClosed' accepting a first argument of type 'ADialog' could be found (are you missing a using directive or an assembly reference?)
I've got some errors when testing some examples from the library:
C# code:
ADialog.ShowTextInputEx("Example", flags: DFlags.CommandLinks, buttons: "OK|Cancel|10 Browse\nSets edit control text.",
onButtonClick: e => { if(e.Button == 10) { e.EditText = "text"; e.DontCloseDialog = true; } });
ADialog.ShowTextInputEx("Example", "Try to click OK while text is empty.", onButtonClick: e =>
{
if(e.Button == 1 && Empty(e.EditText)) {
ADialog.Show("Text cannot be empty.", owner: e.hwnd);
e.dialog.EditControl.FocusControlOfThisThread();
e.DontCloseDialog = true;
}
});
Compilation: 3 errors
<open "<0x100000013>|6|68">Script15.cs(6,68): error CS1061: 'DEventArgs' does not contain a definition for 'DoNotCloseDialog' and no accessible extension method 'DoNotCloseDialog' accepting a first argument of type 'DEventArgs' could be found (are you missing a using directive or an assembly reference?)
<open "<0x100000013>|12|24">Script15.cs(12,24): error CS1061: 'AWnd' does not contain a definition for 'FocusControlOfThisThread' and no accessible extension method 'FocusControlOfThisThread' accepting a first argument of type 'AWnd' could be found (are you missing a using directive or an assembly reference?)
<open "<0x100000013>|13|5">Script15.cs(13,5): error CS1061: 'DEventArgs' does not contain a definition for 'DoNotCloseDialog' and no accessible extension method 'DoNotCloseDialog' accepting a first argument of type 'DEventArgs' could be found (are you missing a using directive or an assembly reference?)
C# code:
ADialog.ShowNoWait("Simple example");
var d = ADialog.ShowNoWaitEx("Another example", "text", "1 OK|2 Cancel", y: -1, secondsTimeout: 30);
2.s(); //do something while the dialog is open
d.Send.ChangeText2("new text", false);
2.s(); //do something while the dialog is open
d.ThreadWaitClosed(); Print(d.Result); //wait until the dialog is closed and get result. Optional, just an example.
Compilation: 1 errors
<open "<0x10000000E>|11|3">Script10.cs(11,3): error CS1061: 'ADialog' does not contain a definition for 'ThreadWaitClosed' and no accessible extension method 'ThreadWaitClosed' accepting a first argument of type 'ADialog' could be found (are you missing a using directive or an assembly reference?)