Search found 265 matches

by carno
02 Sep 2023, 22:13
Forum: Scripts and Functions (v1)
Topic: Function for finding the day of any date
Replies: 12
Views: 1619

Re: Function for finding the day of any date

I'm a tech writer and I revised some text: ; https://www.autohotkey.com/boards/viewtopic.php?f=6&t=111429 #NoEnv #SingleInstance Force Gui, New, ,A Program to Find the Day of Any Date Gui, Add, Text, ,Example: 24/09/2022 Where 24 Is the Day, 09 Is the Month, 2022 Is the Year Gui, Add, Text, ,Enter t...
by carno
17 Aug 2023, 14:43
Forum: Scripts and Functions (v1)
Topic: [Class] Printers
Replies: 26
Views: 10245

Re: [Class] Printers

Thanks, tested on Win 7 and worked great!
by carno
27 May 2023, 04:07
Forum: Scripts and Functions (v1)
Topic: add word wrap to a string
Replies: 6
Views: 2710

Re: add word wrap to a string

So before I wrote the above StringWrap function, I had asked ChatGPT to do it but the result was too buggy and rudimentary. Now, with the new ChatGPT-4 out, I tried again, just now. This was my prompt: "Write a string wrap function in AHK that also covers all fringe cases, like words longer than on...
by carno
17 May 2023, 19:46
Forum: Ask for Help (v1)
Topic: Comparing folders?
Replies: 4
Views: 1160

Re: Comparing folders?

- I would use the new 'Loop Files' syntax, it's a bit more intuitive (using F/D/R instead of numbers), and is more forwards compatible. Loop (files & folders) - Syntax & Usage | AutoHotkey https://autohotkey.com/docs/commands/LoopFile.htm E.g. Loop, Files, %Source%\*, R - I would use InStr instead ...
by carno
17 Dec 2022, 22:13
Forum: Scripts and Functions (v1)
Topic: Search selected text in google (script)
Replies: 10
Views: 5031

Re: Search selected text in google (script)

;Some improvements with the help of andreas@ESA:~$ sudo -i #w::searchOrVisitFromClip("https://www.google.com/search?q=") #+w::searchOrVisitFromClip("https://duckduckgo.com/?q=") searchOrVisitFromClip(searchUrl){ clip := clipboardAll clip := "" send, ^c ClipWait, 0.5 if(ErrorLevel){ } else if (clipb...
by carno
17 Dec 2022, 01:24
Forum: Scripts and Functions (v1)
Topic: Autocorrect anywhere
Replies: 1
Views: 579

Re: Autocorrect anywhere

Tested on Windows 7 Pro and works great! It would be great if you can offer a similar script to give the synonym of a highlighted word.
by carno
15 Dec 2022, 11:25
Forum: Scripts and Functions (v1)
Topic: VBA to AHK Translator (Excel)
Replies: 33
Views: 10158

Re: VBA to AHK Translator (Excel)

Is there any AHK to VBA translator?
by carno
14 Dec 2022, 10:19
Forum: Scripts and Functions (v1)
Topic: Function for finding the day of any date
Replies: 12
Views: 1619

Re: Function for finding the day of any date

Tested and worked great on the first run on Win 7 Pro.
by carno
24 Nov 2022, 23:22
Forum: Scripts and Functions (v1)
Topic: [Class] WinHook
Replies: 53
Views: 22620

Re: [Class] WinHook

Worked great on Win 7 on the first try with no error messages!
by carno
12 Sep 2022, 21:14
Forum: Scripts and Functions (v1)
Topic: Open a new tab from address bar in google chrome
Replies: 22
Views: 6181

Re: Open a new tab from address bar in google chrome

Huh. I never noticed this. My first response was, 'well, why couldn't you just do Ctrl+Enter to open in a new tab??' Tried it. Didn't work. I love your script, but don't think I would want to have the page opening in a new tab every time. Most of the time it's perfectly fine to use the same tab. Wo...
by carno
12 Sep 2022, 15:09
Forum: Scripts and Functions (v1)
Topic: Open a new tab from address bar in google chrome
Replies: 22
Views: 6181

Re: Open a new tab from address bar in google chrome

Huh. I never noticed this. My first response was, 'well, why couldn't you just do Ctrl+Enter to open in a new tab??' Tried it. Didn't work. I love your script, but don't think I would want to have the page opening in a new tab every time. Most of the time it's perfectly fine to use the same tab. Wo...
by carno
11 Sep 2022, 23:39
Forum: Scripts and Functions (v1)
Topic: Function Calculating Timespan in Years, Months, and Days
Replies: 21
Views: 9827

Re: Function Calculating Timespan in Years, Months, and Days

This counts Days between two dates: #SingleInstance Force ; Ensures that only the last executed instance of script is running #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases Gui, Add, Text,, Prior Date: Gui, Add, Text,, Post Date: Gui, Add, Edit, vPr ym ; The y...
by carno
02 Sep 2022, 18:52
Forum: Scripts and Functions (v1)
Topic: Calculate age / age calculator
Replies: 3
Views: 1095

Re: Calculate age / age calculator

;T1=20000101 ;T2=20110228010203 ; http://www.autohotkey.com/board/topic/119833-elapsed-time-calculator/?p=682909 T1 = 19770615 T2 = A_Now /* x := ElapsedTime(T1) MsgBox % "Age / Duration Since " T1 "`n" . "`n" x.Yr " Years" . "`n" x.Mon " Months" . "`n" x.Day " Days" . "`n" x.Hr " Hours" . "`n" x.M...
by carno
27 Aug 2022, 20:34
Forum: Scripts and Functions (v1)
Topic: Sort Panel - Text Sorting Tool
Replies: 9
Views: 2917

Re: Sort Panel - Text Sorting Tool

Works great on Win 7. Can we have a Compare Panel that compares texts and shows or highlights the differences? That would be great!
by carno
24 Aug 2022, 13:15
Forum: Scripts and Functions (v1)
Topic: Auto-Suspend script when any program from list is active
Replies: 2
Views: 671

Re: Auto-Suspend script when any program from list is active

Found this solution. If anybody has better one - please. SetTimer, SuspendOnActiveGame, 500 SuspendOnActiveGame: ProgramList := ["DOOMEternalx64vk.exe", "sw.x64.exe", "Hades.exe","Dishonored.exe","Dishonored2.exe","Deathloop.exe","DaysGone.exe","HorizonZeroDawn.exe","DyingLightGame_x64_rwdi.exe"] M...
by carno
26 Jul 2022, 12:52
Forum: Scripts and Functions (v1)
Topic: RunAsTask() - Auto-elevates script without UAC prompt
Replies: 121
Views: 74983

Re: RunAsTask() - Auto-elevates script without UAC prompt

Hi, I'm new to AHK. My problem is "very simple" : I have a .ahk script which I need to run on startup (Windows 10). I placed the script file into the startup dir of Windows. Doing so, the script is launched after login, but the problem is I am prompted every single time by UAC to confirm running it...
by carno
14 Mar 2022, 19:56
Forum: Scripts and Functions (v1)
Topic: [Function] Password prompt
Replies: 2
Views: 2286

Re: [Function] Password prompt

Thanks for this script. I tested for a 100-char long password and it passed the test with flying colors!
by carno
26 Jan 2022, 07:27
Forum: Ask for Help (v1)
Topic: Another RegEx Question Topic is solved
Replies: 6
Views: 765

Re: Another RegEx Question Topic is solved

teadrinker wrote:
26 Jan 2022, 06:49
A couple of options:

Code: Select all

RegExMatch(Clip, "p(?=(ar.*per|er.*par))")

Code: Select all

RegExMatch(Clip, "(p(?=er))?.*p(?=ar)(?(1)|.*(?1))")
Thanks! Both work great. :)
by carno
26 Jan 2022, 06:25
Forum: Ask for Help (v1)
Topic: Another RegEx Question Topic is solved
Replies: 6
Views: 765

Re: Another RegEx Question Topic is solved

regex = (per.*par|par.*per) MsgBox % RegExMatch(Clip , regex, Match) MsgBox % RegExMatch("s sperthisparthat" , regex, Match) MsgBox % RegExMatch("...xpar and noeper cent", regex, Match) MsgBox % RegExMatch("...xoar and noeper cent", regex, Match) MsgBox % RegExMatch("...xpar and noepr cent" , regex...

Go to advanced search