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

  1. zenfreak

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

    The commented lines were previous versions of that function and I did tried to declare it as public. So I guess the answer is that I cannot declare/create functions inside the C# code block but only in the OwnCodeUsings>Shared code and then call from from the C# code block? Is that correct?
  2. zenfreak

    Bugs in new version 5.11.0.0

    I don't understant, is there a fix for 5.11.0.0? What's this System.xml doing?
  3. zenfreak

    Call Zennoposter From Python

    @Stroks I had the same problem as you and ended up learning C#. I guess C# and Python are everything you'll ever need when it come to programming.
  4. zenfreak

    Bugs in new version 5.11.0.0

    Having a similar issue as @PHaRTnONu. Check this out: http://zennolab.com/discussion/threads/how-to-use-custom-c-function-inside-c-code-block.37049/#post-277067
  5. zenfreak

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

    You are right! With the 10.7 version it does work indeed! Smashed my head for hours trying to get this working - I thought it was my fault.
  6. zenfreak

    Issue with KeyCaptcha

    having the same problem here: http://tinyblogging.com Any updates on this? PS. It's funny that I have just purchased CapMonster specifically for keycaptcha and now I see it doesn't work.
  7. 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...
  8. zenfreak

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

    Take this url for exampe: https://plus.google.com/communities/113678595147618762604 but you will need to scroll down until you find a post that has more than 7 comments or so and then click on the comment field so it will open up the scrolling window.
  9. zenfreak

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

    So basically I need to add the references (Global.dll, ZennoLab.CommandCenter.dll, ZennoLab.Emulation.dll, ZennoLab.InterfacesLibrary.dll) to my project. Today I tried going even further and managed to do the following: I found this great library for converting docx files to html -...
  10. zenfreak

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

    he.Focus(); Doesn't seem to have any effect either ...
  11. zenfreak

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

    How can I get the x and y coordinates for the elements in the second window? Is there any way I can get that besides get leftinbrowser and topinbrowser?
  12. 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
  13. zenfreak

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

    Now it makes sense, thank you! For those who didn't understand, my initial code should be: HtmlElement he = instance.GetTabByAddress("page").FindElementByAttribute("div", "class", "awesomeClass", "text", 0); string leftPlusButt = he.GetAttribute("height");
  14. zenfreak

    The ability to convert from projectmaker to codecreator

    And/or the ability to run CC .zpproj from ProjectMaker and .xmlz from CodeCreator. I think a "bridge" between the two would be amazing.
  15. zenfreak

    Captcha Recognition Result Missing in CodeCreator

    Still having this issue in 5.11.0.0 Am I doing it wrong? I'm currently solving this by manually addind the captcha response code like this: he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByTag("form", 0).FindChildByName("recaptcha_response_field")...
  16. 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?
  17. zenfreak

    Discussion - new version 5.10.7.0

    Great news, thank you!
  18. 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...
  19. 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...
  20. zenfreak

    How to emulate right click + open page in new tab

    What do you mean by you can add a rightclick on the link? If you mean adding target="_blank", that was already been discussed and it doesn't work you should use Actions sequence I don't get what you tried to explain here - you just showed how to add and activate a new tab and I don't see how...
  21. 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"...
  22. zenfreak

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

    This is where most of my answers have been solved: http://zennolab.com/discussion/threads/how-to-use-custom-c-function-inside-c-code-block.37049/ thanks to @LaGir
  23. zenfreak

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

    What is the current version of C# supported by zenno and is it that hard for the developers to upgrade zenno to the latest version of C#? I was trying to replicate the debugging method described here...
  24. zenfreak

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

    @LaGir I have basically begged a few days ago for this info you have provided - http://zennolab.com/discussion/threads/how-to-include-run-external-c-script-into-my-project.36319. You just made my day :-) Don't want to be a pusher or anything but there's only one more thing I need in order to...
  25. zenfreak

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

    After successfully using my RemoveSpecialCharacters function with OwnCode I tried to get the same result with other pieces of code that I was using in my c# blocks and tried this: And getting this: Do I need to initiate the instance somewhere in the OwnCodeUsings because when using the...
  26. zenfreak

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

    @Nick Your solution is what I'm doing right now but because I need to use that code over and over again in different parts of my script I needed that as a function that I can call whenever I need. Pretty much what LaGir did in his example. @LaGir This is exactly what I was looking for, you...
  27. zenfreak

    How to iterate through a list using c#?

    The weird thing is that GetItem expects a string value instead of an integer (as every programming language would expect for a list item index) so converting it to string solved the problem i.ToString();
  28. zenfreak

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

    @Nick When you say to remove the first and last string you mean the first and last line from my code? If yes how can I use it like this: RemoveSpecialCharacters(myString)? And by saying paste a value of one of the variables inside StringBuilder you mean that I should be using...
  29. 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...
  30. 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' &&...
  31. 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...
  32. zenfreak

    How to emulate right click + open page in new tab

    @PHaRTnONu I think this is the link you were talking about https://help.zennolab.com/en/v5/zennoposter/5.10.1/webframe.html#topic376.html but I don't see how can you emulate a CTRL+click using a KeyEvent
  33. 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...
  34. 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...
  35. 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:
  36. zenfreak

    Weird DOM refreshing issue

    It seems that the page I was working on it's changing it's DOM from time to time so this is what caused this strange behavior.
  37. zenfreak

    How to emulate right click + open page in new tab

    True, but changing the controller scripting is just not worth it - or at least not for me having no experience with js scripting. On the other hand, when I CTRL + Click the link from my browser, it opens normally in a new tag and this is what I was trying to emulate with zenno. This should be a...
  38. zenfreak

    How can I Trace Execution for a Project in Project?

    @sMax Thank you for your response but I'm already using the "Trace execution" option in ZP just that my template it's running another template using the project in project and I want to trace the execution of the 2nd project. Example: I have project.xmlz running in ZP. At some point it will...
  39. 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.
  40. zenfreak

    How to emulate right click + open page in new tab

    @PHaRTnONu Tried your example and if you isolate the html code like you did it works well indeed but if you try the same idea on the actual plus.google.com page you'll see it doesn't work anymore. Please see the attached example.
  41. zenfreak

    How to emulate right click + open page in new tab

    Let's take this link for example: https://plus.google.com/communities/100481850057867813346. If you add target="_blank" to any a tag it will open in a new window as it should BUT if you add the _blank attribute to the a tag of a profile link such as ./106189944370624200140 it will open the new...
  42. zenfreak

    How to emulate right click + open page in new tab

    C'mon guy .. there must be a way - this is a simple task to accomplish. I need that the website will see that I have clicked the link and opened the page in a different tab. Please note that the website in question tracks the mouse movements and click as it has attributes such as mouseenter and...
  43. 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?
  44. zenfreak

    How can I find the right document and form number

    Yes, tried setting them both to -1 but when I do, I cannot match the elements anymore.
  45. zenfreak

    Mouse Method to Open a Page in a New Browser Tab

    Is there any other way to do this as I found some elements that do not open in a new window even if the target is set to _blank <a __is_owner="true" id="ow16" data-focusid="25" target="_blank" jscontroller="I150Fe" jsaction="click:Cw6dad(preventDefault=true); mouseenter:d2MfZc...
  46. 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...
  47. 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...
  48. zenfreak

    Mouse Method to Open a Page in a New Browser Tab

    @copper12 I know that documentation but it's not helping me as I'm making the click using instance.ActiveTab.MouseMove. I don;t see how can I find info on how to open a new window using your link. @rostonix I managed to use your technique of adding the _blank attribute but I've done that by...
  49. 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")...
  50. zenfreak

    Button x,y coordinates changes upon scrolling

    Tried leftinbrowser and topinbrowser and it was exactly what I was looking for. Thank you!