Beispiel #1
0
    private void SelectTool(string charID)
    {
        int idslct = psApp.CharIDToTypeID("slct");
        int idnull = psApp.CharIDToTypeID("null");
        int idtool = psApp.CharIDToTypeID(charID);
        ActionDescriptor actionDesc = new ActionDescriptor();
        ActionReference  actionRef  = new ActionReference();

        actionRef.PutClass(idtool);
        actionDesc.PutReference(idnull, actionRef);
        psApp.ExecuteAction(idslct, actionDesc, PsDialogModes.psDisplayNoDialogs);
    }