Search found 155 matches
- 21 May 2023, 12:35
- Forum: Ask for Help (v1)
- Topic: Regex for Table Rows/Columns Topic is solved
- Replies: 9
- Views: 727
Re: Regex for Table Rows/Columns Topic is solved
This is the function I ultimately settled on. To make it dymanic for all my tables I allowed for params: "Path" - The File path of the table "Srch" - The String to search for "SCol" - The Column to search in each row/iteration "RCol" - The Column item to return if Srch is found in the target row/col...
- 21 May 2023, 07:17
- Forum: Ask for Help (v1)
- Topic: Regex for Table Rows/Columns Topic is solved
- Replies: 9
- Views: 727
Re: Regex for Table Rows/Columns Topic is solved
I'd like to say that we beat loops with RegEx, but as stated above it's still faster/easier to use loops to parse tables.
Thank you, Everyone, for all of you brilliant advice and assistance!
Thank you, Everyone, for all of you brilliant advice and assistance!
- 20 May 2023, 14:08
- Forum: Ask for Help (v1)
- Topic: Regex for Table Rows/Columns Topic is solved
- Replies: 9
- Views: 727
Re: Regex for Table Rows/Columns Topic is solved
You assumed that regex would be faster than strisplit. I used the following 2 scripts to calculate the speed to retrieve the "needle" in a 4 column, 10,000,000 row tsv file. (the 1st script uses @mikeyww 's brilliant regex) Col_2 := "needle" fileread, file, C:\Users\xxx\Scripts\test.csv st := A_Tic...
- 20 May 2023, 14:04
- Forum: Ask for Help (v1)
- Topic: Regex for Table Rows/Columns Topic is solved
- Replies: 9
- Views: 727
Re: Regex for Table Rows/Columns Topic is solved
#Requires AutoHotkey v1.1.33 FilePath := A_ScriptDir "\test.txt" FileRead File, % FilePath Col_2 := "CL Premium" regex := "O)\v(.+)\t(\Q" Col_2 "\E)\t(.+)\t(.+)\v" RegExMatch("\n" File "\r", regex, m) MsgBox % m.Value[2] Thank you for responding! I enjoy your scripts and input :D Is there any way t...
- 20 May 2023, 13:08
- Forum: Ask for Help (v1)
- Topic: Regex for Table Rows/Columns Topic is solved
- Replies: 9
- Views: 727
Regex for Table Rows/Columns Topic is solved
I would like to not have to StrSplit through the table below (too slow) and use Regex to capture the line based on information within each "column" (Columns "\t" delimited/Rows "\n" delimited (I don't want to have to parse through the Rows to find the needle)). Also, I would like to use the "O)" ope...
- 09 Mar 2023, 10:07
- Forum: Ask for Help (v1)
- Topic: Chrome.ahk no longer working? Topic is solved
- Replies: 10
- Views: 1834
Re: Chrome.ahk no longer working? Topic is solved
Run with "--remote-allow-origins=*" flag.
(on the back side of the "--remote-debugging-port" flag is what I did.)
No need to downgrade
viewtopic.php?f=6&t=42890&start=620
(on the back side of the "--remote-debugging-port" flag is what I did.)
No need to downgrade
viewtopic.php?f=6&t=42890&start=620
- 09 Mar 2023, 08:10
- Forum: Ask for Help (v1)
- Topic: Chrome.ahk no longer working? Topic is solved
- Replies: 10
- Views: 1834
Re: Chrome.ahk no longer working? Topic is solved
Is anybody else's Chrome running slower? It's like my entire internet got stupid after Chrome.ahk stopped working. I updated yesterday and Chrome.ahk was working for a little bit. But I only used it for about 30 minutes after the update and then walked away for a few hours. When I came back it would...
- 09 Mar 2023, 08:05
- Forum: Ask for Help (v1)
- Topic: Chrome.ahk no longer working? Topic is solved
- Replies: 10
- Views: 1834
Re: Chrome.ahk no longer working? Topic is solved
After some testing, the EventType returns as "Error" which triggers the websocket error message. GetPageList() still pulls the json list but everything after that is bupkis.
- 09 Mar 2023, 00:25
- Forum: Ask for Help (v1)
- Topic: Chrome.ahk no longer working? Topic is solved
- Replies: 10
- Views: 1834
Chrome.ahk no longer working? Topic is solved
Chrome.ahk just stopped working for me. I created a huge utility for work and now it won't connect to DevTools anymore. Does anyone have any news that I'm missing out on? This pulls up a websocket error, but "http://localhost:9222/json/list" pulls up json like it should image.png #SingleInstance, Fo...
- 12 Jun 2022, 08:18
- Forum: Ask for Help (v1)
- Topic: Put a GIF in GUI Behind Controls
- Replies: 4
- Views: 607
Re: Put a GIF in GUI Behind Controls
pic = d:\temp2\shaky_jake_animated_gif_by_t16skyhopp-d5coi0e-2606061754.gif Gui, -DPIScale Gui, Font, s14 Gui, Add, Text , x200 y200 , Test Gui, Add, ActiveX, xm ym w550 h400, % "mshtml:<img src='" pic "' />" Gui, Show I like that code, because it's much shorter that what I'm using. But my only iss...
- 11 Jun 2022, 14:52
- Forum: Ask for Help (v1)
- Topic: Put a GIF in GUI Behind Controls
- Replies: 4
- Views: 607
Re: Put a GIF in GUI Behind Controls
I know @Hellbent did something a while back, but I'm not seeing a tutorial on his YouTube Channel
- 11 Jun 2022, 14:44
- Forum: Ask for Help (v1)
- Topic: Put a GIF in GUI Behind Controls
- Replies: 4
- Views: 607
Put a GIF in GUI Behind Controls
I currently have a GUI with a gif in loop playing but no matter where I put the gif in the control creation lineup, it's bringing the gif to the front and covering all my controls. Does anybody have a working script with a gif as a background? I can't seem to find anything that deals with this issue...
- 28 May 2022, 12:19
- Forum: Ask for Help (v1)
- Topic: Array/Object Add If Function Topic is solved
- Replies: 3
- Views: 448
Re: Array/Object Add If Function Topic is solved
Fixed: Function: Array_AddIf(Arr, Key, Value) { if !(Value=""||Value="null"||Value="false"||Value="0"||Value="0.00") Arr[Key] := Value return Arr } Script: MergeTrailerTrader: oTrailerTraderType1 := {} j := 0 Loop, E:\Folder\Temp File Folder For Logs\TrailerTraderType1*.txt { FileRead, v, E:\Folder\...
- 28 May 2022, 11:00
- Forum: Ask for Help (v1)
- Topic: Array/Object Add If Function Topic is solved
- Replies: 3
- Views: 448
Re: Array/Object Add If Function Topic is solved
I uploaded the attachment to GitHub. Here's the link.
https://github.com/DiLuZioNaL/json-array-trailertrader/blob/main/TrailerTraderType1_Pg1.txt
https://github.com/DiLuZioNaL/json-array-trailertrader/blob/main/TrailerTraderType1_Pg1.txt
- 28 May 2022, 10:50
- Forum: Ask for Help (v1)
- Topic: Array/Object Add If Function Topic is solved
- Replies: 3
- Views: 448
Re: Array/Object Add If Function Topic is solved
I don't see the attachment in the OP. Looks like there's a 2 MB limit and it's 5.6 MB...
- 28 May 2022, 10:41
- Forum: Ask for Help (v1)
- Topic: Array/Object Add If Function Topic is solved
- Replies: 3
- Views: 448
Array/Object Add If Function Topic is solved
I'm trying to create a function that will "push" key/value into an Object or Array (I'm only at the "Add if to Object" section), and I'm getting empty returns. No issues when using the script below outside of a function, but I want to tighten up the script. if !(i.vin=""||i.vin="null"||i.vin="false"...
- 27 May 2022, 09:55
- Forum: Scripts and Functions (v1)
- Topic: [Class] FTP
- Replies: 23
- Views: 9997
Re: [Class] FTP
I'm having issues connecting to an SFTP - SSH Server. Will this Class work with SFTP - SSH?
- 22 Apr 2022, 15:30
- Forum: Ask for Help (v1)
- Topic: Semi transparent gui controls
- Replies: 0
- Views: 240
Semi transparent gui controls
Anyone know how to make semi transparent gui controls? I've tried several different methods and none of them are working. Currently I have this Gui, AHMain:Add, Picture, HWNDhPic x5 y30 w385 h750 AltSubmit BackgroundTrans, %A_WorkingDir%\Themes\testpic.png WinSet, Transparent, 126, ahk_id %hPic% It ...
- 12 Apr 2022, 05:00
- Forum: Ask for Help (v1)
- Topic: LV_ADD from Array Topic is solved
- Replies: 12
- Views: 1162
Re: LV_ADD from Array Topic is solved
flyingDman just me Thank you for responding... I found my issue. And... I told you I'd feel silly when the resolution was found. Later on in the code, I set column widths and previously I had wanted to start off with a clean ListView control... So, after the ModCol's was an LV_Del. I added it into ...
- 12 Apr 2022, 04:50
- Forum: Ask for Help (v1)
- Topic: LV_ADD from Array Topic is solved
- Replies: 12
- Views: 1162
Re: LV_ADD from Array Topic is solved
Hi @HeXaDeCiMaToR, you have a named Gui ( AHD ). Did you make it the default Gui? Built-in Functions for ListViews : All of the ListView functions operate upon the current thread's default GUI window (which can be changed via Gui, 2:Default). Also, to remove a line break from the end of the file co...