FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Regwrite

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
matabrown
Newbie


Joined: 20 May 2006
Posts: 8
Location: Sheffield, UK

PostPosted: Sun Jan 21, 2007 10:18 pm    Post subject: Regwrite Reply with quote

Hi

I am currently trying to write to the registry after entering the text value i have this so far where am going wrong!




var textField = CreateTextFieldDialog( "settimer_");

textField.name = "Timer";
textField.title = "Time till Shutdown";
textField.prompt = "Minutes:";

theTerminal.Push(textField);


function settimer_OK(textfield)
{
if (textfield.value == "")
{
return;
}
var PDPath = null;
try
{
var wsh = new ActiveXObject("WScript.Shell");
RegWrite("HKLM\SOFTWARE\Amp Soft\WinOFF", "Minutes Interval", "REG_DWORD", textfield.value);
}
catch( e )
{
Log( "error = " + e.description );
}
}




Thanks in advance
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Mon Jan 22, 2007 12:25 am    Post subject: Reply with quote

Check your backslashes. You need "\\".

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group