I have an application let's say the calculator(on start menu) in windows 7, and I want to go to View button and change from standard to scientific mode without opening the calculator but using VBScript; so, I am wondering if it is at all possible, without tampering or accessing the core coding of the application. Actually I have an application(different than calculator; once I get to know that it is possible then I will explain about the application I have) where I am asked to do this kind of work, but I am sure if it is possible in the first place, if it is possible then what are the variables I should be looking for ? I am not really good with VBS and new to this so need help. 

0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



First thing first on any application settings. Consult the vendor by searching their website, google or even call them and see if it´s possible to have some manuals to configure it. You might be surprise that some of them have plenty of resources.

Next thing is trying your luck by capturing that settings using some lightweight capturing tools like InstallRite or Appdeploy repackager. I am sure you know how to do this.

Hope these help.

Answered 04/12/2012 by: dj_xest
Fifth Degree Black Belt

  • In the end, you might never need the vbscript because most of the settings can just be found in tweaking the registy or file and you can simply put them in your package.
  • Thanks for your help ... I tried everything but could not do much, I called up the company and they said it's not possible because it is hard coded possibly in some .dll files so to change that I have to rewrite the entire program, which is next to impossible, I did not believe them because I was sure it was making some new registries, so, I checked and found out every time the application gets launched it refreshes the registry, so , even me grabbing that registry and calling it from VBS does not help much as the next time the application launches it refreshes the old registry .... so, I have lost my hope on this and already explained my company the situation , but if you still have a better idea please lend me so that I can try .... Thanks :-)
Please log in to comment

The reg key is HKCU\Software\Microsoft\Calc\layout. It's  value is a dword where 0 = Scientific, 1 = Standard, 2 = Programmer, 3 = Statistics.

To change the value using VBS

Set wshShell = CreateObject("WScript.Shell")

wshShell.RegWrite "HKCU\Software\Microsoft\Calc\layout", aVALUE, "REG_DWORD"

where aVALUE is one of the values for the calc type, e.g aVALUE = 2 will set the calc to scientific for the current user.

Answered 04/12/2012 by: olditguy
Second Degree Blue Belt

Please log in to comment

Do and set the change. Take a snapshot of this process maybe from a free tool InstallRite and then see what change it has made. use that in your VBScript.

Answered 04/13/2012 by: piyushnasa
Red Belt

Please log in to comment

One word: ProcessMonitor

Run it in the background while making the change, and look at the log to see what files/registry keys were changed

Answered 04/12/2012 by: pjgeutjens
Red Belt

Please log in to comment