i have created a form to automate a task in outlook how i run the form like if want it as executable or icon on the desktop which on clicking will run my form
lets say my userform name is userform1
then i call my form from my macro-
sub monitorbox()
userform1.show
end sub
now i add this macro as button to my outlook tool bar by
going to tools | customize | command tab
go to macro and then drag to tool bar
that is it u r done.
Related
I have Maximo 7.6.1.1.
I would like to run an automation script from a custom Action button (in WO List View).
I've created an automation script with an action as a launch point. And I think I need to somehow reference the action in Application Builder >> Select Action.
But I've been unsuccessful in doing this--I've just been making random guesses at which options to choose, and of course, it hasn't worked.
How can I run automation script from a Action in WO List View?
You first create a SIGOPTION for the application (in the Application Builder app), but with the description that you want to appear in the menu. Then, create an entry in the "select action" menu that references your sigoption (again, in the Application Builder app). You do not have to fill in any description or details in the menu entry, that will be inherited from the sigoption (which is why you created that first). Give yourself the permissions for this sigoption. This is the usual way to get a menu entry into the system to do something.
I skipped the key information to tie the sigoption/menu entry to a script for ease of explaining adding the menu entry, but there are two key things to do to make this entry run an automation script. The first is the sigoption must be named exactly the same as your action that you created for your automation script. The second is that you must select the radio button at the very bottom of the sigoption dialog, in the "Advanced Signature Options" section, labeled "This is an action that must be invoked by user in the UI".
With those things in place, your menu should now be configured to run your automation script when selected in the application.
Hello I have some knowledge about VB Script, but i need some help so that it will help me to move further and study in VB Script.
I want to make dialog box which will contain :
Two radio button
one Text field to enter some value
OK and CANCEL button
so, could you please help me out?
VBScript doesn't support custom dialogs. You can either use the Internet Explorer COM object to emulate a dialog, or create an HTA. Either way you're building a web page with a form.
XCode doesn't include uninstallation options for their packager. Generally users simply drag the app to the trash if they want to uninstall it - most apps are self contained in the app package.
However, I have a kernel extension which must be uninstalled using a few simple command lines. There is a script that works, but I am required to provide a graphical uninstaller.
I don't expect there's a plug-n-play example code out there that provides a way to run the script while showing a progress bar, but I'm hoping someone has dealt with this or has a few pointers on how to accomplish this quickly and easily
The script is only two lines with no feedback, so we can execute the commands in the app, as long as we can easily request and use root permissions securely (ie, let OS X handle the permissions - we merely ask for OS X to give them to us which should cause it to ask the user for them similar to how it happens with the package installer) inside the app.
There's a reasonably good approach using a Cocoa-Applescript project in xcode to run a shell script here:
http://www.mactech.com/articles/mactech/Vol.22/22.08/GUI-upyourScript/index.html
It covers using a progress bar, handling errors, and getting the correct root permissions to run the shell script.
Unfortunately it's a bit long to cut and paste here, but the general steps are:
Create new xcode project of type Cocoa-Applescript app
Create and test the intended shell script, add it to your project
Edit the MainMenu.nib to add and name a button(theObject) and progress bar(pMainProgress), then edit title and other aspects of the ui to taste
Tie the button to the applescript in the project (in the Inspector with the button selected check the action box and put in myprojectname.applescript)
Edit the applescript to something akin to the following:
on clicked theObject
-- setup
set myPath to POSIX path of (path to me) as string
-- Start progress bar
set uses threaded animation of progress indicator "pMainProgress" of window "wMain" to true
tell progress indicator "pMainProgress" of window "wMain" to start
-- Do it!
try
do shell script quoted form of myPath & "Contents/Resources/backup.sh" with administrator privileges
on error number 255
display dialog "Sorry, an error occurred. I can't make the copy."
end try
-- Stop progress bar
tell progress indicator "pMainProgress" of window "wMain" to stop
set uses threaded animation of progress indicator "pMainProgress" of window "wMain" to false
end clicked
You can further customize the app (name, for instance) and add text boxes to the window to alert the user what step is happening if you're running multiple scripts (put set the contents of text field "efStatus" of window "wMain" to "Copying files..." in your script after adding a text field to the ui with the name "efStatus")
Using VBScript, I want to add an additional button to Notepad labeled “send” . The send button should be located near the help menu in the Notepad window
Please advise if it is possible to add a button inside Notepad. And if it possible then how can I create the button using VBScript?
Note - why I need to add the send button: The purpose of the send button is to send the file opened in Notepad to a remote Linux machine over the network.
This is not possible with VBScript. You could possibly manage to add the button, but you couldn't hook anything to respond to it being clicked.
You could probably hack something together using the native Win32 API, but it's more work to do that than it would be to write your own simple editor in any other language and use it instead of Notepad. (Notepad is simply a thin wrapper around a multiline edit control provided by the Windows API.)
It's Impossible via VBScript but with help of more serious languages like c# or c++ freely:
for example see project of my friend:
http://www.codeproject.com/KB/COM/automatingwindowsapps.aspx
I have written a code to create a new menu in MS Word and do some functions. I have written VBScript code in the scripting window which opens when i do Alt+F11.
I cannot send the code to the customer and have to bundle it in an exe file or some other file and send it to user.
How do i do that.
If i create an exe file when the user runs it the menu button should be cretaed in MS Word on users machine.
Thanks
Creator
The simplest options are:
Add the VBA to the normal template and you can make it run when Word loads to add your menu items.
Create an add-in from the macro project (These can be read only/password protected)
Create a managed/VSTO add-in