Search found 235 matches

by m3user
29 Jan 2024, 10:50
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 2
Views: 880

Re: thqby's AutoHotkey_H v2.0 & v2.1

Any chance of merging v1 as well? Thanks.
by m3user
29 Jan 2024, 10:40
Forum: Ask for Help (v1)
Topic: How to rename duplicated fields in the text?
Replies: 3
Views: 276

Re: How to rename duplicated fields in the text?

Thank you, it works great! Try this #Requires AutoHotkey v1.1.35+ #SingleInstance Force str := "text<field name>text<field address>text<field name>text<field address>text<field name>" while (p := RegExMatch(str, "(<([^>]+)>)(?=.*?\1)", m)) { c := o := 0 Loop { str := RegExReplace(str, m1, "<" m2 " D...
by m3user
28 Jan 2024, 17:31
Forum: Ask for Help (v1)
Topic: How to rename duplicated fields in the text?
Replies: 3
Views: 276

How to rename duplicated fields in the text?

Hi, I have strings which contain several fields which may be duplicated. What would be the best approach to rename all duplicated fields? For example, the second and a third etc. occurrence of <field name> field would be replaced with <field name DUP#> etc. Is there a RegEx command to do this? Examp...
by m3user
23 Jan 2024, 16:20
Forum: Ask for Help (v1)
Topic: How to trim the GroupBox title?
Replies: 1
Views: 105

How to trim the GroupBox title?

The title of my GroupBox control changes dynamically. Any idea how to trim the title to not exceed the control's width?

Code: Select all

Gui, Add, GroupBox, w120, How to trim this GroupBox title?
Gui, Show
by m3user
23 Oct 2023, 11:34
Forum: Ask for Help (v1)
Topic: How to read a file from Sharepoint?
Replies: 19
Views: 1414

Re: How to read a file from Sharepoint?

It turns out that UrlDownloadToFile and UrlDownloadToVar don't work because of the permission issue. I'm not sure to set the Sharepoint Library to allow this... As mentioned, I was able to read the file using Word COM. However it is very slow and requires Word to be installed. Is there another COM a...
by m3user
22 Oct 2023, 15:24
Forum: Ask for Help (v1)
Topic: How to read a file from Sharepoint?
Replies: 19
Views: 1414

Re: How to read a file from Sharepoint?

Thanks! Using UrlDownloadToFile produces 403 FORBIDDEN error. Do I need to change some SharePoint settings? url := "https://share.company.net/:u:/r/sites/MyFolder/Shared%20Documents/General/my%20file.txt" ;same results with spaces UrlDownloadToFile, % url, MyFile.txt FileRead, string, MyFile.txt Msg...
by m3user
22 Oct 2023, 13:39
Forum: Ask for Help (v1)
Topic: How to read a file from Sharepoint?
Replies: 19
Views: 1414

Re: How to read a file from Sharepoint?

Thanks both. I tried with a clean path (replaced %20 with spaces, deleted part after the extension) and it still doesn't work (I have proper access rights). url := "https://share.company.net/:u:/r/sites/MyFolder/Shared Documents/General/my file.txt" FileRead, string, %url% msgbox % errorlevel "`n`n"...
by m3user
22 Oct 2023, 10:17
Forum: Ask for Help (v1)
Topic: How to read a file from Sharepoint?
Replies: 19
Views: 1414

Re: How to read a file from Sharepoint?

This works (downloads the file) #Requires AutoHotkey v1.1.33 url := "https://share.company.net/:u:/r/sites/MyFolder/Shared%20Documents/General/my%20file.txt" Run % url This does not work (errorlevel=1, string is blank) url := "https://share.company.net/:u:/r/sites/MyFolder/Shared%20Documents/General...
by m3user
22 Oct 2023, 09:16
Forum: Ask for Help (v1)
Topic: How to read a file from Sharepoint?
Replies: 19
Views: 1414

Re: How to read a file from Sharepoint?

I tried

Code: Select all

Path:=“https://share.company.net/:u:/r/sites/MyFolder/Shared%20Documents/General/my%20file.txt?csf=1&web=1&e=eGALjF”
FileRead, string, %Path%
and it doesn’t work. As said I tried to replace spaces and deleted the last part. Any idea?
by m3user
22 Oct 2023, 04:58
Forum: Ask for Help (v1)
Topic: How to read a file from Sharepoint?
Replies: 19
Views: 1414

How to read a file from Sharepoint?

I have a text file on Sharepoint which I need to read using FileRead command. When I copy the link to file I get this path https: //share.company.net/:u:/r/sites/MyFolder/Shared%20Documents/General/my%20file.txt?csf=1&web=1&e=eGALjF Is there a way to transform the path so it can be opened by script?...
by m3user
22 Aug 2023, 06:25
Forum: Ask for Help (v1)
Topic: How to calculate total height of controls
Replies: 2
Views: 368

Re: How to calculate total height of controls

Thank you so much mikeyww, you did it again!
by m3user
22 Aug 2023, 05:27
Forum: Ask for Help (v1)
Topic: How to calculate total height of controls
Replies: 2
Views: 368

How to calculate total height of controls

I would like to add a colored bar on the right side of the gui. The height of the bar (progress control) should be the same as a size of all controls on the left. How to determine the height of the bar automatically, regardless the number of controls and font used? Thanks. gui, font, s10 gui, add, e...
by m3user
21 Aug 2023, 13:32
Forum: Ask for Help (v1)
Topic: How to wrap multiple text controls?
Replies: 9
Views: 655

Re: How to wrap multiple text controls?

Thanks for your help! Very much appreciated. However I was hoping to wrap the original text between controls..
by m3user
21 Aug 2023, 12:00
Forum: Ask for Help (v1)
Topic: How to wrap multiple text controls?
Replies: 9
Views: 655

Re: How to wrap multiple text controls?

Thanks both. Another example to illustrate it better. There are multiple controls added to complete the sentence with missing data. The text length could vary. Would it be possible to wrap the sentence to gui width? gui, font, s10 gui, add, text, , Hi gui, add, edit, x+5 vName, gui, add, text, x+5, ...
by m3user
21 Aug 2023, 10:43
Forum: Ask for Help (v1)
Topic: How to wrap multiple text controls?
Replies: 9
Views: 655

Re: How to wrap multiple text controls?

Yes thanks, I'm aware about height and width of the control.

My question is if it possible to wrap the text in situation where text does not start at the very left side of the control...
Any other ideas?
by m3user
21 Aug 2023, 09:09
Forum: Ask for Help (v1)
Topic: How to wrap multiple text controls?
Replies: 9
Views: 655

How to wrap multiple text controls?

Hi, I need to show multiple text controls in a gui, one after another, shown as a single text flow, wrapped according to the available width. Please see the script below. I tried +wrap option and setting the control widths but couldn't make it work. How would it be possible to wrap the text to a win...
by m3user
15 Aug 2023, 05:09
Forum: Ask for Help (v1)
Topic: #IfWinNotActive - how to define a Regex pattern?
Replies: 3
Views: 293

#IfWinNotActive - how to define a Regex pattern?

Hi, I'm trying to use Regex to define a group of windows in which the hotstring should not trigger.
The script below is not working, any idea what am I missing?

Code: Select all

SetTitleMatchMode, RegEx

#IfWinNotActive i)notepad|ahk_class Chrome_WidgetWin_1
::br::best regards
#IfWinActive
by m3user
13 May 2023, 05:34
Forum: Ask for Help (v1)
Topic: remove frame shadow effect
Replies: 3
Views: 304

Re: remove frame shadow effect

What about this?

Code: Select all

FrameShadowReset(HGui){
    DllCall("SetClassLong","UInt",HGui,"Int",-26,"Int",0)
}
by m3user
14 Apr 2023, 11:35
Forum: Ask for Help (v1)
Topic: Regex - Remove block comments
Replies: 11
Views: 603

Re: Regex - Remove block comments

This works str2 := RegexReplace(str, "\h*?/\*.*?(\*/[\s¶]*|$)") However it removes /* .... */ comments (in one line). According to Ahk documentation this is not a block comment so it should not be removed. In addition, the /* and */ symbols can be used to comment out an entire section, but only if t...

Go to advanced search