Результаты поиска

  1. zenfreak

    The name 'FileSystem' does not exist in the current context.

    Even if using System.IO; I get this error: The name 'FileSystem' does not exist in the current context. While trying: FileSystem.FileAppendString(path, htmlCode, appendNewLine); inside a custom function in ActionGroup2.cs
  2. zenfreak

    The name "instance" does not exist in the current context

    I'm trying to create a custom function and I'm getting The name "instance" does not exist in the current context when I try to use instance.ActiveTab.MouseMove. How can I use the instance from ActionGroup1 without defining a new one?
  3. zenfreak

    How Can I Export Project from ProjectMaker to CodeCreator?

    I've seen here: http://zennolab.com/discussion/threads/how-to-go-from-step-to-step.3413/#post-22049 talking about exporting templates to CC. How can I achieve this?
  4. zenfreak

    How can I get the href attribute from the "a" tag?

    Why I can't get the href attribute for the a tag like the code below? HtmlElementCollection heCol = doc.FindElementsByAttribute("div", "class", "myAwesoneClass", "text") string postAuthor = heCol.GetByNumber(5).FindChildByAttribute("a", "class", "anotherClass", "text", 0).href; What would be...
  5. zenfreak

    Using FileAppendString to create new files

    I am trying to write text to a file but I would like to overwrite the current file and not to append to it. string path = {pathToFile}; string text = "it is new line in the file!"; bool appendNewLine = true; FileSystem.FileAppendString(path, text, appendNewLine); The FileAppendString method...
  6. zenfreak

    How can I read/capture/view source of content that show only on mouseover?

    The title explains it all but just to make sure please see this animated gif below: Basically I want to be able to get the number of followers
  7. zenfreak

    How to Convert from IList to List

    I try to use 2 zenno lists in ProjectMaker to work with a custom function in OwnCode through a C# Code snippet but I get this error: I call my custom function from inside the C# block like this: and I declare my OwnCode function like this: public static string TextProcessor(string textIn...
  8. zenfreak

    Interrupt C# Code Execution from ProjectMaker

    Let's say I have a loop inside the c# code block and it takes 10 minutes to finish. How can I interrupt the running code? Right now, the only solution is to force close ProjectMaker as the stop button has no effect on current c# code execution.
  9. zenfreak

    How to create and use a simple function inside the c# Code

    I wrote a piece of code inside the C# Code box and it works fine just that I need to repeat that so I wanted to encapsulate into a function so I can create a loop. If I run this code I get this error: Using void testFunction() in Visual Studio I get no errors at all. I know it's a simple...
  10. zenfreak

    Where to find WrongCaptcha When Using CaptchaRecognition Method?

    I'm solving captchas using c# code and couldn't find any info on where I should get the wrongcaptcha value
  11. zenfreak

    The ability to convert from projectmaker to codecreator

    I think it would be a great feature to be able to convert PM templates to CC. Anyone else feels the same?
  12. zenfreak

    How to ScrollIntoView inside a UL Element That Has a Scroll Bar?

    I need to be able to scroll down to see and click the comments that are not shown. Let's take this example: If I'm using the MouseWheel, ScrollIntoView or even the MouseMove methods - it will scroll the whole page and not only inside the comments tab as I want to. Any ideas on what approach...
  13. zenfreak

    Question PopUp for xlsx file linken to table

    Today while running my template in ZennoPoster I got this popup. I would like to know what triggered this and What do the options mean Read changes from this file one time Always read the changes from file Ignore any changes of this file So I was editing my template in ProjectMaker and...
  14. zenfreak

    Emulate the BACK browser button

    The solution mentioned here: http://zennolab.com/discussion/threads/browser-back-button.2177/#post-76514 does not work for all websites so I guess this action/method could be added in future versions of zenno. Same goes for opening the page in a new tab without adding the target="_blank"...
  15. zenfreak

    Getting the attribute using -1 for document Number in c#

    1.This ProjectMaker action: should be translated to this: HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("-1").FindElementByAttribute("div", "class", "awesomeClass", "text", 0); string leftPlusButt = he.GetAttribute("height"); BUT while using -1 for the Document# in...
  16. zenfreak

    How to use custom c# function inside c# code block?

    I have the following code that cleans the text for any special chars and I would like to use it in my c# code block public static string RemoveSpecialCharacters(string str) { StringBuilder sb = new StringBuilder(); foreach (char c in str) { if ((c >= '0' && c <= '9') || (c >= 'A' &&...
  17. zenfreak

    How to iterate through a list using c#?

    I want to iterate through a list using c# in zenno. I have this code: int count = project.Lists["myList"].Count; for (int i = 0; i<count; i++){ var k = project.Lists["myList"].GetItem("i", false); } This throws an error: Invalid format of the collection numbers. ElementsInCollection: 94 Path...
  18. zenfreak

    How to Schedule Random Repeat?

    Is there a way I could schedule a template to repeat after a random timeframe? Right now I can only make it run from x to x minutes but I would like to be able to repeat from 15 to 30 minutes so I would have for example a template running after 16, 29, 15, 21 and so on. This is what I am...
  19. zenfreak

    Debugging CodeCreator

    First of all, I would like to know if there are any new/updated tutorials/documentation regarding the CodeCreator besides the ZennoLab youtube channel (https://www.youtube.com/channel/UCYRJ6AESTx0VBezxD9p9uKQ) or the webframe documentation of zennoposter located here...
  20. zenfreak

    Captcha Recognition Result Missing in CodeCreator

    I am trying to record a template with CC and after I select "This is Captcha" I cannot find the "Captcha Recognition Result" menu as is ProjectMaker This is what I am looking for:
  21. zenfreak

    How can I Trace Execution for a Project in Project?

    I am running a template that loads another template with the "project in project" option and I would like to be able to use Trace Execution for finding what went wrong for the 2nd template because when it stops it only shows the 1st template "project in project" error block.
  22. zenfreak

    How to emulate right click + open page in new tab

    How to emulate right click + open page in new tab? Setting the _blank attribute does not always work so I need a different approach such as right clicking and selecting open page in new tab. Is this possible in zenno?
  23. zenfreak

    How can I find the right document and form number

    On some pages, the same elements have either 1 or 2 or 3 as the form number. For example, sometimes I get Document 0 and Form 3 and other times the same element it's Document 0 and Form 2. I have read earlier that I should change them both to -1 but this doesn't work either as it doesn;t match...
  24. zenfreak

    Weird DOM refreshing issue

    Let's say I have a page http://example.com/page1 and from this page I click on a link that will load http://example.com/page2. If I search this last page for certain elements using Data - Parse result -> my_regex I get some elements from http://example.com/page1. If I manually check the source...
  25. zenfreak

    Mouse Method to Open a Page in a New Browser Tab

    I would like to use one of the mouse methods that will open a page in a new browser tab upon clicking on a link. Right now I'm using: instance.ActiveTab.MouseMove(points, delay, true, true); But also tried this way down here: instance.ActiveTab.MouseClick(x, y "left", "down")...
  26. zenfreak

    Button x,y coordinates changes upon scrolling

    How can I get the coordinates of a html element(button) after scrolling? I get left: 150 top: 150 but after scrolling down top is -500. How can I fix that?
  27. zenfreak

    Extended spintax syntax error

    When I'm using this spintax syntax [+{_|-}+Red|White|Blue {1|2}] I get weird results such as [+-+Red|White|Blue 1] or [+_+Red|White|Blue 2] and not the expected output. I declare the spintax value by using the variables processing box and I see the -} is red so I think it tries to interpret as...
  28. zenfreak

    How to include/run external C# script into my project

    I have a feeling this is really easy but can't get it working. I would like to be able to include and run an external c# script into my template. I don't want to use the C# code module as I want to be able to upgrade my external c# without manually changing the zenno templates.
  29. zenfreak

    How to debug C# code in ProjectMaker?

    I write my code in visual studio because I just started learning c# and I like debugging it step by step but when I move it to ProjectMaker's C# code box I see it doesn't work. Is there a way I can debug it? I don't expect a visual studio debugging type with breakpoints and stuff but at least...
  30. zenfreak

    How to Include Master Captcha Template with Project in Project?

    I have multiple templates that use the captcha module and I would like to be able to have a separate "master" captcha template that I can easily include using the project in project feature. The reason is that if something changes in the captcha configuration (for example: I decide to use a...
  31. zenfreak

    How to simulate "Paste" or "CTRL + V"

    I have a form that will not display the post button until I populate a field by paste-ing my value either by using right-click and selecting "paste" or by using CTRL+V. Take note the if I manually write the value into that field the submit button will NOT show! Weird, I know, but that's the way...
  32. zenfreak

    Is there a way to edit multiple projects at once?

    Let's say I have 50 zenno projects and all of them included a list named "Cars" and I would like to modify the file path from {-Project.Directory-}\cars\oldCars.txt to {-Project.Directory-}\cars\newCars.txt. How can I do that without opening all of them and manually editing that file path?
  33. zenfreak

    Thread consuming lots of memory

    I have a thread running and after a while, it consumes up to 3.5 GB of memory. I see this next to the firefox instance in task manager. At that point the zenno script barely does it's job and works really slow. The thread involves loading one single page multiple times. Any thoughts on how can...
  34. zenfreak

    Unable to verify emails from the Spam folder in gmail

    I am unable to verify emails from the Spam folder in gmail. After loading I don't see the verification email if in the spam folder and cannot search for it. Is there something I am missing?
  35. zenfreak

    Simple drag and drop question

    1. I would like to be able to drag and drop using my own custom X and Y coordinates. In the mouse emulation I only see Left Click, Right Click and Double Click and the only refecence to drag and drop is by using the Rize Event: drag and drop. Is there any way I can do that just by using the...
  36. zenfreak

    How can I save all the content of a webpage just like "Save Page as" in a browser?

    How can I save all the content of a webpage just like "Save Page as" in a browser saves all images, javascripts and css files?
  37. zenfreak

    How to change window size in ZP Lite 5.9.8.0

    I am trying to change my screen resolution using the C# instance.SetWindowSize(1600, 900); snippet but I'm not getting the expected results. Testing this setup in whoer[DOT]net website I get this window size 1551x781 (1600x900) and the other profile options as follows...