Search found 31 matches
- 20 Dec 2023, 13:27
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59333
Re: UIA v2
Descolada thanks for taking the time to reply. I am sorry for the confusion - I did use .findelement to start with, but then began playing when that didnt work. My full function is: #Requires AutoHotkey v2.0 #include lib\UIA.ahk ;{#region Funtions Open_Inputs_Ladder_LogixDesigner() { LogixDesignerE...
- 20 Dec 2023, 07:17
- Forum: Scripts and Functions (v2)
- Topic: UIA v2
- Replies: 385
- Views: 59333
Re: UIA v2
Hi Descolada First off - thank you what a cracking piece of software - it has been really helpful. First of all I tried to use the UIA Viewer to get the path from the 3rd party app (Allen Bradley LogixDesigner 5000) which gave me for e.g. LogixDesignerEl.ElementFromPath("Y/XY/YQ4YE0q").Highlight() H...
- 19 Dec 2023, 13:44
- Forum: Visual Studio Code
- Topic: AutoHotKey Plus Plus Intellisense/ Hover Tip
- Replies: 0
- Views: 467
AutoHotKey Plus Plus Intellisense/ Hover Tip
Does anyone have any issues with the intellisense/ hover tip when using the AutoHotKey Plus Plus extension in VSCode? Sometimes it works and I find it super helpful. Other times it doesn't and I can't seem to find out why. Closing and re-opening VSCode seems to have no effect, as does disabling and ...
- 08 Dec 2023, 06:32
- Forum: Ask for Help (v2)
- Topic: FileSelect on already opened file
- Replies: 5
- Views: 402
Re: FileSelect on already opened file
Wow thats the badger! Seems to work a treat. Gimme 5 years and I might be able to understand it!
Thanks a lot
Rob
Thanks a lot
Rob
- 07 Dec 2023, 10:55
- Forum: Ask for Help (v2)
- Topic: FileSelect on already opened file
- Replies: 5
- Views: 402
Re: FileSelect on already opened file
Thanks for the reply Mike. I am actually just trying to get a full file path of a user selected file. However this file could also already be open... I do have some work arounds in my head (more to run the process differently rather than how to obtain a files path from a user selection if the file i...
- 07 Dec 2023, 09:04
- Forum: Ask for Help (v2)
- Topic: FileSelect on already opened file
- Replies: 5
- Views: 402
FileSelect on already opened file
Hi people, I am wanting the user to be able to select a file so that I may get its full path. This works: File_Name := FileSelect() except where the file is already open. I think it also depends upon the file type - it seems to work fine with word files, but throws an error when trying to open a sie...
- 21 Nov 2023, 10:54
- Forum: Visual Studio Code
- Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
- Replies: 47
- Views: 19704
- 21 Nov 2023, 08:27
- Forum: Visual Studio Code
- Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
- Replies: 47
- Views: 19704
Re: AutoHotkey v2 Language Support, used in any editor that supports lsp
@Robt800 you can use commented out braces instead. ;{ <-- open brace for folding ... some code ... ;} <-- close brace for folding Thanks very much for this tip. Interestingly I was still getting the issue intermittently. But what I found was that if I put an extra line above the end region and made...
- 20 Nov 2023, 12:51
- Forum: Ask for Help (v2)
- Topic: Arrays Help
- Replies: 8
- Views: 611
Re: Arrays Help
File_List_Strings := "" File_List_Array := [] Loop Files, A_ScriptDir "\*.*" { File_List_Strings .= A_LoopFileName "`n" File_List_Array.Push(A_LoopFileName) } ; /* Also you need do this to avoid last empty string when parsing string's list after */ File_List_Strings := RTrim(File_List_Strings, "`n"...
- 20 Nov 2023, 10:50
- Forum: Visual Studio Code
- Topic: AutoHotkey v2 Language Support, used in any editor that supports lsp
- Replies: 47
- Views: 19704
Re: AutoHotkey v2 Language Support, used in any editor that supports lsp
I've just started using this today - really like it. One thing I've found (and it could well be my vscode settings for all I know) - the region folding downwards arrow seems to move down to the ;#endregion instead of being at the top ;#region . Please see pic: https://i.imgur.com/9A0NzMM.png Thanks ...
- 20 Nov 2023, 09:52
- Forum: Ask for Help (v2)
- Topic: Arrays Help
- Replies: 8
- Views: 611
Re: Arrays Help
I was able to reproduce the error. I thought adding to the length of the array would fix it. I did not try push- while showing providing that option for others, I also like to show the "break down" of steps as well = What Push does in extending the array and adding to it. In this case it appears my...
- 20 Nov 2023, 08:11
- Forum: Ask for Help (v2)
- Topic: Arrays Help
- Replies: 8
- Views: 611
Re: Arrays Help
I was able to reproduce the error. I thought adding to the length of the array would fix it. I did not try push- while showing providing that option for others, I also like to show the "break down" of steps as well = What Push does in extending the array and adding to it. In this case it appears my...
- 20 Nov 2023, 08:04
- Forum: Ask for Help (v2)
- Topic: Arrays Help
- Replies: 8
- Views: 611
Re: Arrays Help
Hello, Your script worked here. #Requires AutoHotkey v2.0 File_List := [] Loop Files A_ScriptDir '\*.*' File_List.Push A_LoopFileName MsgBox A_ScriptDir MsgBox File_List.Length MsgBox File_List[1] MsgBox File_List[1000000000000000] If you try to access an array element with an invalid index, you wi...
- 20 Nov 2023, 05:46
- Forum: Ask for Help (v2)
- Topic: Arrays Help
- Replies: 8
- Views: 611
Arrays Help
Hi, I'm trying to write a script to obtain a list of files in a folder. I have the following that works: #Requires AutoHotkey v2 ; Script Information =========================================================== ; Name: Selective_Files_Renamed ; Description: New Script Description ; AHK Version: AHK 2...
- 16 Nov 2023, 04:37
- Forum: Ask for Help (v1)
- Topic: Excel Com Object - aligning data in cell & setting page break area
- Replies: 6
- Views: 521
Re: Excel Com Object - aligning data in cell & setting page break area
On a note unrelated to your question; you do this several times in your script: xl.Workbooks.Open(LogFile1FullPathExclFileType . ".csv") ; This opens log file 1 XlWb2 := xl.workbooks("Report_Status0.csv") ; This associates Wb2 with log file 1 But this will also work: XlWb2 := xl.Workbooks.Open(LogF...
- 16 Nov 2023, 04:36
- Forum: Ask for Help (v1)
- Topic: Excel Com Object - aligning data in cell & setting page break area
- Replies: 6
- Views: 521
Re: Excel Com Object - aligning data in cell & setting page break area
You did! Sorry - I obviously filtered this out (unintentionally) - Thanks again,flyingDman wrote: ↑15 Nov 2023, 09:48In the script I posted the "enumeration" pages: https://learn.microsoft.com/en-us/office/vba/api/excel.xlhalign and https://learn.microsoft.com/en-us/office/vba/api/excel.xlpagebreak.
Rob
- 15 Nov 2023, 03:52
- Forum: Ask for Help (v1)
- Topic: Excel Com Object - aligning data in cell & setting page break area
- Replies: 6
- Views: 521
Re: Excel Com Object - aligning data in cell & setting page break area
Lovely - thanks a lot - worked a treat. I do try to look through microsofts documentation - but for me tbh - there doesn't seem enough detail for me to work it out. For e.g. the numbers you referrenced (-4131 and -4135) - I saw no mention of this on the microsoft docs? Thanks again for the help thou...
- 14 Nov 2023, 06:02
- Forum: Ask for Help (v1)
- Topic: Excel Com Object - aligning data in cell & setting page break area
- Replies: 6
- Views: 521
Excel Com Object - aligning data in cell & setting page break area
Hi - for anyone who's interested - my code is below (though it isn't really needed as my request is for 'bolt ons') #Requires AutoHotkey v1 ; Script Information =========================================================== ; Name: Siemens_Production_Report_From_Log_Files_P4795-300 ; Description: New S...
- 09 Nov 2023, 14:44
- Forum: Ask for Help (v1)
- Topic: Excel Com Object - entering a formula into a cell Topic is solved
- Replies: 5
- Views: 550
Re: Excel Com Object - entering a formula into a cell Topic is solved
Thanks Russ for the help and taking the time to explain things to me - its much appreciated.
Thanks
Rob
Thanks
Rob
- 09 Nov 2023, 09:27
- Forum: Ask for Help (v1)
- Topic: Excel Com Object - entering a formula into a cell Topic is solved
- Replies: 5
- Views: 550
Re: Excel Com Object - entering a formula into a cell Topic is solved
Wow - so simple - I'd tried all sorts, but hadn't tried a space before and after the variable.
Thanks for helping - it was getting frustrating!
Thanks for helping - it was getting frustrating!