FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Scripting help, please.

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


Joined: 26 Aug 2009
Posts: 7

PostPosted: Thu Aug 27, 2009 12:38 pm    Post subject: Scripting help, please. Reply with quote

Im new in the Scripting Area, and i tried to a VERY simple one, just running a program.

I should work this way (shouldnt it?):

[code:1]var wsh = new ActiveXObject('WScript.Shell');
if (wsh) {
wsh.Run("C:\Windows\system32\notepad.exe");
}[/code:1]


It should just open notepad (in this case) but somehow it doesnt...


~Master
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Thu Aug 27, 2009 2:17 pm    Post subject: Reply with quote

I think you figured this out already, but you need to use double-\\, as single-\ works as an escape character in JScript.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Master
Newbie


Joined: 26 Aug 2009
Posts: 7

PostPosted: Thu Aug 27, 2009 6:03 pm    Post subject: Reply with quote

[quote="salling"]I think you figured this out already, but you need to use double-\\, as single-\ works as an escape character in JScript.

Best.
--
Jonas[/quote]

Well i tried that, doesnt work either...
It now looks this way:

[quote]var wsh = new ActiveXObject('WScript.Shell');
if (wsh) {
wsh.Run("C:\\Windows\\system32\\notepad.exe");
}[/quote]


EDIT: Fix'd it, Problem was, Clicker thought the Script didnt exist, but it showed on my Mobile, no wonder it didnt do anything :)
Back to top
View user's profile Send private message
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