# Button Acction commands to Perspectve

**URL:** <https://forum.inductiveautomation.com/t/button-acction-commands-to-perspectve/69779>\
**Category:** Module Development\
**Tags:** perspective, vision, ignition81\
**Created:** [February 13, 2023, 4:26pm UTC](https://forum.inductiveautomation.com/t/button-acction-commands-to-perspectve/69779 "2023-02-13T16:26:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leandro\_Garcia\_Carva](https://avatars.discourse-cdn.com/v4/letter/l/6f9a4e/32.png) [@Leandro\_Garcia\_Carva](https://forum.inductiveautomation.com/u/Leandro_Garcia_Carva)\
**Post date:** [February 13, 2023, 4:26pm UTC](https://forum.inductiveautomation.com/t/button-acction-commands-to-perspectve/69779/1 "2023-02-13T16:26:57Z")

</div>

Hi I need to convert a Vision project to Perspective. There are two action from two diferent buttons that I need to make at perspective. Could you tell me the equivalent action for the perspective buttons below?

Button 1  
system.security.logout()

Button 2  
if system.gui.isTouchscreenModeEnabled()==0:  
system.gui.setTouchscreenModeEnabled(1)  
event.source.parent.blnTouchMode=1  
else:  
system.gui.setTouchscreenModeEnabled(0)  
event.source.parent.blnTouchMode=0

Thank you very much.

Leandro

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 13, 2023, 4:34pm UTC](https://forum.inductiveautomation.com/t/button-acction-commands-to-perspectve/69779/2 "2023-02-13T16:34:17Z")

</div>

1. [system.perspective.logout - Ignition User Manual 8.1 - Ignition Documentation](https://docs.inductiveautomation.com/display/DOC81/system.perspective.logout)

2. There is no analogue for touchscreen mode in Perspective. The browser environment automatically shows the OS on-screen keyboard when necessary.
