Search found 54 matches

by jekko1976
05 Nov 2019, 11:18
Forum: Ask For Help
Topic: Hotkey to pause a cycle launched by another hotkey
Replies: 2
Views: 164

Re: Hotkey to pause a cycle launched by another hotkey

unfortunately the solution doesn't work...
by jekko1976
05 Nov 2019, 04:42
Forum: Ask For Help
Topic: Hotkey to pause a cycle launched by another hotkey
Replies: 2
Views: 164

Hotkey to pause a cycle launched by another hotkey

Hi, could someone give me a hint to resolve this? Thank you SetKeyDelay, 10, 10 ^F12:: loop, 100 { Send, %a_index% Send {enter} Sleep, 1000 } return ^F11:: ;with this hotkey i would like to PAUSE, in any time, the cycle launched by the ^F12 hotkey return ^F10:: ;with this hotkey i would like to RESU...
by jekko1976
24 Sep 2019, 01:40
Forum: Ask For Help
Topic: function to submit Gui data into variables
Replies: 3
Views: 367

Re: function to submit Gui data into variables

swagfag i modified your script to match my needs and it works so I thank you so much. However, i have a similar problem that would take months to me to resolve and i think you could resolve it in ten minutes, so i am coming back to you to ask if you could save my life once again. I have just the sa...
by jekko1976
23 Sep 2019, 03:46
Forum: Ask For Help
Topic: function to submit Gui data into variables
Replies: 3
Views: 367

Re: function to submit Gui data into variables

swagfag wrote:
23 Sep 2019, 03:38
...
Swagfag, this goes far beyond my coding skills :lol: :lol:

I thank you very much for the solution and i will try to use it "as is"
I will put some effort in studying objects ;)
by jekko1976
23 Sep 2019, 03:07
Forum: Ask For Help
Topic: function to submit Gui data into variables
Replies: 3
Views: 367

function to submit Gui data into variables

Hello, what i wanna do, if possible, is to create a function that open a GUI, submit data into variables then close the gui and go on with the rest of the script. It has to work with multiple guis aswell. Everytime i had to write guis i had to write the rest of the code in the buttonOk label and i d...
by jekko1976
14 Sep 2019, 05:10
Forum: Ask For Help
Topic: [COM] Control a new tab auto opened by site Topic is solved
Replies: 1
Views: 264

Re: [COM] Control a new tab auto opened by site Topic is solved

Hello again, i have found a solution: from this post i just CopyPasted this code and this works like a charm WBGet(WinTitle="ahk_class IEFrame", Svr#=1) { ; based on ComObjQuery docs static msg := DllCall("RegisterWindowMessage", "str", "WM_HTML_GETOBJECT") , IID := "{0002DF05-0000-0000-C000-0000000...
by jekko1976
11 Sep 2019, 02:50
Forum: Ask For Help
Topic: [COM] Control a new tab auto opened by site Topic is solved
Replies: 1
Views: 264

[COM] Control a new tab auto opened by site Topic is solved

Hello, i have this issue. I usually navigate a site using the COM commands so: URL :="https://www.mysite.bla" wb := ComObjCreate("InternetExplorer.Application") wb.Navigate(URL) wb.Visible := True but when i navigate, after a click the site open another tab. I need that the script from this point sw...
by jekko1976
06 Aug 2019, 06:55
Forum: Ask For Help
Topic: attributes of an object by a csv
Replies: 2
Views: 248

Re: attributes of an object by a csv

Thank you! i will try this way!
by jekko1976
05 Aug 2019, 05:19
Forum: Ask For Help
Topic: attributes of an object by a csv
Replies: 2
Views: 248

attributes of an object by a csv

Hi, I would like to resolve this problem but to be honest i don't really know if there is a solution. In some languages it works, in some others not. i use objects very often as structured variables. So i do like: colors:={} colors.blue:=1 colors.white:=2 colors.black:=3 what i would like to do is t...
by jekko1976
22 Mar 2019, 16:40
Forum: Ask For Help
Topic: working with an array containing objects Topic is solved
Replies: 4
Views: 657

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: 657

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: 657

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: 885

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: 885

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: 2076

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: 2076

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: 2076

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: 624

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: 624

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...

Go to advanced search