Search found 36 matches

by Renets
04 Jul 2020, 14:08
Forum: Scripts y Funciones
Topic: AHKWebDrive port WebDrive w3c a Autohotkey.
Replies: 4
Views: 8808

Re: AHKWebDrive port WebDrive w3c a Autohotkey.

Yeah, I think the error is in here: this.rc := WDSession.__ws("POST", this.prefijo "session",body ) this.sessionId := this.rc.value.sessionid this.capabilities := this.rc.value.capabilities I did some troubleshooting and they are empty, so in a function like this one: url(url){ local body := {} body...
by Renets
04 Jul 2020, 13:57
Forum: Scripts y Funciones
Topic: AHKWebDrive port WebDrive w3c a Autohotkey.
Replies: 4
Views: 8808

Re: AHKWebDrive port WebDrive w3c a Autohotkey.

I am trying my best to workaround on that error without success, if I may, what is the goal with this function: __ws(metodo, url, cuerpo:=""){ static WS_SERVIDOR := ComObjCreate("Msxml2.XMLHTTP") local rc:={} WS_SERVIDOR.Open(metodo,url, false) WS_SERVIDOR.setRequestHeader("Content-Type","applicatio...
by Renets
04 Jul 2020, 12:31
Forum: Scripts y Funciones
Topic: AHKWebDrive port WebDrive w3c a Autohotkey.
Replies: 4
Views: 8808

Re: AHKWebDrive port WebDrive w3c a Autohotkey.

Hello! hey this looks very promising! we need a safe escape to SeleniumBasic (V2), since Selenium is almost at V4, and wee need Autohotkey to keep up with it I know this is a WIP, but, I tried your code and it gave me this error: a1.jpg https://imgur.com/TDTAH9l And if I continue the script, it gave...
by Renets
03 Jul 2020, 14:23
Forum: Ask for Help (v1)
Topic: AHK, Selenium and Google Chrome (Error): Chrome changes its debug port randomly always when I try to connect to it
Replies: 2
Views: 891

Re: AHK, Selenium and Google Chrome (Error): Chrome changes its debug port randomly always when I try to connect to it

Just a guess: Did you check that Chrome itself is up-to-date? (and fits the Chromedriver version?) Yeah, Chrome is up to date and the latest ChromeDriver in the Selenium folder It is sooooooooooooooooooo weird, I am looking everyone and it seems an isolated scenario, but that hurst because I really...
by Renets
03 Jul 2020, 12:33
Forum: Ask for Help (v1)
Topic: AHK, Selenium and Google Chrome (Error): Chrome changes its debug port randomly always when I try to connect to it
Replies: 2
Views: 891

AHK, Selenium and Google Chrome (Error): Chrome changes its debug port randomly always when I try to connect to it

So, I am able to use AHK, Selenium and Google Chrome in my computer without troubles, the thing is, that I am testing some web scraping code on a friend's computer and it just doesn't want to work For a simple test code like this, it doesn't work oChrome := ChromeGet() ; Object for Chrome MsgBox % "...
by Renets
28 Jun 2020, 17:45
Forum: Ask for Help (v1)
Topic: obs studio start and record Topic is solved
Replies: 7
Views: 10262

Re: obs studio start and record Topic is solved

Hello! I needed to make this work as well, and dig into jeeswg tutorials and library, so much aprpeciated! so, I tested the code posted here for it, but I found some inconsistencies, more, in theactual ControlClick, for me, it wasn't sending the Start/Stop action, with it, but I notice it was doing ...
by Renets
26 Jun 2020, 16:40
Forum: Ask for Help (v1)
Topic: (COM) AHK and Excel - How to filter a column using multiple criteria? Topic is solved
Replies: 2
Views: 2694

Re: (COM) AHK and Excel - How to filter a column using multiple criteria? Topic is solved

Ohh wooow so that was it!! The value of the parameter "xlFilterValues", digging into it I found this references for it its values https://docs.microsoft.com/en-us/office/vba/api/excel.xlautofilteroperator And this is the documentation for AutoFilter https://docs.microsoft.com/en-us/office/vba/api/e...
by Renets
26 Jun 2020, 12:12
Forum: Ask for Help (v1)
Topic: (COM) AHK and Excel - How to filter a column using multiple criteria? Topic is solved
Replies: 2
Views: 2694

(COM) AHK and Excel - How to filter a column using multiple criteria? Topic is solved

Hi! I need to filter a column with multiple criteria, Joe did a good video here https://www.youtube.com/watch?v=PS3Ud3GOnR4 , however, it only allows one criteria In Excel Macros the code is like this Worksheets("Sheet1").ListObjects("Table1").Range.AutoFilter _ Field:=1, _ Criteria1:=Array("1", "3"...
by Renets
25 Jun 2020, 11:41
Forum: Ask for Help (v1)
Topic: Selenium and AHK - How to get the size of table rows/column?
Replies: 0
Views: 495

Selenium and AHK - How to get the size of table rows/column?

I've been researching hours without success I just need the syntax for Autohotkey to get the size of a table rows/column I am following this guide https://www.guru99.com/handling-dynamic-selenium-webdriver.html In other languages they suggest this: WebElement tbody = driver.findElement(By.xpath("//d...
by Renets
04 Jun 2020, 18:31
Forum: Ask for Help (v1)
Topic: Autohotkey-Selenium Question: How to escape the Apostrophe (') character for a element that contains a text with it? Topic is solved
Replies: 3
Views: 899

Re: Autohotkey-Selenium Question: How to escape the Apostrophe (') character for a element that contains a text with it? Topic is solved

Sooo, at the end it was so obvious! but got scrambled with the research!

This works:

Code: Select all

MsgBox % oChrome.findElementByXpath("//*[contains(text(),""Senua's Saga: Hellblade 2"")]").Attribute("outerHTML")
by Renets
04 Jun 2020, 17:29
Forum: Ask for Help (v1)
Topic: Autohotkey-Selenium Question: How to escape the Apostrophe (') character for a element that contains a text with it? Topic is solved
Replies: 3
Views: 899

Re: Autohotkey-Selenium Question: How to escape the Apostrophe (') character for a element that contains a text with it? Topic is solved

BoBo wrote:
04 Jun 2020, 17:17
MsgBox % oChrome.findElementByXpath("//*[contains(text(),`'Senua`'s Saga: Hellblade 2`')]").Attribute("outerHTML")
Will this do it (it is using backticks to escape its following character)?
Didn't work, it throws the same error :(
by Renets
04 Jun 2020, 14:39
Forum: Ask for Help (v1)
Topic: Autohotkey-Selenium Question: How to escape the Apostrophe (') character for a element that contains a text with it? Topic is solved
Replies: 3
Views: 899

Autohotkey-Selenium Question: How to escape the Apostrophe (') character for a element that contains a text with it? Topic is solved

I've tried many options, like in this links https://stackoverflow.com/questions/39601090/escape-apostrophe-in-selenium https://stackoverflow.com/questions/37542773/how-to-use-apostrophe-in-xpath-while-finding-element-using-webdriver https://developers.perfectomobile.com/display/TT/Eclipse+-+Auto-Esc...
by Renets
18 Dec 2019, 18:58
Forum: Ask for Help (v1)
Topic: How to create 2+ Nested Associtive Arrays? Topic is solved
Replies: 4
Views: 858

Re: How to create 2+ Nested Associtive Arrays? Topic is solved

in the second case, u will still have to define "option" keys but instead u will associated them with arrays: MyArray[option_handler] := [] then u can .Push() to these arrays objects { "index": index_value, "value": value_handler } and the indexing will be handled automatically for u: MyArray[optio...
by Renets
17 Dec 2019, 16:59
Forum: Ask for Help (v1)
Topic: How to create 2+ Nested Associtive Arrays? Topic is solved
Replies: 4
Views: 858

Re: How to create 2+ Nested Associtive Arrays? Topic is solved

swagfag wrote:
17 Dec 2019, 16:52

Code: Select all

{
	"option_1":
	{
		"index_1": value,
		"index_2": value,
		"index_3": value,
		"index_4": value,
		"index_5": value
	},
	"option_2":
	{
		"index_1": value,
		"index_2": value,
		"index_3": value
	}
}
preferably this first one but it would also be useful to know how to do that second one :)
by Renets
17 Dec 2019, 16:29
Forum: Ask for Help (v1)
Topic: How to create 2+ Nested Associtive Arrays? Topic is solved
Replies: 4
Views: 858

How to create 2+ Nested Associtive Arrays? Topic is solved

After trying hour and hours I can't get this working. Already did a search about related topics and I couldn't find anything useful for this challenge. I had to turn to your help guys, thanks in advance So, I need to have this structure : MyArray option_1 index_1 value index_2 value index_3 value in...
by Renets
26 Aug 2019, 20:10
Forum: Ask for Help (v1)
Topic: How to know a Control Style code?; ListView background transparency new solution?
Replies: 4
Views: 1655

Re: How to know a Control Style code?; ListView background transparency new solution?

teadrinker wrote:
26 Aug 2019, 19:32
https www.google.com /search?q=LVS_EX_TRANSPARENTBKGND+constant Broken Link for safety
Hey great insight thanks!
Ohhhh ook so those are called "Constants"

So apparently just Me had already a file with all of those constants in GitHub, here:
gist.github.com/AHK-just-me/6098109
by Renets
26 Aug 2019, 19:55
Forum: Ask for Help (v1)
Topic: How to know a Control Style code?; ListView background transparency new solution?
Replies: 4
Views: 1655

Re: How to know a Control Style code?; ListView background transparency new solution?

I found it here: C:\Program Files (x86)\Windows Kits\8.1\Include\um\CommCtrl.h The files were obtained after I installed the approx. 7 gig Visual Studio Express for Windows Desktop. When I want to know the value for a constant, I look in .h files (header files) in this folder or a similar folder: C...
by Renets
26 Aug 2019, 18:15
Forum: Ask for Help (v1)
Topic: How to know a Control Style code?; ListView background transparency new solution?
Replies: 4
Views: 1655

How to know a Control Style code?; ListView background transparency new solution?

So, after days researching how to make a ListView background transparent and no solution, I decided to use a Function from Lexicos to set a custom background (a not so flexible workaround because for my needs it's better to have a transparent ListView background) posted here: https://autohotkey.com/...
by Renets
09 Aug 2019, 11:55
Forum: Ask for Help (v1)
Topic: Ghost variables in an array? (Optimizing code; Kind of embedded variable) Topic is solved
Replies: 7
Views: 1292

Re: Ghost variables in an array? (Optimizing code; Kind of embedded variable) Topic is solved

#NoEnv InnerArray := {keyA: "ValueA", keyB: "ValueB"} OuterArray := {InnerArray: InnerArray} Tmp := "InnerArray,keyA" MsgBox, % OuterArray[StrSplit(Tmp, ",")*] YES! That's exactly what I needed! Thanks! btw1: Thanks swagfag for helping me clarify it better, didn't know about the XY problem, certain...
by Renets
08 Aug 2019, 19:37
Forum: Ask for Help (v1)
Topic: Ghost variables in an array? (Optimizing code; Kind of embedded variable) Topic is solved
Replies: 7
Views: 1292

Re: Ghost variables in an array? (Optimizing code; Kind of embedded variable) Topic is solved

swagfag wrote:
08 Aug 2019, 16:14
u are yet to clarify what the x problem is
I tried again, edited post, see Edit2
Thanks for that example though, it is useful for other things of mine as well

Go to advanced search