automation

Changing keyboard layout on application focus

Hi Everyone As everybody knows the en-US Keyboard-layout is the best one for programming. So I'd like to use it in my IDEs. But since I live in a non-en-US country I need the de-CH layout for all other applications. Now I wonder if it is possible to set the layout depending to which application currently has the focus. If that is possib...

Mercurial automated deployment

Hi all, Im in the process of looking for a way to streamline the deployment of one of our php web applications (if it works on this ill roll it out to other apps). I quite like the look of this: http://www.springloops.com/, but its SVN and were using mercurial. Unfortunately we have no shell access to our current server, so somethin...

How to automate creation of new XCode targets from Applescript/Automator/Shell Script

I am currently working on a way to automate the process of adding new targets to my XCode projects. One target has to be added to multiple XCode projects and each target in the different project needs the same source files to be added, same groups to store the source files in the XCode project, and the same build settings. Doing this man...

How to get MS Word templates directory for another user?

I'm using the following code to get the path where Word stores its templates: WordTemplatePath:=WordApp.Options.DefaultFilePath[$00000002]; The problem is that this returns the path for the actual, logged-in user. Is there a way to get the path for another user of the same Windows instance? I need it so my installer program can inst...

Can a program that controls IE detect if a HTTP 30x code is encountered?

I am trying to control an InternetExplorer.Application via the COM interface, using Perl, Win32::OLE, and information from MSDN. My goal is to get as good an idea as possible about what IE is doing. (Related to this question.) IE uses events to notify my program when it has finished various stages of processing a certain URL (NavigateCo...

Automating Excel macro using python

I am using python in Linux to automate an excel. I have finished writing data into excel by using pyexcelerator package. Now comes the real challenge. I have to add another tab to the existing sheet and that tab should contain the macro run in the first tab. All these things should be automated. I Googled a lot and found win32come to d...

How to simulate a mouse click on a UIWebView in Cocoa for the iPhone?

I'm trying to setup automated unit tests for an iPhone application. I'm using a UIWebView and need to simulate clicks on different links. I've tried doing this with JavaScript, but it doesn't produce the same result as when I manually click on the links. The main problem is with links that have their target property set. When you manual...

How to programmatically deactivate the AirPort?

I want to make a small utility to programmatically deactivate the AirPort of my mac. I have networking problems which couldnt be resolved by expensive experts. I need to deactivate and reactivate the mac AirPort once every half hour. So a little utility which does that automatically would be great. I think I wouldn't need an UI for this...

vim autopopulate file

Is it possible to have VIM auto populate a file based on the extension? For example, when I open a new .sh file, I would like VIM to automatically type #!/bin/bash as the first line. (This example simplified down to the essentials) ...

SSIS: Way to handle hot folder items in parallel?

We have eight Xeon (i7) cores and 16 gig of RAM on our SSIS box. We have about 200 image files we want to convert using a command line utility every day. Currently the process is using Adobe Photoshop and droplets (very manual, taking upwards of two hours a day) Using SSIS hot folders, is there a way to execute up to eight conversions...

Javascript (and HTML rendering) engine without a GUI for automation?

Are there any libraries or frameworks that provide the functionality of a browser, but do not need to actually render physically onto the screen? I want to automate navigation on web pages (Mechanize does this, for example), but I want the full browser experience, including Javascript. Thus, I'd like to have a virtual browser of some so...

Windows Process Memory Viewer/Extracting data from a chart program

I've got a windows app which draws charts from data points but there is no way to export the data points into a portable format. I tried using AutoIt to access the form controls values but they were concealed by draw functions. I thought with a memory viewer I might be able to view whatever container is storing the chart values, and extr...

Can I add a command to make ReSharper repeat last test run to the right click context menu in visual studio?

I'd like to add a context menu item to allow me to repeat resharper's last test run, similar to the one that test driven.net adds. Is this possible? ...

Block all other input to an application and control it from a wrapper in Java

I have a windows application which has a complex GUI that I would like to hide from users. In order to do this, I would like to create a wrapper with an extremely simple interface that overlays this application and automates a number of actions when a user clicks a single button on the wrapper. (I hope "wrapper" is the proper term.) I...

test automation tools avaiable for blackberry and iphone

Hi, I am new to mobile test automation. Kindly suggest test automation tools available for blackberry and iPhone. ...

Encoding audio in cd quality in Silverlight 4 using com automation

I want to encode an audio file (e.g. pcm wav) in music quality (wma, mp3, ogg, but not speex) using any in windows (xp, vista, windows 7) availble objects. Is any com objects (like windows media) available without an additional installation? Is there any examples how to use them to encode an audio? ...

Any form autofill for 'Developers'?

Hi all, I have looked at some autofills for Firefox. But they are not designed with the developers' needs in mind. General internet surfers will need a tool to fill in many different forms with constant values for each form. Developers need exactly the opposite, when you want to test a part of your app you'll need to fill a single (or a...

When should automation begin?

I want to start implementing automation. I just don't know if this would be a good use of resource. The application is growing at an exponential rate but i don't know at what point does automation benefits testing. Can you give me reasons when you would automate even though you have manual testers? ...

pass elevated permissions to out-of-process server via Activator.CreateInstance

I have a process running with elevated permissions (defined through manifest file /asAdministrator) and would like to launch an out-of-process Visual Studio instance with elevated permissions too. Currently VS is launched for OLE Automation purposes with the code below: Type type = System.Type.GetTypeFromProgID(dteVersion); DTE dte = (D...

integrate a custom scripting language to a documentation system?

Hi, I am working in a project where we are using a custom scripting language. I am looking for a documentation system such as Doxygen so that I could process the many script files that have been developped with this scripting languages. My basic needs are: to generate automatic documentation, to extract the calls graphs and establish ...