Issues after upgrade

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18
After upgrading from 5 to 7 I got few issues:
1. Cannot send captcha via decaptcher dll. Is only putting url in "more options" in setting necessary? Since 7 I cannot send them both in project maker and main app.
2. I am no good with C# but any reason why it stopped working?:

C#:
var path = @"{-//-}\Resources\list_" + project.Variables["activeproject"].Value + ".txt";
string str = Macros.FileSystem.FileGetLine(path,"0", false);

string regex = ".*\n";
var reg = new System.Text.RegularExpressions.Regex(regex,  System.Text.RegularExpressions.RegexOptions.None);

System.Text.RegularExpressions.MatchCollection matches = reg.Matches(str);

foreach (System.Text.RegularExpressions.Match match in matches)
{
List<string> tmp = new List<string>();
System.Text.RegularExpressions.GroupCollection groups = match.Groups;
tmp.Add(groups[0].Value);
project.Lists["projectdata"].Add(groups[0].Value);
}
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113
What error do you get in both cases?
PM_log.png
 

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113
{- -} these brackets mean internal variable macro in zennoposter
don't recommend using such construction
 

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 182
Баллы
113
C#:
var path = project.Path + @"\Resources\list_" + project.Variables["activeproject"].Value + ".txt";
So project.Path will give you project directory.
 
  • Спасибо
Реакции: VladZen

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 182
Баллы
113
{-//-} was pointing to zennoposter directory (Progs), not project directory.
Ok, try this then. I would suggest using paths to project directory though, basically something other than program files. As this folder can make problems in general.
C#:
var path = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + @"\Resources\list_" + project.Variables["activeproject"].Value + ".txt";
 
  • Спасибо
Реакции: myndeswx и krisztos

myndeswx

Client
Регистрация
15.05.2017
Сообщения
407
Благодарностей
92
Баллы
28
Ok, try this then. I would suggest using paths to project directory though, basically something other than program files. As this folder can make problems in general.
C#:
var path = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + @"\Resources\list_" + project.Variables["activeproject"].Value + ".txt";
Thanks @lokiys ! Maybe you could help figuring out the traces folder for the running project?
For example mine is -
C:\Users\tomaj\OneDrive\Dokumenter\ZennoLab\Traces\threadLoger1.zp
So there are many things to guess, like the drive, user name, computers language , and projects name itself

Maybe you've got some ideas? )
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 182
Баллы
113
Thanks @lokiys ! Maybe you could help figuring out the traces folder for the running project?
For example mine is -
C:\Users\tomaj\OneDrive\Dokumenter\ZennoLab\Traces\threadLoger1.zp
So there are many things to guess, like the drive, user name, computers language , and projects name itself

Maybe you've got some ideas? )
You should be able to get all info. Unfortunately not in my head right now. But google search could help. ;-)
 
  • Спасибо
Реакции: myndeswx

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)