Search found 63 matches

by paulpma
17 Jan 2021, 00:27
Forum: Ask For Help
Topic: COM and Javascript (jquery)
Replies: 2
Views: 114

Re: COM and Javascript (jquery)

After searching and learning about jquery for days I am coming up With jquery code that possibly I can use.. However, it begs the question whether I would be able to implement jquery with AHK? Do I insert JScript similarly to DOM object??? The jquery code example is something like this: $("#Content ...
by paulpma
14 Jan 2021, 23:14
Forum: Ask For Help
Topic: COM and Javascript (jquery)
Replies: 2
Views: 114

Re: COM and Javascript (jquery)

Does any one knows what this means in plain terms taken from show(that) function:

Code: Select all

 $('#ic').text($(that).parent().parent().parent().find('td').eq(0).find('input').val());
Thank you..
by paulpma
13 Jan 2021, 10:14
Forum: Ask For Help
Topic: COM and Javascript (jquery)
Replies: 2
Views: 114

COM and Javascript (jquery)

I am bit familear with javascript and COM/DOM, but this gets me.. I have a dynamic table where rows are shown based on search result. The result of html code is shown below.. I need to stimulate click on ButtonBlue, more precisely I need to run JavaScript function onclick="show(this). The issue is t...
by paulpma
02 Jan 2021, 11:37
Forum: Ask For Help
Topic: Append/extend wb.document with additional elemnts/html and interact?(IE)
Replies: 10
Views: 227

Re: Append/extend wb.document with additional elemnts/html and interact?(IE)

Button.onclick := Func("OnClickButton").Bind("hello") At first I was skeptical that .Bind would pass an object to a function... However, I am glad that I was wrong... It works... How can I been so blind to the bind :?: , the example was even provided before in OnExit(Func("QuitIE").Bind(IE)) in pre...
by paulpma
02 Jan 2021, 02:15
Forum: Gaming
Topic: Setting Gui x/y coordinates with window hook
Replies: 7
Views: 133

Re: Setting Gui x/y coordinates with window hook

Hi, have you looked at CoordMode
https://www.autohotkey.com/docs/commands/CoordMode.htm
Hopefully, it will help you.
by paulpma
02 Jan 2021, 02:11
Forum: Ask For Help
Topic: Is there a way to select & copy just a certain portion of a text file?
Replies: 7
Views: 182

Re: Is there a way to select & copy just a certain portion of a text file?

Two options exist, but not sure which one is suitable: You said: selects only the new portion that just got pasted, so the text is still stored in Clipboard, would accessing clipboard we any help? Also, if you know approximate area of text you can do MouseClickDrag https://www.autohotkey.com/docs/co...
by paulpma
02 Jan 2021, 02:03
Forum: Ask For Help
Topic: Append/extend wb.document with additional elemnts/html and interact?(IE)
Replies: 10
Views: 227

Re: Append/extend wb.document with additional elemnts/html and interact?(IE)

I am sorry, I think you have missunderstood my quetions.. However, I believe its not possible to pass parameter in function, in my case object, between browser (wb.document, IE.document) and AHK code... However, I believe it can be done without function, but I am still stuck.. What I have is simple ...
by paulpma
02 Jan 2021, 00:49
Forum: Ask For Help
Topic: Is there a way to select & copy just a certain portion of a text file?
Replies: 7
Views: 182

Re: Is there a way to select & copy just a certain portion of a text file?

selects only the new portion that just got pasted.
Question, what are you planning to do with selection?
by paulpma
02 Jan 2021, 00:02
Forum: Ask For Help
Topic: Append/extend wb.document with additional elemnts/html and interact?(IE)
Replies: 10
Views: 227

Re: Append/extend wb.document with additional elemnts/html and interact?(IE)

An example: #Persistent IE := ComObjCreate("InternetExplorer.Application") OnExit(Func("QuitIE").Bind(IE)) IE.visible := true IE.Navigate("https://www.autohotkey.com/boards/viewforum.php?f=76") while !(IE.ReadyState = 4 && !IE.Busy && IE.document.readyState = "Complete") Sleep, 100 ParentElem := IE...
by paulpma
31 Dec 2020, 21:58
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

Code: Select all

obj[i,header[a_index]] := A_LoopField
I am still curios about "i", haven't seen this before... not that I am good with AHK...

Thank you.
by paulpma
31 Dec 2020, 00:24
Forum: Ask For Help
Topic: Append/extend wb.document with additional elemnts/html and interact?(IE)
Replies: 10
Views: 227

Re: Append/extend wb.document with additional elemnts/html and interact?(IE)

Thank you so much.... Works like a charm.... Any suggestions for reading material?

Thank you.
by paulpma
30 Dec 2020, 18:35
Forum: Ask For Help
Topic: Append/extend wb.document with additional elemnts/html and interact?(IE)
Replies: 10
Views: 227

Append/extend wb.document with additional elemnts/html and interact?(IE)

Hi All, I am drying to add a button to a form, so it can be used as a search button. Can button will interact with ahk script? Is this possible. So far I have found this from old ahk forum: https://autohotkey.com/board/topic/58181-innerhtml-search-and-replace/ This code demonstrates an example: WinG...
by paulpma
30 Dec 2020, 16:31
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

@Xeo786 Thank you for sharing code. Its pretty clever.

Question. This:

Code: Select all

obj[i,header[a_index]] := A_LoopField
I don't see the pint of "i" - ? is this to preserve order? Because the order is not preserved, its alphabetical. Thanks.
by paulpma
30 Dec 2020, 01:04
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

BoBo Ahh.. Trim... Learn something new everyday. Thank you. teadrinker Thank you so much for fixing the bug.. Works great now.. Meanwhile, found a way to sort Associative Array inside a Regular Array with help of: https://biga-ahk.github.io/biga.ahk/#/getting-started #Include <ClassBiga> A := new b...
by paulpma
29 Dec 2020, 23:12
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

Found an error in code and struggling to fix it. Extra pipeline at the end of string causes error, can't find a way to remove it. Here is why. for Index, Val in objS { line := "" ;Msgbox, % Index for k,v in objS[Index] line.= v "|" File .= line "`r`n" ;Msgbox, % "LINE: " obj4file[Index] } This line:...
by paulpma
29 Dec 2020, 20:02
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

Any thoughts why AhkToJSON displays numbers incorrectly from Associative Array when they begin with zero? Eg. ZIP code 02030 will give a random 512.. Note last two begin with zeros, but it will display zip as 1284 and 572, however, the value is still written correctly to file. fileDB = ( Name| DOB| ...
by paulpma
29 Dec 2020, 14:45
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

That wasn't so bad. Happy with results, hopefully this will help someone as well. Read Data to Array of Associative Arrays: fileDB = ( Name| DOB| Address| City| Zip Jake|01/01/2020|123 Main| NY City| 11001 Mike|03/04/2001|30 south| MIAMI |2404 ) Headers := [] objS := [] Loop, parse, fileDB, `n, `r {...
by paulpma
29 Dec 2020, 10:44
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

[…] Update: push only handles integer keys. Any evidence (AHK Help-reference) for that? arr := [] arr.Push("The Expanse") MsgBox % arr.1 So that isn’t working? @BoBo The example provided should work, because integer key was used. I have seen reference for it, now that I am looking for it, I cant fi...
by paulpma
29 Dec 2020, 10:41
Forum: Ask For Help
Topic: Associative Array inside a Regular Array Topic is solved
Replies: 28
Views: 2961

Re: Associative Array inside a Regular Array Topic is solved

I have solved sorting of headers with SortArray() function. However, I see that class CaseSenseList is a better option, because it preserves order, but SortArray() sorts headers to match object and the whole order is changed from original. SortArray(Array, Order="A") { ;Order A: Ascending, D: Descen...

Go to advanced search