Scripting

Facebook Twitter
WebDev

vba - detect event on IE from visio vba - detect event on IE from visio Not really very easy unless you have access to the HTML content in IE as well, but you could use a VBA class which implements a "withevents" private variable to capture a reference to a particular element on the page, and which has an event handler to respond to browser-based events. Eg. in a class "clsHTML": Private WithEvents el As MSHTML.HTMLInputElement Public Sub SetElement(t As MSHTML.HTMLInputElement) Set el = t End Sub Private Function el_onchange() As Boolean Debug.Print "captured change: value = " & el.Value End Function In other code, create an instance of the class and call "SetElement" using a reference to an element on the page in IE: Dim objHTML As clsHTML 'global variable Sub TestEvents() Dim IE As Object 'set up your IE reference.... Set objHTML = New clsHTML objHTML.SetElement IE.document.getElementById("tester2") Debug.Print "set capture"End Sub
vbscript MessageBox

A VBScript Utility To Add Users To a Group
Scripting Active Directory Users using VBScript Scripting Active Directory Users using VBScript Monitor servers, workstations, devices and applications in your network
Ways to Launch your application | Quick Test Professional(QTP)
Print Server Scripting using VBScript Monitor servers, workstations, devices and applications in your network Print Server Scripting using VBScript
VBScript Functions Administrative RoutinesAdministrative Routines to help manage data Browser Function Returns the http_user_agent server variable IsCookieReady Function Determines if the current browser allows cookies IsFrameReady Function Determines if the current browser is able to displayed framed pages IsJSReady Function Determines if the current browser is able to run client-side javascript IsVBSReady Function Determines if the current browser is able to run client-side VBScript MkArchive Function Creates a zip archive of a specified files on the server RegDelete Statement Deletes Keys and Values from the Windows Registry RegRead Function Reads Keys and Values contained in the Windows Registry RegWrite Statement Writes Keys and Values into the Windows Registry SessInfo Function Returns a two-dimmensional array containing session variable names and their corresponding values Shell Statement Executes a DOS command on the server Spider Object Parses and saves HTML Meta Tag, head and or body data VBScript Functions
VBScript Tools by Bill James VBScript Tools by Bill James VBScript (Visual Basic Scripting) is a handy tool for File, Drive and Registry maintenance in Win9x. All you need to run most .vbs files is WSH (Windows Script Host), which is included with Win98 and WinME, and can be added to Win95 by means of a free download from Microsoft (Internet Explorer 4+ required.) Some of these scripts will also work with WinNT and Win2K, but are not completely tested for those OS's. Windows Script 5.6 has now been released and has many useful new additional features.
sendkeys sendkeys Send one or more keystrokes to the active window as if they were typed at the keyboard. This method is similar to the VB SendKeys method. Most keys can be represented by the character of the key itself. E.g, the key sequence FRED can be represented simply by "FRED". Some special keys, such as the control keys, function keys etc are encoded in a string enclosed by {braces} See the table below To specify keys combined with any combination of SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following:
Downloads
Run an external Command. Syntax objShell.Run (strCommand, [intWindowStyle], [bWaitOnReturn]) Key objShell : A WScript.Shell object strCommand : The Command to be executed intWindowStyle (Optional) : Int value indicating the appearance of the program's window. Not all programs make use of this. bWaitOnReturn : Wait for the command to complete before continuing execution of the wsh script. If bWaitOnReturn is set to TRUE, the Run method returns any error code returned by the application. If bWaitOnReturn is not specified or FALSE, this method immediately returns to script execution rather than waiting on the process termination (and returns an error code of 0) Specifying the bWaitOnReturn parameter allows you to run programs synchronously (one at a time). VBScript .Run VBScript .Run
VBScript in a nutshell VBScript in a nutshell Paul Lomax, author of O'Reilly's VB & VBA in a Nutshell and a coauthor of VBScript in a Nutshell, is an experienced VB programmer with a passion for sharing his knowledge--and his collection of programming tips and techniques gathered from real-world experience. Matt Childs is a vice president with Integrity Solutions Inc., one of Alaska's leading custom software development companies. Matt is responsible for overseeing all in-house development, and over the past year has worked with the State of Alaska and Alaska's two largest telecommunications companies. Matt has worked in the information technology field for nine years, and has been a VB programmer since Visual Basic 3. During most of his early career, Matt was an information technology manager for a large transportation company, where he developed custom software solutions and systems integration for the company's largest clients.
I designed this page as a mini site map for printer logon scripts. In this section I will help you create VBScripts, which map printers and also set the default printer on Windows networks. You may be surprised by the sheer variety of Windows logon scripts that control printing. Along the journey, I will provide examples of VBScript methods. For example, AddWindowsPrinterConnection, which connects a shared printer to an Windows 7, Vista or even XP clients. Logon Script Printer - AddWindowsPrinterConnection VBScript Method Logon Script Printer - AddWindowsPrinterConnection VBScript Method
Executive Summary: Once you learn the basics of VBScript, you can accomplish almost anything you want with ease. Armed with a browser and an Internet connection, you can find someone who has written code that collects the information you need or that sets the setting that you need to configure. The real trick is figuring out how to put all the disparate parts together into a cohesive whole while circumventing some of VBScript's limitations. For example, you can find scores of Web sites that provide code that determines how much free space is on a computer. How to Multi-Thread VBScript Scripts How to Multi-Thread VBScript Scripts
An operator is a symbol applied to data values that causes the computer to carry out a specific operation on that data . In VBScript, operators are used to perform an operation. For example, an operator could be used to assign a value to a variable. An operator could also be used to compare two values. Below is a listing of VBScript operators and a brief description of them. Working with operators in VBScript

Flex/ActionScript/C++/Scratch/Alice/C#/Java/JavaScript/XML Programming, by...

Baldwin@DickBaldwin.comhttp://www.dickbaldwin.com If you find the links to any of my tutorials broken, you might try either: Going to Google or Bing and searching the web for pages having the same title, or Going to More articles by Richard G. Baldwin at Developer.com and searching that page for the tutorial by title.