Search found 45 matches

by jekko1976
22 Mar 2019, 16:40
Forum: Ask For Help
Topic: working with an array containing objects Topic is solved
Replies: 4
Views: 227

Re: working with an array containing objects Topic is solved

@GeekDude meanwhile give me a bit of explainations about the objects. All objects are passed byref like in this examples by GeekDude: ; Create an object and save it into X x := [] ; Save the object from X also into Y y := x ; Set the object's "abc" key to "value" y["abc"] := "value" ; Both X and Y s...
by jekko1976
22 Mar 2019, 16:25
Forum: Ask For Help
Topic: working with an array containing objects Topic is solved
Replies: 4
Views: 227

Re: working with an array containing objects Topic is solved

A_AhkUser this has helped really much! Your solution works perfectly!
Thank you very much!
by jekko1976
22 Mar 2019, 08:55
Forum: Ask For Help
Topic: working with an array containing objects Topic is solved
Replies: 4
Views: 227

working with an array containing objects Topic is solved

Hello, i need to retrive data from a csv and store them in an array of structured variables (objects). To test it, i tried to populate the array then to extract all the lines of a single "column" (the "int" column). But all i get is "n" times the last entry of the csv. could someone give me some hin...
by jekko1976
19 Mar 2019, 04:40
Forum: Ask For Help
Topic: Sum numbers and empty strings Topic is solved
Replies: 7
Views: 309

Re: Sum numbers and empty strings Topic is solved

Variadic Functions (https://www.autohotkey.com/docs/Functions.htm#Variadic) MsgBox % sum(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) ; -> 55 MsgBox % sum(1, "2", 3, "", 5) ; -> 11 MsgBox % sum("") ; -> 0 sum(params*) { for index, param in params result += param return result } edit: first :P JinizM (and all oth...
by jekko1976
19 Mar 2019, 04:15
Forum: Ask For Help
Topic: Sum numbers and empty strings Topic is solved
Replies: 7
Views: 309

Sum numbers and empty strings Topic is solved

Hi all, I have to sum many numbers in variables. But sometime in this variable ther is a number and someother an empty string, and a number plus an empty string result in an empty string. I made this function that works but it looks awful! Is there a way to simplify it? Thank you very much! sum(dato...
by jekko1976
16 Mar 2019, 07:18
Forum: Ask For Help
Topic: help with objects and percent sign Topic is solved
Replies: 20
Views: 769

Re: help with objects and percent sign Topic is solved

damn, i am again in trouble with this thing...

now i would like to msgbox a long list of variables in the object with CRLF.
I tried this but it doesn't compile:

MsgBox,
(
% "First" . Var.first .
"`nSecond" . Var.second .
"`nSecond" . Var.third
)

May i get some additional help?
Thank you
by jekko1976
16 Mar 2019, 03:15
Forum: Ask For Help
Topic: help with objects and percent sign Topic is solved
Replies: 20
Views: 769

Re: help with objects and percent sign Topic is solved

Hey, thank you very much! Your solution works!
Could i ask you to explain me where i was in error?
I make always so much confusion with this percent sign...
by jekko1976
16 Mar 2019, 02:21
Forum: Ask For Help
Topic: help with objects and percent sign Topic is solved
Replies: 20
Views: 769

help with objects and percent sign Topic is solved

hello THIS works Var:={} Var.first:="foo" Var.second:="bar" Var.third:="hi" MsgBox, % Var.first MsgBox, % Var.second MsgBox, % Var.third THIS Var:={} Var.first:="foo" Var.second:="bar" Var.third:="hi" MsgBox, %Var.first% %Var.second% %Var.third% gives me the following compiling error: The following ...
by jekko1976
19 Jun 2018, 07:09
Forum: Ask For Help
Topic: click a control inside of a listbox
Replies: 4
Views: 314

Re: click a control inside of a listbox

unfortunately Control doesn't seem to work. I think that somehow the solution is SendMessage, but i can't figure out how to send a clic with Sendmessage.
by jekko1976
19 Jun 2018, 01:31
Forum: Ask For Help
Topic: click a control inside of a listbox
Replies: 4
Views: 314

click a control inside of a listbox

Hello, i saw with window spy that the control that i have to click is inside of a listbox, so i found this procedure to cycle the listbox ControlGet, List, List, Selected, ListBox1, Definizione dispositivo di emissione Loop, Parse, List, `n ; Rows are delimited by linefeeds (`n). { RowNumber := A_In...
by jekko1976
24 May 2018, 03:22
Forum: Ask For Help
Topic: Speech to text//Dictation with Google Api
Replies: 8
Views: 804

Re: Speech to text//Dictation with Google Api

Ok, then I can save the introductory stuff how to set up a bot and get a bot ID, and chat ID ;) Dear gresgster, i setup all like you described and it works like a charm and all this is uber-cool!! :bravo: :bravo: :bravo: :dance: :dance: Now i can interface telegram with ahk with full features! Than...
by jekko1976
23 May 2018, 05:05
Forum: Ask For Help
Topic: Speech to text//Dictation with Google Api
Replies: 8
Views: 804

Re: Speech to text//Dictation with Google Api

Alright, I will try to put something up here, tonight. no no wait, wait, wait.... The last thing i want is to waste your time. i have already managed to connect ahk to telegram with this: https://autohotkey.com/boards/viewtopic.php?t=24919 It works fine, BUT now i am able to send messages From AHK-...
by jekko1976
22 May 2018, 03:57
Forum: Ask For Help
Topic: Speech to text//Dictation with Google Api
Replies: 8
Views: 804

Re: Speech to text//Dictation with Google Api

Dear all, first of all, thank you all for the hints, I dind't expected that this post could become such a treasure chest for me. I know very well GeekDude and his immense capabilities at programming. I would like to ask him some hints with programming the chrome.ahk library in order to drive dictati...
by jekko1976
21 May 2018, 05:39
Forum: Ask For Help
Topic: Small script - searching for help
Replies: 2
Views: 199

Re: Small script - searching for help

Code: Select all

^m::
i:=0
While (i<5000)
{
Send, B
Random waitsec, 180000, 300000
Sleep, waitsec
i++
}
not tested, should work...
by jekko1976
21 May 2018, 05:32
Forum: Ask For Help
Topic: Speech to text//Dictation with Google Api
Replies: 8
Views: 804

Speech to text//Dictation with Google Api

Howdy, in your opinion, is it possible for AHK to hook the Google speech to text API and make a dictation script? I cannot use the SAPI.Spvoice Object because i am italian and i use Windows 7 (Italian language is not in the available languages for STT but only for TTS), so i thought that i could use...
by jekko1976
16 May 2018, 02:49
Forum: Ask For Help
Topic: [SOLVED] search for an internet element Topic is solved
Replies: 4
Views: 379

Re: search for an internet element Topic is solved

Edit: I asked to my wife, who is a senior programmer, and she, after yelling me "STOP BOTHERING ME, I HAVE TO PREPARE THE DINNER FOR THE BABY!!" found a solution in five minutes (as always :mrgreen: ). The correct syntax is: elemento:=id[a_index-1][propr] The source of the hint is this: https://auto...
by jekko1976
16 May 2018, 01:26
Forum: Ask For Help
Topic: [SOLVED] search for an internet element Topic is solved
Replies: 4
Views: 379

Re: search for an internet element Topic is solved

AFAICT there is no property id[ index ].propr . and id[ index ].%propr% is incorrect and will return nothing. Is this message box returning the correct data MsgBox, Gruppo=%gruppo% Testo=%testo% tipo=%tipo% propr=%propr% ? Hi Tlm, thank you for the reply I totally Agree that the proprety "propr" do...
by jekko1976
15 May 2018, 17:23
Forum: Ask For Help
Topic: [SOLVED] search for an internet element Topic is solved
Replies: 4
Views: 379

Re: search for an internet element Topic is solved

i make a little "up" just to clarify that is a syntax problem elemento:=id[a_index-1].propr search the literally the "propr" proprety inside the tag What i wanna do instead is 1) to put the value "Innertext", or "InnerHtml" or blah blah into the variable propr 2) then perform a search for elemento:=...
by jekko1976
15 May 2018, 09:20
Forum: Ask For Help
Topic: [SOLVED] search for an internet element Topic is solved
Replies: 4
Views: 379

[SOLVED] search for an internet element Topic is solved

Hello, my goal is to write a generalized function that can search the position of an element with statet propreties inside a tag or class. Below you can find my code, that isn't working. the problem should be elemento:=id[a_index-1].propr because it gives me all blank values, but i really want to se...

Go to advanced search