Hi
Just wondering if there is a way of launching the client ‘diagnostics/console’ page from the client if the menu bar is hidden.
Hi
Just wondering if there is a way of launching the client ‘diagnostics/console’ page from the client if the menu bar is hidden.
You can open the diagnostics page on a client by pressing Ctrl+Shift+F7
Thanks for the information
Is it possible to assign this key combination to be sent by pressing a button as the system in question has no keyboard ?
It is possible with a Robot.
Put this code in an actionPerformed event in a button:
from java.awt import Robot
from java.awt.event import KeyEvent
robot = Robot()
robot.keyPress(KeyEvent.VK_CONTROL)
robot.keyPress(KeyEvent.VK_SHIFT)
robot.keyPress(KeyEvent.VK_F7)
robot.keyRelease(KeyEvent.VK_CONTROL)
robot.keyRelease(KeyEvent.VK_SHIFT)
robot.keyRelease(KeyEvent.VK_F7)
It would be better if there was a builtin supported way to open the Diagnostics window through scripting.
I was unable to get this to work in Ignition 7.5.11
The “Ctrl+Shift+F7” shortcut does not exist in Ignition 7.5.11.
Just wanted to make it clear since 7.5 is still in Long Term Support. This earlier thread answers the same question.
Thanks for the help works fine in V7.7
Not sure if there’s been an update in 4yrs on this to make it easier to bring up the diagnostics window via script, but nmudge’s code works in 7.9.9 too. Although, I needed to change the order a bit since we use F7 for other operations.
Just release the keys in the reverse order of how you set them.
from java.awt import Robot
from java.awt.event import KeyEvent
robot = Robot()
robot.keyPress(KeyEvent.VK_CONTROL)
robot.keyPress(KeyEvent.VK_SHIFT)
robot.keyPress(KeyEvent.VK_F7)
robot.keyRelease(KeyEvent.VK_F7)
robot.keyRelease(KeyEvent.VK_SHIFT)
robot.keyRelease(KeyEvent.VK_CONTROL)
You can also open it directly (skipping Robot’s simulated keystrokes) with:
from com.inductiveautomation.factorypmi.application import FPMIApp
FPMIApp.getInstance().showFPMIDiagnostics()
https://docs.inductiveautomation.com/display/DOC81/system.gui.openDiagnostics