AutoIT - Check if Javascript is present - autoit

I am working on a program in which it Automates the functionality of a website. I came across an issue wherein I want to see if a JavaScript function is present on a page.
javascript:showBranchLPA(0)
If that is present on the page it'll call out another function. Any ideas? Any help would be appreciated. Thanks in advance

Use _IEDocReadHTML, and then check the source using stringinstr()

Related

Is there a way to find the R code from a shinyapp.io link?

I recently saw a really well developed shinyapp and was wanting to know the code behind certain aspects of the app. Was wondering if there was a way to find out the code, or would I have to directly contact the author?
Thanks!
You have to contact the author. No other option. At max you can look CSS and JS files from source of the page.

Dynamics CRM 2015 Creating a button to start a workflow

Hi I am currently trying to follow this guide:
https://ribbonworkbench.uservoice.com/knowledgebase/articles/132235-create-a-workflow-short-cut-ribbon-button-no-code
So that I can create a button on the ribbon in CRM to start a workflow. The idea being that the user will fill in part of the form and then request approval.
However I have ran into an issue which is that at one point I have to define the library for the command actions to use and the guide state that we must use the "/_static/_common/scripts/RibbonActions.js" and the "/_static/_forms/form.js" library.
However not having done this before I have no idea how to include the library in the solution, so nothing appears on the library selection screen. I have tried searching how to complete this step but to no avail. Any help would be greatly appreciated.
Thank you.
What I understood is that you are trying to call a workflow from javascript on click of a ribbon button. If you have any reference javascript assembly then both of them should be referred for the javascript method to work as expected.
Lets assume we have two different javascripts files like reference.js and actual.js And the button is supposed to call a method button_click from actual.js. In such a case we will be adding two commands as follows:
Library:reference.js and FunctionName:isNaN
Library:actual.js and FunctionName:button_click
This way the reference javascript also will be loaded and the method should be working properly. Hope I was able to address your query. Let me know if you have any questions or still the problem persists.
There is a possibility to enter plain text to library field instead of choosing from a selector.

How can we stop publishing of a structure group with help eventing?

I want to stop publishing of structure group with the help of eventing? Please share some code.
If what you want is to stop users publishing Structure Groups (or Publications) from the GUI then maybe you could use a GUI extension. Jaime Santos has a great post on Hiding commands in the GUI:
http://jaimesantosalcon.blogspot.com/2011/10/2011-sdl-tridion-gui-extensions.html
Can I suggest that you open the Structure Group properties page, and just un-check the "Publishable" check box? Or is there another reason you want to achieve this with an event?
You really need to elaborate your questions. I don't know what exactly you want to do, but I suspect that you want to remove the possibility to publish entire structure groups?
If you want to remove items to be published you need to write a Structure Group Resolver that does this for you.
When you elaborated your question I can share some relevant code.
We have done this by using GUI extensions.

livegraph applet class

I want to embed live-graph.org jar into an applet and load via a webpage.
Can someone give me an example on how to call LiveGraph.application(); in an applet?
Thanks
So far I've been using the code given in following links. I'm not sure if I'm doing it right, so feel free to correct me.
http://www.live-graph.org/javadoc/WriterAPI/src-html/org/LiveGraph/demoDataSource/LiveGraphDemo.html
I am making two another classes that are used in a livegraph demo. Actually I don't want to generate random numbers--right now I just want the application to run.
http://www.live-graph.org/javadoc/WriterAPI/src-html/org/LiveGraph/dataFile/write/DataStreamWriter.html
and another datastreamwriterfactory

Convert my aspx page to png image

I am generating an aspx page which then I need to convert to png and store it somewhere.
A similiar situation with mine was asked before here but got still no response. I tried also the code that the Swapnil Fegade has asked but the code is looping continually making request to loading page and no conversion is actually being done.
I found some solutions on the web also but they require WebBrowser control which i understood can be used in windows form but i am building a web project.
Can you give me any hint or suggest any article that shows a full example doing this task.
Thank you guys in advance.
This one seems to do what you want:
http://www.codeproject.com/KB/IP/htmlimagecapture.aspx

Resources