Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: pce0
  • Order by date
  1. pce0

    Update textarea when textbox focus changes

    Ok, many thanks for the advice.
  2. pce0

    Update textarea when textbox focus changes

    Hi, I have an HTA that displays multiple textbox's for user input and a readonly textarea that I want to display a description of the textbox selected. What I'm looking for is the code that will allow me to change the contents of the textarea when the textbox focus changes. For example, when...
  3. pce0

    Problems terminating HTA script

    Yes this is just a cut-down version of the full script. Maybe I have an 'environmental' issue on my test machine then! Thanks for trying.
  4. pce0

    Problems terminating HTA script

    beg your pardon, yes by 'script' I guess I actually mean the HTA application
  5. pce0

    Problems terminating HTA script

    sorry but I have no idea what you mean by this comment!
  6. pce0

    Problems terminating HTA script

    Tried adding the <HTA:Applicaion> tag but still getting the access denied error... What is happening is that the script runs, and terminates ok with the self.close, but the access deined error then occurs when I rerun the script.?
  7. pce0

    Setting a session environment variable??

    You can use the code below to obtain an existing environment variable: set objShell=CreateObject("wscript.shell") strTemp=objShell.ExpandEnvironmentStrings("%temp%") I believe there is a related function to set a variable aswell - just not sure exactly what it is !
  8. pce0

    Problems terminating HTA script

    Thankyou for your reply, unfortantley this has not resolved the error :-( I still get an access denied error referencing the line of the resizeto code.
  9. pce0

    Problems terminating HTA script

    Hi all, What is the correct way to cleanly terminate an HTA application/script? I am using self.close however when doing so in the script below I get an access deined error when rerunning the HTA , I have noticed this only happens with the window.resizeto method (i.e. if this line is removed...
  10. pce0

    HTA Help - Dynamically create text box?

    Not to worry - sussed it ! The code below allows me to obtain the updated textvalues and apply them back to the corresponding reg string! set dvalue = document.getElementsByTagName("INPUT") for each ivalue in dvalue objReg.setStringValue HKLM,strKeyPath,ivalue.name,ivalue.value next
  11. pce0

    VBscript to Restart Computer

    Take a look at this Microsoft page for an example script to restart a computer: http://www.microsoft.com/technet/scriptcenter/scripts/desktop/state/dmstvb07.mspx You could wrap this into a script with a popup message, something like this: host="." set oshell =...
  12. pce0

    HTA Help - Dynamically create text box?

    Your absolutley right, it's only because I know that the regkey I'm querying will only ever contain string values that I'm taking this (lazy) approach! Many thanks for your continued help - I'm learning a lot ! Maybe your could advise how I now go about obtaining the updated values from the...
  13. pce0

    HTA Help - Dynamically create text box?

    Many thanks for the script - this has been most usefull! It was the enumvalues method I wanted though as its the values of subkeys that I want the user to be able to change (apologies for any confusion). I now have the following script that obtains the values of each subkey and puts them each...
  14. pce0

    HTA Help - Dynamically create text box?

    Do you have example usage of createElement() and appendChild() ? - apologies but I have littl experience with HTLM/HTA ! Thanks
  15. pce0

    HTA Help - Dynamically create text box?

    Thanks for the response, still struggling with this though... The 1st line of the code below obtains a reg string value and puts it in the var strValue, I want the second line to create a textbox populated with this value, however all I'm getting is a textbox populated with the string '&...
  16. pce0

    HTA Help - Dynamically create text box?

    Can anyone tell me if it is possible to dynamically create text box's using HTA? I have this piece of vbscript that writes out the subkeys and their values from a specified part of the registry: const HKLM=&H80000002 set...

Part and Inventory Search

Back
Top