Keyboard shortcut (macro)
Options
John Wiberg
admin
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.4K RobotStudio
- 385 UpFeed
- 15 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 285 IRC5
- 47 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 748 RAPID Programming
- 15 Wizard Easy Programming
- 110 Collaborative Robots
- 3 Job listings