AutoHotkey Community

It is currently May 26th, 2012, 2:47 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: June 13th, 2005, 4:23 pm 
Offline

Joined: June 9th, 2005, 4:20 pm
Posts: 21
I am embedding some command lines into an AHK script .. from a tested batch file

In this particular line (containing a regular expression)

RunWait, %COMSPEC% /c type c:\temp\input.txt | TCL "ReplStr '\s*:\s*\w+;' ',' ',\s+' ', ' /r " > c:\temp\output.txt ,, hide

I get this error message displayed .. when running the script


Error at line 214.
Line text ' /r " > c:\temp\output.txt ,,hide
Error: This variable or function name contains an illegal character.
The program will exit.



Any ideas on what illegal character might be causing this error?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 13th, 2005, 7:09 pm 
Online

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
You need to escape the commas

Try this:

Code:
RunWait, %COMSPEC% /c type c:\temp\input.txt | TCL "ReplStr '\s*:\s*\w+;' '`,' '`,\s+' '`, ' /r " > c:\temp\output.txt ,, hide

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 13th, 2005, 7:19 pm 
Offline

Joined: June 9th, 2005, 4:20 pm
Posts: 21
thanks! now working .. that was puzzling me ..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2008, 8:04 pm 
I'm trying to run a script to loop a webpage but I get the same error trying to open the .AHK file

Error on line 5 "The following variable containts an illegal character:"


Here is my script s if any one could help, please tell me what is wrong with the code,

Code:
loop
{
loop, 50
{
ControlSend, , {F4}, http://mwdirect.zynga.com/mwms/jobs.php?tab=1&job=5&action=Do%20Job&zy_viewer_id=88977911&zy_viewer_name=KeViN&zy_viewer_first_name=KeViN&zy_viewer_last_name=&zy_viewer_pic_url=http%3A%2F%2Fc3.ac-images.myspacecdn.com%2Fimages02%2F32%2Fs_0536cb5c66704a3cb6db467125298122.gif&zy_viewer_prof_url=http%3A%2F%2Fwww.myspace.com%2Fkevin_barnett&zy_sig=bfbc05bb5887b6a1bcfd6ad1d0575899&zy_is_ajax=true&zy_cn_sig=eaef732dbaef00f4d6cda079fa559793&r=0.1132481275126338
Sleep, 300
}
Sleep, 5000
}
pause::pause


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2008, 8:35 pm 
Offline

Joined: March 10th, 2008, 12:55 am
Posts: 1907
Location: Minnesota, USA
Guest, use a name and use [code] blocks.
http://www.autohotkey.com/forum/viewtop ... ht=#228695
read this page and your problem=fix, Guest

_________________
rawr. be very afraid
*poke*
Note: My name is all lowercase for a reason.
"I think Bigfoot is blurry, that's the problem. It's not the photographer's fault, Bigfoot is blurry. So there's a large, out-of-focus monster roaming the countryside."


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2008, 10:53 pm 
Offline

Joined: November 3rd, 2008, 10:43 pm
Posts: 1
Still wont work for me, I have no Idea what I'm doing wrong. I'm trying to do the same thing as Micha.
I appreciate all the help you can give me on this and sorry for not using the code here is my new code and it still will not work, I add ` and yet still no IE will pop up, if that is what is supposed to happen. The script works but it isn't preforming what was meant for it to do. Could you please tell me what is wrong with my script? Much obliged.

Code:
 loop
{
loop, 50
{
ControlSend, run,C:\Program Files\Mozilla Firefox\firefox.exe http://mwdirect.zynga.com/mwms/jobs.php?tab=1&job=5&action=Do`%20Job&zy_viewer_id=88977911&zy_viewer_name=KeViN&zy_viewer_first_name=KeViN&zy_viewer_last_name=&zy_viewer_pic_url=http`%3A`%2F`%2Fc3.ac-images.myspacecdn.com`%2Fimages02`%2F32`%2Fs_0536cb5c66704a3cb6db467125298122.gif&zy_viewer_prof_url=http`%3A`%2F`%2Fwww.myspace.com`%2Fkevin_barnett&zy_sig=bfbc05bb5887b6a1bcfd6ad1d0575899&zy_is_ajax=true&zy_cn_sig=eaef732dbaef00f4d6cda079fa559793&r=0.24719488294795156
Sleep, 300
}
Sleep, 5000
}
pause::pause


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: G. Sperotto, Google [Bot], patgenn123, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group