Hi,
customer has selected "Dropdown" at the "Input Fields Options" section of the "Subfile Options" and complains that he has to push the Enter-Button additionally before the option becomes active.
How can it be done that they do not have to press the ENTER key after selecting a subfile option from dropdown?
What has to be changed that aXes simulates a SENDKEY("ENTER") action after such a selection?
Many thanks in advance,
Joerg
aXes 4.2 - Subfile options Dropdown
Moderator: jeanmichel
-
Fairdinkum
- Posts: 128
- Joined: 24 Jul 2017, 17:02
Re: aXes 4.2 - Subfile options Dropdown
Hi Joerg,
It's me again. How about the attached auto gui rule? It adds onclick event to <LI> tags which have a class "md-list-item" so that a script (SENDKEY("Enter") in this case) executes on clicking on those elements.
The result will be something like the following video:
https://drive.google.com/file/d/1cnvatU ... sp=sharing
You might want to confirm that the condition <li class='md-list-item'> is appropreate.
HTH!
Best Regards,
Hidekazu Tanaka
It's me again. How about the attached auto gui rule? It adds onclick event to <LI> tags which have a class "md-list-item" so that a script (SENDKEY("Enter") in this case) executes on clicking on those elements.
Code: Select all
/*
* Add onClick event on <li class='md-list-item'>
*/
var elms = document.getElementsByTagName("LI");
for ( var i = 0; i < elms.length; i++ ){
if (elms[i].className.indexOf("md-list-item") >= 0 ){
elms[i].onclick = function(event) {SENDKEY("Enter");};
}
}
https://drive.google.com/file/d/1cnvatU ... sp=sharing
You might want to confirm that the condition <li class='md-list-item'> is appropreate.
HTH!
Best Regards,
Hidekazu Tanaka
- Attachments
-
- axautoguirules(subfileOptionsOnClick).zip
- (567 Bytes) Downloaded 737 times
-
Joerg Hamacher
- Posts: 40
- Joined: 09 Mar 2016, 00:29
Re: aXes 4.2 - Subfile options Dropdown
Hi Hidekazu,
I'm sorry but I do not get it working. I imported your rule but nothing happens. Do I have to insert the java script code anywhere? If yes, where?
And won't we get a conflict with the solution for "aXes 4.2 - Subfile Options Display Colour" where we decided to turn off the "Subfile Options"? Or does your Dropdown solution work without switching this option to "on"?
Best regards and enjoy your weekend,
Joerg
I'm sorry but I do not get it working. I imported your rule but nothing happens. Do I have to insert the java script code anywhere? If yes, where?
And won't we get a conflict with the solution for "aXes 4.2 - Subfile Options Display Colour" where we decided to turn off the "Subfile Options"? Or does your Dropdown solution work without switching this option to "on"?
Best regards and enjoy your weekend,
Joerg
-
Fairdinkum
- Posts: 128
- Joined: 24 Jul 2017, 17:02
Re: aXes 4.2 - Subfile options Dropdown
Hi Joerg,
Sorry for the delay reply... Only one thing you have to do for testing is just importing the rule. No need editing extra scripts.
Which screen did you test on it? Could you try again on STRPDM screen and see how it goes please?
Best Regards,
Hidekazu Tanaka
Sorry for the delay reply... Only one thing you have to do for testing is just importing the rule. No need editing extra scripts.
- this rule "axautoguirules(subfileOptionsOnClick)" requres to turn Recognise subfile options on
- the other one "axautoguirules(customSubfileOptions)" requres to turn Recognise subfile options off
Which screen did you test on it? Could you try again on STRPDM screen and see how it goes please?
Best Regards,
Hidekazu Tanaka