Search found 24 matches
- 06 Jan 2023, 04:45
- Forum: Ask for Help (v1)
- Topic: Opening a file. Written path vs concatenating a path Topic is solved
- Replies: 2
- Views: 287
Re: Opening a file. Written path vs concatenating a path Topic is solved
You don’t want the quotes around it. Don’t use the line where you assign it to newVar . Just assign full_path as it already is to File . You apparently think that the line you have commented out where you assign the full path including file name includes quotes, but it doesn’t. The quotes indicate ...
- 06 Jan 2023, 03:54
- Forum: Ask for Help (v1)
- Topic: Opening a file. Written path vs concatenating a path Topic is solved
- Replies: 2
- Views: 287
Opening a file. Written path vs concatenating a path Topic is solved
I use the RichEdit class to open rtf files but I´m having issues when I don´t store the full path in a variable. The path to the file is always stored in "H:\Projekter\Ultralyd\NM\" but the filename can change and I need to look up a txt file to know the filename. When I do that it doesnt open the f...
- 08 Dec 2022, 09:58
- Forum: Scripts and Functions (v1)
- Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
- Replies: 204
- Views: 81207
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
@just me
Works like a charm. Thank you!
Works like a charm. Thank you!
- 07 Dec 2022, 06:11
- Forum: Scripts and Functions (v1)
- Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
- Replies: 204
- Views: 81207
Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Looks great for my use where I need to open a table to edit. My question is, how do I run "RichEdit_sample.ahk" so it inserts a specific file from the beginning? Lets say I have another gui with a button. When I click the button I want "RichEdit_sample.ahk" to run and "C:\Users\user\Desktop\RichEdit...
- 02 Dec 2022, 07:47
- Forum: Ask for Help (v1)
- Topic: Total sum of variable%A_index% from edit boxes Topic is solved
- Replies: 2
- Views: 248
Re: Total sum of variable%A_index% from edit boxes Topic is solved
Great, thank you mikey! Think I messed up trying to put both the sum part and n%A_Index% = "" into the same loop
- 02 Dec 2022, 06:39
- Forum: Ask for Help (v1)
- Topic: Total sum of variable%A_index% from edit boxes Topic is solved
- Replies: 2
- Views: 248
Total sum of variable%A_index% from edit boxes Topic is solved
Part of my script is a GUI with a number of edit controls where you can write a number. The total sum of the numbers should then be written in a Readonly edit control. The number of edit controls can change from each use and is based on the variable "muscle_number". In my code below I know there wil...
- 15 Nov 2022, 07:57
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
Explained: Keys Quoted literal strings are considered purely non-numeric in v1.x, so x[1] and x["1"] are not equivalent. Additionally, if a quoted literal string is concatenated with another value (as in "0x" x), the result is treated as purely non-numeric. However, this does not apply to variables...
- 15 Nov 2022, 04:37
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
@mikeyww Can´t seem to make it work if I choose another "Epoke". Seems to only be working when I choose to get information out of the epoke with the > and < signs in them. How can that be?
- 11 Nov 2022, 05:15
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
mikeyww In the case of only one channel (Kanal) being used, how can I get the value of a single cell? So for example if I in the below str want to get "Epoke 3" from the column "Turns"? (should be 658) str = ( Kanal Epoke Mærke Turns Mean Amp T/A Ratio [#/s] [µV] Kanal 1 1 504 304 1.66 2 16.3 104 0...
- 25 Oct 2022, 08:05
- Forum: Ask for Help (v1)
- Topic: Gui show only when WinText visible Topic is solved
- Replies: 3
- Views: 275
Re: Gui show only when WinText visible Topic is solved
winTitle = ahk_exe notepad.exe GroupAdd, grp, %winTitle% GroupAdd, grp, ahk_class AutoHotkeyGUI Gui, -Caption +AlwaysOnTop Gui, Margin, 0, 0 Gui, Add, Button,, Button Loop { WinWaitActive, %winTitle% Gui, Show, NoActivate WinWaitNotActive, ahk_group grp Gui, Hide } Works great - also in other windo...
- 25 Oct 2022, 06:14
- Forum: Ask for Help (v1)
- Topic: Gui show only when WinText visible Topic is solved
- Replies: 3
- Views: 275
Gui show only when WinText visible Topic is solved
I´m looking to create some GUI buttons to put on top of a program. I want the GUI buttons to be visible only when a certain exe is active and a specific WinText is visible. I have made the following code where I use Outlook.exe as an example. It works as in the button is only showing, when I´m in th...
- 24 Oct 2022, 03:38
- Forum: Ask for Help (v1)
- Topic: Array containing first word in new lines Topic is solved
- Replies: 2
- Views: 252
Array containing first word in new lines Topic is solved
My Clipboard contains the text in the attachment
How do I make an array that contains whatever is in "Column 1"?
So in this case it would be Planets := ["Earth ", "Droutera 4IX", "Pluuridian Xiollian"]
Everything is tab separated
How do I make an array that contains whatever is in "Column 1"?
So in this case it would be Planets := ["Earth ", "Droutera 4IX", "Pluuridian Xiollian"]
Everything is tab separated
- 01 Sep 2022, 07:34
- Forum: Ask for Help (v1)
- Topic: Cursor goes back to start after each input in Edit box Topic is solved
- Replies: 1
- Views: 209
Cursor goes back to start after each input in Edit box Topic is solved
I have used the idea from https://www.autohotkey.com/boards/viewtopic.php?f=5&t=7125&p=43169#p43169 to sum the input of two Edit boxes into a third Edit box. It works but my issue is that when I input a number manually into one of the edit boxes, the cursor goes back to the start after each input. S...
- 23 Aug 2022, 08:27
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
Hi mikeyww hope you are still active ;) THe script is working great, but can we change it so that I don´t have to type the "kanal name" when I what to extract the mean? There has been a change so the name of the "kanal" can be called many things now, so I was thinking maybe looping through the names...
- 26 Apr 2021, 06:56
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
Hmm, so when I use the clipboard instead I´ve found that only "Turns" and "Mean Amp" work for only the last "Kanal". So if my table only has Kanal 1, "Turns" and "Mean Amp" is calculated correct (T/A Ratio always shows 0.00). If my table has Kanal 1 and Kanal 2, "Turns" and "Mean Amp" is calculated ...
- 26 Apr 2021, 06:09
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
The difference is probably what is on your clipboard. I did use your clipboard file in testing. You could post your clipboard contents, as well as your revised script. If your data come from Microsoft Excel, then realize that Excel adds extra CRLF sequences to copied text. I open the txt file and m...
- 26 Apr 2021, 03:10
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Re: Calculate mean of coloumns in array of varying size Topic is solved
Global val := [], col := [] str = ( Kanal Epoke Turns Mean Amp T/A Ratio [#/s] [µV] Kanal 1 1 286 256 1.12 2 2069 671 3.1 3 23.8 122 0.19 4 161 205 0.79 > 5 < 435 333 1.31 Kanal 2 1 138 181 0.76 2 2064 750 2.8 3 53.8 115 0.47 4 149 205 0.73 > 5 < 580 361 1.61 Kanal 3 1 158 219 0.72 2 2089 756 2.8 3...
- 23 Apr 2021, 06:54
- Forum: Ask for Help (v1)
- Topic: Calculate mean of coloumns in array of varying size Topic is solved
- Replies: 15
- Views: 1233
Calculate mean of coloumns in array of varying size Topic is solved
Hi On a project, I copy the contents of a table, and then I would like to calculate the mean of different columns. The table I copy always has the same number of coloumns but the number of rows may wary (see picture for an example of two different tables): image.png My goal is to be able to calculat...
- 23 Apr 2021, 02:26
- Forum: Ask for Help (v1)
- Topic: Deleting specific tabs in string Topic is solved
- Replies: 2
- Views: 278
Deleting specific tabs in string Topic is solved
Hi I am working on a project, where I copy to clipboard the contents of a table and then in AHK I want to trim it down to contain only the relevant information for me. Unfortunately I end up with the first character in every line being a tab. How do I delete this without deleting the tabs between th...
- 21 Apr 2021, 05:27
- Forum: Ask for Help (v1)
- Topic: WinGetText and ControlClick of unknown button name
- Replies: 1
- Views: 158
WinGetText and ControlClick of unknown button name
I have an external application where I want to send ControlClick to all visible buttons with a Sleep period in between each ControlClick. I can´t know the names of the buttons beforehand, so I use WinGetText, which stores all the retrieved text (names of all buttons) in a Variable (OutputVar). So ba...