Solved easiest way to script GIU programs from command line

June 20, 2012 at 12:45:59
Specs: Windows Vista, n/a
I'm having some problems with settings in a GIU program which keeps on resetting to a certain value, and I'm wondering how difficult it is to get something scripted that can be run from command line, and which can take control of a "regular" program (in this case : Outlook). In this program I would like to set some settings, but the question in more general would be interesting to know since I would immediately know other places to do similar stuff.

The colser it is to Windows/DOS batching, the better. And, only with software that does not required additional investment ($$$).

Thanks


See More: easiest way to script GIU programs from command line

Report •

#1
June 20, 2012 at 13:12:30
✔ Best Answer
You have a few options:

AutoIt

AutoHotKey

VBScript SendKeys

A better solution may be to find a registry setting or config file, or GPO setting that you can modify to make your changes. Scripting GUI applications isn't exactly reliable as a lot of factors can throw them off (resolution, end-user moving mouse, etc).

Which settings are you trying to change specifically?

Tony


Report •

#2
June 20, 2012 at 14:05:26
It's actually Internet Explorer where I need to change the proxy settings, but also in Outlook I wanted to do some stuff as well.

I know I can change the registry or setting files, but I specifically would like to get this kind of thing going.

There's one tool I actually used with some success already, but I keep it for the moment, not to spoil the answers you guys have ;)


Report •

#3
June 20, 2012 at 14:25:32
IE proxy settings can be configured via GPO if you're in an Active Directory environment. Many Outlook settings can be as well, just Google each setting.

Tony


Report •

Related Solutions

#4
June 20, 2012 at 14:34:08
Yes, I know, but I also would like to use the wanted tool for application installation and such, and that is pretty hard to do via registry mod ;)

Report •

#5
June 20, 2012 at 19:42:12
Tony's suggestion of vbscript sounds like what you're aiming at. Just don't try to do anything with pointer devices! As he "pointed" out (ha ha) they suck. They are totally unreliable. Most decent and well-behaved programs have keyboard equivalents that will achieve any pointer activity. Sometimes they can be tricky to figure out though. VBscript sendkeys (in conjunction with Appactivate) will send the keystrokes into any running GUI. I wrote a visbasic program to let you do this from straight batch instead of using vbscript. It's free, source-code included, and compiled executable included, with a 'help' file. It's at:
http://pages.suddenlink.net/kitpack...
under "free downloads", called (obviously): "sendkey".

Report •

#6
June 21, 2012 at 12:03:28
I'll have a look at it, I indeed got stuck halfway in Outlook; I can open up a menu (example; the File menu), but then I can't get any function in there to operate. The coding is very simple though, that's a plus.
I earlier tried PowerShell, which allows to click on Yes/No GUI-buttons from command line, but coding is a challenge.

Report •

Ask Question