image thumbnail
from WindTools : Access common windows tools from MATLAB by TAB
WindTools is a simple GUI that allow the quick access to the commonly used windows tools from Matlab

WindTools(varargin)
function varargout = WindTools(varargin)
% WINDTOOLS M-file for WindTools.fig
%      WINDTOOLS, by itself, creates a new WINDTOOLS or raises the existing
%      singleton*.
%
%      H = WINDTOOLS returns the handle to a new WINDTOOLS or the handle to
%      the existing singleton*.
%
%      WINDTOOLS('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in WINDTOOLS.M with the given input arguments.
%
%      WINDTOOLS('Property','Value',...) creates a new WINDTOOLS or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before WindTools_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to WindTools_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help WindTools

% Last Modified by GUIDE v2.5 12-Jun-2012 17:36:24

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @WindTools_OpeningFcn, ...
                   'gui_OutputFcn',  @WindTools_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before WindTools is made visible.
function WindTools_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to WindTools (see VARARGIN)

% -- Set the background image
BkImage = importdata('BckGnd2.jpg');
axes(handles.BkAxes1);
image(BkImage);
axis off;

BkImage = importdata('BckGnd1.jpg');
axes(handles.BkAxes2);
image(BkImage);
axis off;

% Choose default command line output for WindTools
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes WindTools wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = WindTools_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


% --- Executes on button press in Pb_WordPad.
function Pb_WordPad_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_WordPad (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start wordpad');
close(gcf);

% --- Executes on button press in Pb_IExplorer.
function Pb_Paint_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_IExplorer (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start mspaint');
close(gcf);

% --- Executes on button press in Pb_Calc.
function Pb_Calc_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_Calc (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start calc');
close(gcf);

% --- Executes on button press in Pb_MyComputer.
function Pb_MyComputer_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_MyComputer (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start explorer');
close(gcf);

% --- Executes on button press in Pb_IExplorer.
function Pb_IExplorer_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_IExplorer (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start iexplore');
close(gcf);

% --- Executes on button press in Pb_NotePad.
function Pb_NotePad_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_NotePad (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start notepad');
close(gcf);

% --- Executes on button press in Pb_Cmd.
function Pb_Cmd_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_Cmd (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start cmd');
close(gcf);

% --- Executes on button press in Pb_mstsc.
function Pb_mstsc_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_mstsc (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start mstsc');
close(gcf);

% --- Executes on button press in Pb_Control.
function Pb_Control_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_Control (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start control');
close(gcf);


% --- Executes on button press in Pb_Netconn.
function Pb_Netconn_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_Netconn (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start ncpa.cpl');
close(gcf);

% --- Executes on button press in Pb_WmPlayer.
function Pb_WmPlayer_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_WmPlayer (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start wmplayer');
close(gcf);

% --- Executes on button press in Pb_Taskmgr.
function Pb_Taskmgr_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_Taskmgr (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start taskmgr');
close(gcf);



% --- Executes on button press in Pb_MsWord.
function Pb_MsWord_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_MsWord (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start WINWORD');
close(gcf);


% --- Executes on button press in Pb_MsOutLook.
function Pb_MsOutLook_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_MsOutLook (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start OUTLOOK');
close(gcf);


% --- Executes on button press in Pb_MsExcel.
function Pb_MsExcel_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_MsExcel (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start EXCEL');
close(gcf);


% --- Executes on button press in Pb_MsPPT.
function Pb_MsPPT_Callback(hObject, eventdata, handles)
% hObject    handle to Pb_MsPPT (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
dos('start POWERPNT');
close(gcf);


Contact us