Keyboard shortcut (macro)
John Wiberg
✭✭✭
Well the only way to get user defined shortcuts into RS without going through windows it to use a view.
This code works only if you have opened a station, then clicked in the graphics view, then push a key if the key is 'r' or 'a' then you get a messagebox.
Dim WithEvents myView As View
Private Sub Application_StationAfterOpen(ByVal Station As Station)
Set myView = ActiveView
End Sub
Private Sub myView_KeyDown(ByVal Char As Long, ByVal RepCnt As Long, ByVal Flags As Long)
'MsgBox Char
Select Case Char
Case 65
MsgBox "You just pressed 'a'"
Case 82
MsgBox "You just pressed 'r'"
End Select
End Sub
John
Developer Center
Developer Center
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 314 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 794 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings