/build/static/layout/Breadcrumb_cap_w.png

VBS help needed ...!!! Any help would be appreciated. Thanks !

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   [ + ] Show comments

Answers (4)

Posted by: dj_xest 12 years ago
5th Degree Black Belt
1

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.


Comments:
  • 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. - dj_xest 12 years ago
  • 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 :-) - aridutt007 11 years ago
Posted by: olditguy 12 years ago
Second Degree Blue Belt
1

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.


Comments:
  • Thanks for your help :) - aridutt007 11 years ago
Posted by: piyushnasa 12 years ago
Red Belt
1

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.


Comments:
  • Thanks for your help ... - aridutt007 11 years ago
Posted by: pjgeutjens 12 years ago
Red Belt
0

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


Comments:
  • Thanks for your help :) - aridutt007 11 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ