Hi again,
what do I have to do in autogui+ definiton of "AutoGUI Menu item" to display not only the text of a menu item but also the menu item number?
Property "useImage" is "ON".
For example: how can I change property "displayText" to display "90. Logoff" instead of only "Logoff"?
Best regards and many thanks in advance,
Joerg
aXes 4.2. - menu items showing menu item number
Moderator: jeanmichel
-
Joerg Hamacher
- Posts: 40
- Joined: 09 Mar 2016, 00:29
Re: aXes 4.2. - menu items showing menu item number
Hi Joerg,
You can play with AutoGUI Menu Item / properties / extension / displayText (you change it to script)
and place following script there:
If you want to remove the dot, just use this line before the last line
I hope it helps.
Jaime
You can play with AutoGUI Menu Item / properties / extension / displayText (you change it to script)
and place following script there:
Code: Select all
var valueText = FIELD.getValue().trim();
var valuenextField = FIELD.nextField().getValue().trim();
var pointPos = valuenextField.indexOf(".");
if (pointPos ==-1) valueText = valueText + ' ' + valuenextField;
ENV.returnValue = valueText;
Code: Select all
valueText = valueText.replace(".", "");
Jaime
-
Joerg Hamacher
- Posts: 40
- Joined: 09 Mar 2016, 00:29
Re: aXes 4.2. - menu items showing menu item number
Hi Jaime,
that's exactly what I was looking for
Thank you very much,
Joerg
that's exactly what I was looking for
Thank you very much,
Joerg