Search found 25 matches

by mojobadshah
24 Dec 2022, 19:48
Forum: Ask for Help (v1)
Topic: Buffer AHK for Reading and Parsing Large KB Files
Replies: 2
Views: 236

Buffer AHK for Reading and Parsing Large KB Files

Autohotkey has serious problems processing scripts that are coded to processes more than a few 1000KB. I think I noticed anything over 10,000KB will certainly result in overbuffing and task killing by default. What would be some great mechanisms related to buffering and cpu and ram and memory storag...
by mojobadshah
20 Mar 2021, 17:07
Forum: Ask for Help (v1)
Topic: Chrome.ahk as Web Browser UI
Replies: 2
Views: 409

Re: Chrome.ahk or Chromium with Autohotkey?

The impression I got looking into web browser UI capabilities for autohotkey was that chrome.ahk could be used alternatively for chromium's engine and other UI builders. What exactly needs to happen for chrome.ahk or other ahk webviewer interfaces to smoothly integrate chrome/javascript rendering en...
by mojobadshah
19 Mar 2021, 19:10
Forum: Ask for Help (v1)
Topic: Chrome.ahk as Web Browser UI
Replies: 2
Views: 409

Chrome.ahk as Web Browser UI

I would like to see Chrome.ahk in action. Can anyone provide me with a dummy example to fill in the blanks for an error 174 referencing Jxon_Dump.
by mojobadshah
12 Jul 2020, 12:24
Forum: Ask for Help (v1)
Topic: 2D Matrix Showing (X,Y) Plotpoint Coordinates
Replies: 3
Views: 2887

Re: 2D Matrix Showing (X,Y) Plotpoint Coordinates

I used arrays because A := new biga() ; requires https://www.npmjs.com/package/biga.ahk mappedX := A.map([[1,1], [2,2], [3,3], [4,4]], Func("mapx")) ; => [[1,1], [1,2], [1,3], [1,4]] mappedY := A.map([[2,2], [3,3], [4,4], [5,5]], Func("mapY")) ; => [[2,1], [2,2], [2,3], [2,4]] mapx(obj) { return [1...
by mojobadshah
11 Jul 2020, 19:42
Forum: Ask for Help (v1)
Topic: 2D Matrix Showing (X,Y) Plotpoint Coordinates
Replies: 3
Views: 2887

2D Matrix Showing (X,Y) Plotpoint Coordinates

Trying to have a 2D matrix correlate to the ++ vector of the common ++ side of xy planes in a graph. I have advanced an ahk script dealing in 2D matrices, and need one of the scripts variable results to be incremented such that 1,1 2,2 3,3 4,4 on the first line and 2,2 3,3 4,4 5,5 on second line is ...
by mojobadshah
17 Jun 2020, 18:13
Forum: Ask for Help (v1)
Topic: RegExp Search with Highlight
Replies: 0
Views: 528

RegExp Search with Highlight

Anyone familiar with an AHK script that works to highlight regexed text? Something like this https://github.com/rogershen/chrome-regex-search
by mojobadshah
02 May 2020, 00:54
Forum: Ask for Help (v1)
Topic: increment numeric values in file content
Replies: 0
Views: 347

increment numeric values in file content

I want to increment numeric values in file content. I have already sorted out a list count ahk. What I like about it is that it lets me stdin-stdout from any file type to any file type and it reads its contents into a loop parse. I'm also trying to sort out a counter that will increment numeric valu...
by mojobadshah
14 Feb 2020, 18:43
Forum: Ask for Help (v1)
Topic: Alternative to FileSelectFolder, folder - No Gui
Replies: 2
Views: 613

Alternative to FileSelectFolder, folder - No Gui

What path can I substitute for" FileSelectFolder, folder, etc..." in cases where I don't require a Gui to prompt me with an option to manually select a folder to loop through?
by mojobadshah
08 Feb 2020, 13:33
Forum: Ask for Help (v1)
Topic: ControlGetText, OutputVar, Edit1, Untitled With Wildcard
Replies: 2
Views: 430

Re: ControlGetText, OutputVar, Edit1, Untitled With Wildcard

You can use ahk_class ahk_id ahk_exe ahk_id instead the window title. Use the Window Spy to get those values. Or you could use SetTitleMatchMode . https://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm Is this for generic filenames and filetypes -- wildcards eg. filename.* or *.filetype for...
by mojobadshah
05 Feb 2020, 19:23
Forum: Ask for Help (v1)
Topic: ControlGetText, OutputVar, Edit1, Untitled With Wildcard
Replies: 2
Views: 430

ControlGetText, OutputVar, Edit1, Untitled With Wildcard

I want to use the "ControlGetText, OutputVar, Edit1, Untitled" function, but implement a filename.filetype wildcard eg. *.doc. What is the accurate convention for performing this task?
by mojobadshah
01 Feb 2020, 19:26
Forum: Ask for Help (v1)
Topic: RegExMatch for Keyword in Text
Replies: 2
Views: 445

Re: RegExMatch for Keyword in Text

w0z wrote:
30 Jan 2020, 21:57
I barely understand what you want to do. Perhaps this:

Code: Select all

F1::

Loop, Parse, Data, `n, `r
{
	if ( A_LoopField != "" )
	{
		newstr := RegExMatch(A_LoopField, "(keyword)",SubPat)
		if ( SubPat != "" )
		 	new.= SubPat "`n"
	}
}
MsgBox, % new
new =

Return
Yes, that worked perfect!! Thanks.
by mojobadshah
30 Jan 2020, 16:51
Forum: Ask for Help (v1)
Topic: RegExMatch for Keyword in Text
Replies: 2
Views: 445

RegExMatch for Keyword in Text

I put this RegExMatch together: Loop, Parse, Data, `n, `r { newstr := RegExMatch(U, "(keyword)", "$1") if ( newstr != "" ) new .= newstr "`n" } It parses text, but renders erroneously. Depending on how I rearrange the function I've seen a digit value returned, a character in substitution for that, o...
by mojobadshah
29 Jan 2020, 13:30
Forum: Ask for Help (v1)
Topic: How to translate javascript regex to AHK ?
Replies: 18
Views: 2582

Re: How to translate javascript regex to AHK ?

I've noticed pretty effectively that regex doesn't work with a lot of data very well. Can you provide an example of an inverse ahk regex that is maybe preceded by an ahk delete function first? A lot going on here. Not sure what example you are looking for and regex works with any string data. I hav...
by mojobadshah
26 Jan 2020, 21:42
Forum: Ask for Help (v1)
Topic: How to translate javascript regex to AHK ?
Replies: 18
Views: 2582

Re: How to translate javascript regex to AHK ?

Maybe the string being fed into the function is really really long? .+ and .* are both valid for their own use cases. if ahk is going slower than expected you may want to specify SetBatchLines, -1 https://www.autohotkey.com/docs/commands/SetBatchLines.htm I've noticed pretty effectively that regex ...
by mojobadshah
03 Dec 2019, 14:50
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 201479

Re: How to optimize the speed of a script as much as possible.

What is the specific mechanism I need to initiate through AHK to push CPU rate up to at least x2 or ~50% or even more than this ? AHK is single threaded. Each instance of a running script will only ever use a single CPU core. You can SetBatchLines to -1 and change the process priority to above norm...
by mojobadshah
29 Nov 2019, 14:26
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 201479

Re: How to optimize the speed of a script as much as possible.

Anyone have problems with an AHK script that at first sight works (in my case it's a RegExReplace function), but after a few parses the file (or appended file) will reduce to 0kb? I'm running 1 ahk regex script on a file that's a little bit over 1000kb. I can delete data from these files or apply t...
by mojobadshah
28 Nov 2019, 17:43
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 201479

Re: How to optimize the speed of a script as much as possible.

WAZAAAAA Anyone have problems with an AHK script that at first sight works (in my case it's a RegExReplace function), but after a few parses the file (or appended file) will reduce to 0kb? I'm running 1 ahk regex script on a file that's a little bit over 1000kb. I can delete data from these files o...
by mojobadshah
23 Nov 2019, 17:19
Forum: Ask for Help (v1)
Topic: How to translate javascript regex to AHK ?
Replies: 18
Views: 2582

Re: How to translate javascript regex to AHK ?

Maybe the string being fed into the function is really really long? .+ and .* are both valid for their own use cases. if ahk is going slower than expected you may want to specify SetBatchLines, -1 https://www.autohotkey.com/docs/commands/SetBatchLines.htm It would appear that in order for js regex ...
by mojobadshah
22 Nov 2019, 20:03
Forum: Ask for Help (v1)
Topic: How to translate javascript regex to AHK ?
Replies: 18
Views: 2582

Re: How to translate javascript regex to AHK ?

What's the standard conversion for regex '.+' for example:

Code: Select all

NewStr := RegExReplace(NewStr, ".+(anyword).+","")
AHK regex, popularly, appears to favor ' .* ' but I've also seen posts inclusive of ' .+ ' so why would using the latter ' .+ ' cause ahk to lag and not fully process?
by mojobadshah
22 Nov 2019, 13:22
Forum: Ask for Help (v1)
Topic: How to translate javascript regex to AHK ?
Replies: 18
Views: 2582

Re: How to translate javascript regex to AHK ?

I think the approach is a little brittle. It's basically string replacement. An immense thanks to you for helping me to sort this out. This is eventually how put it all together to form a working ahk script: ControlGetText, NewStr, Edit1, Untitled - Notepad ; { NewStr := RegExReplace(NewStr, "([<])...

Go to advanced search