This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Pin code menu
#1
Hi,

Is there any way to open the pin code menu of an object when you enter in the page without clicking the object?

Or some kind of ping code menu that can be used as "inline in usermode"?

Thanks.
Reply
#2
You can add PIN to the page then you will be asked while accessing this page
------------------------------
Ctrl+F5
Reply
#3
(21.02.2022, 08:25)Daniel Wrote: You can add PIN to the page then you will be asked while accessing this page

I've seen, but I need that when the pin is correct send a value to the bus... (without touching any other button)
Reply
#4
This JS will click every element with autoclick class on plan change (won't trigger when the first default plan is shown):
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  });
});

You can also hide these elements if needed via CSS:
Code:
.autoclick {
  visibility: hidden;  
}
Reply
#5
(21.02.2022, 08:59)admin Wrote: This JS will click every element with autoclick class on plan change (won't trigger when the first default plan is shown):
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  });
});

You can also hide these elements if needed via CSS:
Code:
.autoclick {
  visibility: hidden; 
}

Thank you, it works!!
But it's possible to apply to the first default plan?
Reply
#6
Use this:
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  }).trigger('showplan', currentPlanId);
});
Reply
#7
(21.02.2022, 12:54)admin Wrote: Use this:
Code:
$(function(){
  $(document.body).on('showplan', function(e, id) {
    $('#plan-' + id).find('.autoclick').click();
  }).trigger('showplan', currentPlanId);
});

Perfect! Thanks!
Reply


Forum Jump: