It did work indeed, thanks! So 'A_Index = 1' all the time?
Search found 46 matches
- 29 Nov 2022, 09:32
- Forum: Ask for Help (v1)
- Topic: AHK+Excel, paste image each X rows Topic is solved
- Replies: 7
- Views: 521
- 29 Nov 2022, 08:21
- Forum: Ask for Help (v1)
- Topic: AHK+Excel, paste image each X rows Topic is solved
- Replies: 7
- Views: 521
Re: AHK+Excel, paste image each X rows Topic is solved
Use an expression . Variable names in an expression are not enclosed in percent signs (except for pseudo-arrays and other double references). Loop, Files, %WhichFolder%\*.*, R { xlApp := ComObjActive("Excel.Application") picRow := 16 * A_Index + 1 ; 17, 33, 49,... txtRow := 16 * A_Index - 1 ; 15, 3...
- 29 Nov 2022, 07:29
- Forum: Ask for Help (v1)
- Topic: AHK+Excel, paste image each X rows Topic is solved
- Replies: 7
- Views: 521
Re: AHK+Excel, paste image each X rows Topic is solved
Loop, 5 { picRow := 16 * A_Index + 1 txtRow := 16 * A_Index - 1 MsgBox, %picRow% %txtRow% } I have totally no idea how to use it, still gives same error. Am I supposed to make loop within loop? Use these variables in xlRng := xlApp.Range("A1") ? Below is error when you try to change xlApp.Range("A1...
- 29 Nov 2022, 06:41
- Forum: Ask for Help (v1)
- Topic: AHK+Excel, paste image each X rows Topic is solved
- Replies: 7
- Views: 521
AHK+Excel, paste image each X rows Topic is solved
I tried to make little project. You have folder X, in this folder are Y images (5 or 100, doesnt matter). With ahk script it should paste image and add caption/text under this. I can't make it work, cuz I have problem with variables. Let's say I have 'A1' cell. I tried to split it to something like:...
- 21 Oct 2022, 06:26
- Forum: Ask for Help (v1)
- Topic: Can you ControlSetText on TreeView?
- Replies: 0
- Views: 167
Can you ControlSetText on TreeView?
So I have tree view on my application I use. And as I can ControlClick some buttons and ControlSetText to Edit boxes, I can't edit a line in tree view... It's how it looks: https://i.ibb.co/SRXG25q/systree.jpg And as it can easily just CLICK on this line (it makes line highlighted in blue), but I ca...
- 21 Oct 2022, 02:44
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
Re: ping into graph Topic is solved
I also tried to add this chart to my GUI. I wanted to add two buttons for graph, one STOP for just making graph stop updating itself, and second one CHANGE (which changed target to ping) and it actually worked I guess. Buttons with g-labels: Gui, Tab, PINGER Gui, Add, Button, x12 y625 w160 h40 gchan...
- 21 Oct 2022, 01:25
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
Re: ping into graph Topic is solved
The "second" code - the one in the spoiler - is the modified chart.ahk. So, by itself it won't do anything when run. But if you add #Include <chart> to it it will give you the duplicate function error. Chart.ahk is not meant to run by itself. Add it to one of your libraries or #include it. You can ...
- 20 Oct 2022, 01:31
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
Re: ping into graph Topic is solved
Either use #include or include the whole script into yours, but not both. No errors here. If you have ping response times of 500 ms you definitely need to change you y-axis range. I am getting some values that are > 80 but it is very rare, the average is ~25 ms. For slower systems, increase the set...
- 19 Oct 2022, 05:37
- Forum: Ask for Help (v1)
- Topic: FindText working randomly?
- Replies: 7
- Views: 446
Re: FindText working randomly?
Allowing variation in the color value can help, but only if that’s the only difference. If the shape/structure of the letters or anything else is different (even by one pixel), then that won’t help at all. The button's text stays always same and doesn't change. So even when we have same screen reso...
- 19 Oct 2022, 03:20
- Forum: Ask for Help (v1)
- Topic: FindText working randomly?
- Replies: 7
- Views: 446
Re: FindText working randomly?
I’m not talking about ImageSearch. FindText isn’t able to find anything at all. If you compare the text and other elements, you’ll probably find it’s dissimilar enough that it can’t find it and possibly lead you to the solution. Well, so is here any way, to make ImageSearch more... universal, when ...
- 19 Oct 2022, 01:33
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
Re: ping into graph Topic is solved
I am not sure if XGraph.ahk can handle multiple lines in one chart (which is really what you want) . As I wanted to explore Chart a bit more, I tried it for this little ping project. I think it works well. Possibly still a few quirks to work out but overall, this looks nice (in my completely unbias...
- 18 Oct 2022, 07:10
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
Re: ping into graph Topic is solved
Am trying to create another "live-graph", something like there: http://i.imgur.com/kHuOa0f.png With max, min and average ms values. Now I try to "transfer" @flyingDman graph into this triple graph. Here's example: ListLines, Off #NoEnv #SingleInstance, Force #Include XGraph.ahk Gui, Add, Text,, Raw ...
- 18 Oct 2022, 06:53
- Forum: Ask for Help (v1)
- Topic: FindText working randomly?
- Replies: 7
- Views: 446
Re: FindText working randomly?
Capture the text you’re able to find in a screenshot snippet, and do the same on the other computer where it doesn’t find it, then get both images on one computer (or post both here) and zoom in on them both in a side-by-side comparison, and that will probably reveal the answer. Capture them as png...
- 18 Oct 2022, 04:59
- Forum: Ask for Help (v1)
- Topic: FindText working randomly?
- Replies: 7
- Views: 446
FindText working randomly?
When (or when not) does FindText work? It worked very well on my laptop (clickedwhere it was needed), but on my friend's laptop it didn't find FindText image (I used it as image search) in some cases, and script was ruined. She had same resolution/scaling as me and it does not find everything everyt...
- 18 Oct 2022, 03:35
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
Re: ping into graph Topic is solved
"Poor man's" version (charts but not fancy). It might give you some idea how to put the data in arrays without sending them to a file first: url := "google.com", arr := [[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]], factor := 1.25 for x,y in arr { gui, add, text, y+8 x5 w30 vmintxt%x%, % (y.1 = 0) ? ""...
- 17 Oct 2022, 14:25
- Forum: Ask for Help (v1)
- Topic: ping into graph Topic is solved
- Replies: 10
- Views: 979
ping into graph Topic is solved
So this time, I make Pinger whose ping numbers would be placed on graph. I've made a script, which pings X times (in this case, 3 times loop), and saves (string splits) those "X ms" values into array, and next it numerates it (just for study-case). Array := [] SimplePing(URL, byref speed, timeout = ...
- 17 Oct 2022, 04:38
- Forum: Ask for Help (v1)
- Topic: How to create a ListView with split every 2nd line? Topic is solved
- Replies: 16
- Views: 1035
Re: How to create a ListView with split every 2nd line? Topic is solved
But I have logs in .txt file, rather than in "data := ( )"flyingDman wrote: ↑15 Oct 2022, 08:50Suit yourself. You have the right to use less efficient code...
- 16 Oct 2022, 05:25
- Forum: Ask for Help (v1)
- Topic: Can a script "know", that a TCP/UDP push was done?
- Replies: 1
- Views: 282
Can a script "know", that a TCP/UDP push was done?
Now a bit tricky/hard question, I guess (for me). I'm making a TCP or UDP push. I create a server via PuTTY, type port etc. When push is done, I see in PuTTY window that it was ineed done, or not (some lines with informations appear or nothing appears when it disonnected me from server). But can a s...
- 15 Oct 2022, 03:55
- Forum: Ask for Help (v1)
- Topic: How to create a ListView with split every 2nd line? Topic is solved
- Replies: 16
- Views: 1035
Re: How to create a ListView with split every 2nd line? Topic is solved
Or: data := " ( >> command1 result >> command2 result 2 >> command3 result3 >> command4 result4 )" Gui, Add, ListView, r30 w200, Command|Response for x,y in StrSplit(data,">>"," ") z:=strsplit(y,"`n","`r"), y && LV_add("",z.1,z.2) LV_ModifyCol() Gui, Show,, Commands At least 3 times faster and many...
- 14 Oct 2022, 11:00
- Forum: Ask for Help (v1)
- Topic: How to create a ListView with split every 2nd line? Topic is solved
- Replies: 16
- Views: 1035
Re: How to create a ListView with split every 2nd line? Topic is solved
I noticed a command without a response. log = %A_ScriptDir%\test.log If !FileExist(log) { MsgBox, 48, Error, File not found.`n`n%log% Return } Else FileRead, logText, %log% Gui, +AlwaysOnTop Gui, Font, s10 Gui, Add, ListView, r30 w800, Command|Response While pos := RegExMatch(logText "`n>", "s)>+\h...