Input dialog - variable problem...
Posted: 05 Aug 2016 16:06
Hi. Im creating an Single choice dialog, where you can choose the text you have copied. There is a problem.
I have 3 global variables: global_clpb (List), global_lbIndex (Integer), global_lbIndexSelect (Integer)
First trigger - executed if clipboard changed.
Second - action (Copy text from clipboard)
Third: Script >
The copied text is now added to the global_clpb.
-------------Now appears the Single chocie dialog:
The problem here is: in the editing-menu of this dialog I have list values: {global_clpb,listformat,comma}
Default value: {global_lbIndexSelect}
The idea: It should automatically select last copied text in the menu, but it doesn't do it. Why? Bug?
I have 3 global variables: global_clpb (List), global_lbIndex (Integer), global_lbIndexSelect (Integer)
First trigger - executed if clipboard changed.
Second - action (Copy text from clipboard)
Third: Script >
Code: Select all
addElement(global_clpb, global_lbIndex, clip_data);
global_lbIndex = length(global_clpb);
global_lbIndexSelect = (global_lbIndex - 1);
-------------Now appears the Single chocie dialog:
The problem here is: in the editing-menu of this dialog I have list values: {global_clpb,listformat,comma}
Default value: {global_lbIndexSelect}
The idea: It should automatically select last copied text in the menu, but it doesn't do it. Why? Bug?