Search found 336 matches

by ahk7
22 Jan 2021, 14:16
Forum: Ask For Help
Topic: Help with library: TF.ahk
Replies: 12
Views: 470

Re: Help with library: TF.ahk

You could also use TF_Find first as that does allow you to use RegEx and for example \b ("word boundary") have it return all lines, and then count the commas and add one to get the total number of occurrences - here an additional space is added in one of the lines but is still counted (join`r`n Disp...
by ahk7
14 Jan 2021, 14:48
Forum: Scripts and Functions
Topic: [library] TF: Text files & Variables (strings) v3.8
Replies: 53
Views: 24903

Re: [library] TF: Text files & Variables (strings) v3.8

Well, there is https://github.com/hi5/TF#TF_Count but as you will have seen it doesn't support files only variables (strings). But we can make use of TF() https://github.com/hi5/TF#TF to read the contents of a file into a variable and use that - see also section underneath "Introduced in v3: TF()" N...
by ahk7
07 Jan 2021, 14:38
Forum: Offtopic
Topic: Text file Diff and Merge
Replies: 4
Views: 146

Re: Text file Diff and Merge

You might try busybox, a single executable that includes many standard unix tools incl diff + patch which is what you need, you can download a windows version here https://frippery.org/busybox/
by ahk7
06 Jan 2021, 13:30
Forum: Scripts and Functions
Topic: Get Title and Url of the active browser tab
Replies: 27
Views: 968

Re: Get Title and Url of the active browser tab

I get an error on Firefox 84.0.1 (64-bit); Windows 10, Version 10.0.19041.685 twice when I try to get the URL, works in Chrome though. (atnbueno's hasn't worked for me with Firefox for a long time either) --------------------------- GetAccData.ahk --------------------------- Error: 0x80004003 - Inva...
by ahk7
02 Jan 2021, 03:30
Forum: Ask For Help
Topic: Is there a way to select & copy just a certain portion of a text file?
Replies: 7
Views: 197

Re: Is there a way to select & copy just a certain portion of a text file?

Who not paste the new 4 empty lines at the same time as pasting the modified text? Clipboard:=MyModifiedText . "`n`n`n`n" Send ^v Not sure what you're trying to accomplish but you can skip step 2-5 and do it all in AutoHotkey and the FileAppend command 2) Switches to a program that strips HTML codin...
by ahk7
01 Jan 2021, 08:53
Forum: Ask For Help
Topic: Underlining text problem Topic is solved
Replies: 6
Views: 166

Re: Underlining text problem Topic is solved

Why not use an ActiveX control and html/css to style it? See joedf's tutorial https://www.autohotkey.com/boards/viewtopic.php?f=74&t=4588 as well
by ahk7
26 Dec 2020, 15:58
Forum: Ask For Help
Topic: Download Email Via Command Line
Replies: 9
Views: 240

Re: Download Email Via Command Line

Perhaps cygwin + getmail https://cygwin.com/packages/summary/getmail.html - there are portable versions of cygwin. Lots of extra files of course with cygwin but the options seem to be rather limited when it comes to retrieving email (lots of options for sending though) Have you have you considered W...
by ahk7
25 Dec 2020, 16:05
Forum: Ask For Help
Topic: Download Email Via Command Line
Replies: 9
Views: 240

Re: Download Email Via Command Line

Possibly use telnet https://mediatemple.net/community/products/dv/204404584/sending-or-viewing-emails-using-telnet ? (log telnet output to a file) edit: via https://autohotkey.com/board/topic/20112-command-line-pop-client-101/ this is probably it https://www.softpedia.com/get/Internet/E-mail/Mail-Ut...
by ahk7
19 Dec 2020, 11:19
Forum: Ask For Help
Topic: Help me I'm blind.
Replies: 36
Views: 3226

Re: Help me I'm blind.

I don't use AutoGui myself but I just installed it to try it out. If understand your question correctly you want to be able to switch focus from the Window where you design the Gui back to the editor where the code is, is that correct? If so, there is a menu option to "Show/Hide Preview Window" to s...
by ahk7
13 Dec 2020, 09:05
Forum: Ask For Help
Topic: Run program as soon as Print dialog appears
Replies: 9
Views: 139

Re: Run program as soon as Print dialog appears

1. Again check RunWait which is different compared to Run
2. Don't use goto, just use the Reload command
by ahk7
13 Dec 2020, 05:14
Forum: Ask For Help
Topic: Run program as soon as Print dialog appears
Replies: 9
Views: 139

Re: Run program as soon as Print dialog appears

Easiest would be to use https://www.autohotkey.com/docs/commands/WinWaitActive.htm do keep https://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm in mind and of course the Run(Wait) command (check out %comspec% /c on the Run page) @Bobo yours is tied to a hotkey, which is fine, but won't wor...
by ahk7
12 Dec 2020, 12:21
Forum: Forum Issues
Topic: [cit0day] User data breach?
Replies: 9
Views: 378

Re: User data breach?

If it was some religious drivel then I got it too (twice) today/yesterday but on an OLD username from the previous forum which was compromised (multiple times). So if you used it a few years back, that might explain it and someone is using that database again (probably free to download via scammy we...
by ahk7
12 Dec 2020, 08:56
Forum: Ask For Help
Topic: AHK, Excel and the Query problem(?)
Replies: 1
Views: 67

Re: AHK, Excel and the Query problem(?)

I know next to nothing about COM and what have you, but have you considered:

* The ImageSearch + Click command; or use FindText https://www.autohotkey.com/boards/viewtopic.php?t=17834
* Send {TAB x}{enter} to get to the [OK] button
by ahk7
11 Dec 2020, 13:57
Forum: Ask For Help
Topic: Bold/Underline/Strikethrough Highlighted Text Topic is solved
Replies: 6
Views: 127

Re: Bold/Underline/Strikethrough Highlighted Text Topic is solved

One way using Unicode as the OPs website. It will depend on the program you are pasting the text into if it works of course. ^k:: Send ^c Sleep 100 clipboard:=Strike(clipboard) Sleep 100 Send ^v Return Strike(in) { Loop, parse, in out .= A_LoopField Chr(0x336) return out } If you want more such as B...
by ahk7
11 Dec 2020, 13:47
Forum: Scripts and Functions
Topic: [library] TF: Text files & Variables (strings) v3.8
Replies: 53
Views: 24903

Re: [library] TF: Text files & Variables (strings) v3.8

TF v3.8 - Fix to prevent TF_Sort removing last character @ https://github.com/hi5/TF/
-- 11 year old bug it seems :)
by ahk7
05 Dec 2020, 07:17
Forum: Ask For Help
Topic: copy & paste text on a page source line to notepad, for multiple tabs?
Replies: 1
Views: 78

Re: copy & paste text on a page source line to notepad, for multiple tabs?

Depending on the page (dynamic data only presented in a browser) you might just as well use * the https://www.autohotkey.com/docs/commands/URLDownloadToFile.htm command and * then https://www.autohotkey.com/docs/commands/FileReadLine.htm each line into a variable, and * use https://www.autohotkey.co...
by ahk7
05 Dec 2020, 07:14
Forum: Ask For Help
Topic: How to make 100% width of text and Edit ?
Replies: 1
Views: 92

Re: How to make 100% width of text and Edit ?

Basic Example: Gui, New, hwndhGui AlwaysOnTop Resize MinSize Gui, Add, Edit, x0 y0 w100 h100 vMyEdit1, This is some text Gui, Show, x55 y66 w300 h200, Calc Return GuiSize: Gui %hGui%:Default GuiControl, Move, MyEdit1, w%A_GuiWidth% h%A_GuiHeight% Return Esc:: GuiClose: ExitApp 1. You can study anoth...
by ahk7
28 Nov 2020, 07:42
Forum: Ask For Help
Topic: outlook: reply to a selected mail, replace the email adress to one written in the body
Replies: 6
Views: 221

Re: outlook: reply to a selected mail, replace the email adress to one written in the body

If you want the most reliable method I suspect you would need to look at COM to access Outlook, a demo video here to get you started https://www.youtube.com/watch?v=4lNL1Gwx7OQ If that is too complicated, I would resort to good old copy to clipboard, parse data, send keystrokes method. Crude but if ...
by ahk7
28 Nov 2020, 04:53
Forum: Ask For Help
Topic: Call Macros
Replies: 1
Views: 66

Re: Call Macros

I'm not familiar with PMC, but I would probably store a list of the URLS in a simple text file, or perhaps an INI file and simply read each line and then call the "macro" as you call it. Look for "Loop, parse" or "FileReadline" or a filereading loop - https://www.autohotkey.com/docs/commands/LoopRea...

Go to advanced search