I'm running as admin so it can't be the case?gregster wrote: ↑12 Apr 2024, 15:59Likely a permissions issue. See https://www.autohotkey.com/docs/v1/FAQ.htm#uac
Search found 43 matches
- 21 Apr 2024, 22:12
- Forum: Ask for Help (v1)
- Topic: WinGet ProcessName doesn't work?
- Replies: 3
- Views: 137
Re: WinGet ProcessName doesn't work?
- 15 Apr 2024, 07:59
- Forum: Ask for Help (v1)
- Topic: regex help needed
- Replies: 6
- Views: 325
Re: regex help needed
Before you change the posted script, test it to see whether it works. That tells you whether you have a working starting point. Your sqft clip matches because it contains text that matches "[0-9.,]", which are characters used in numbers. Unless you provide anchors, regex matches substrings. This in...
- 14 Apr 2024, 21:53
- Forum: Ask for Help (v1)
- Topic: regex help needed
- Replies: 6
- Views: 325
Re: regex help needed
If clip is null, you won't find a match. #Requires AutoHotkey v1.1.33 number := "[0-9,]+(\.[0-9]+)?" txt := "(\$|USD|US\$|US|US Dollar|US Dollars)" regex := "i)(" number "\h?" txt "|" txt "\h?" number ")" str1 := "usd10" str2 := "10usd" MsgBox % RegExMatch(str1, regex) "`n" . RegExMatch(str2, regex...
- 14 Apr 2024, 21:45
- Forum: Ask for Help (v1)
- Topic: regex help needed
- Replies: 6
- Views: 325
Re: regex help needed
I have a related question. if RegExMatch(clip, "i)(RM|MYR)?\s?([0-9.,]+)", M) { ;ringgit M := RegExReplace(M, "(RM|MYR)") Tooltip, % "m1" m1 "m2" m2 SetTimer, ToolTipOff, -5000 Sleep 5000 ToolTip, % "" . Round(StrReplace(m2, ",") / 3.45, 1) " SGD from RM" Mousemove 150,0,,R SetTimer, ToolTipOff, -30...
- 12 Apr 2024, 15:47
- Forum: Ask for Help (v1)
- Topic: WinGet ProcessName doesn't work?
- Replies: 3
- Views: 137
WinGet ProcessName doesn't work?
I can't get the ActiveExeName to be produced even though the window is in focus. Why is that so?
Code: Select all
^f4:: ; force kill process
WinGet,ActiveExeName,ProcessName,A
Sleep 1000
Tooltip, % ActiveExeName
WinKill, ahk_exe %ActiveExeName%
Tooltip, Process Killed!
SetTimer, ToolTipOff, -2000
Return
- 10 Apr 2024, 08:22
- Forum: Ask for Help (v1)
- Topic: Text Expansion not working properly in some apps
- Replies: 5
- Views: 225
- 01 Apr 2024, 19:16
- Forum: Ask for Help (v1)
- Topic: Text Expansion not working properly in some apps
- Replies: 5
- Views: 225
- 29 Mar 2024, 19:31
- Forum: Ask for Help (v1)
- Topic: Text Expansion not working properly in some apps
- Replies: 5
- Views: 225
Text Expansion not working properly in some apps
Simple expansion such as
When I type mon in an app such as Todoist, it expands and gives me mMonday and tTuesday instead.
Is there any universal way to correct this behavior in certain apps?
Code: Select all
::mon::Monday
::tue::Tuesday
Is there any universal way to correct this behavior in certain apps?
- 28 Mar 2024, 19:14
- Forum: Ask for Help (v1)
- Topic: Manual run works but not through using a script
- Replies: 2
- Views: 131
Re: Manual run works but not through using a script
Hallo, #1 If the program/document name or a parameter contains spaces, it is safest to enclose it in double quotes. #2 see: https://www.autohotkey.com/docs/v1/lib/Run.htm#Interpretation_of_Target the interesting part is why does the exact same code not run properly on 1 PC but does so without error...
- 16 Mar 2024, 22:49
- Forum: Ask for Help (v1)
- Topic: Manual run works but not through using a script
- Replies: 2
- Views: 131
Manual run works but not through using a script
::removebloat:: RunWait, adb shell pm uninstall --user 0 com.android.browser MsgBox, Applications uninstalled successfully! return I tried running as admin and without, and it just shows this error: Error: Failed attempt to launch program or document: Action: <adb shell pm uninstall --user 0 com.an...
- 08 Mar 2024, 01:01
- Forum: Ask for Help (v1)
- Topic: How to detect mouseover on Window Title bar area only?
- Replies: 1
- Views: 77
How to detect mouseover on Window Title bar area only?
I'm doing this to show a tooltip & remind myself of all the shortcuts I created for each window, and it should only be activated if window is active + mouseover on window title bar.
How do I go about doing the latter? I only know how to detect specific coordinates.
How do I go about doing the latter? I only know how to detect specific coordinates.
- 01 Mar 2024, 04:08
- Forum: Ask for Help (v1)
- Topic: Win11 address bar suggestion pops up when using sendinput
- Replies: 0
- Views: 179
Win11 address bar suggestion pops up when using sendinput
There was no such issue in Win10 but in Win11, using this in the address bar results in the suggestion bar popping up, and I have to manually close it. How can I avoid this issue?
Code: Select all
:X:;db::SendInput %Drive%:\Dropbox{Enter}
- 25 Feb 2024, 17:45
- Forum: Ask for Help (v1)
- Topic: How to find current exe name without using WinSpy
- Replies: 2
- Views: 117
How to find current exe name without using WinSpy
!f4:: WinGetActiveTitle, windowTitle WinKill, %windowTitle% Tooltip, This is working SetTimer, ToolTipOff, -5000 Return I'm currently using this, but sometimes I want to use TaskKill on the main program. WinGet only gives me window title or PID, which is not very reliable. How do I get the exe name...
- 01 Sep 2023, 02:28
- Forum: Scripts and Functions (v1)
- Topic: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins
- Replies: 200
- Views: 111116
Re: Lintalist 1.9 Searchable interactive lists to copy & paste text with plugins
may I know how exactly to insert a rtf file into the snippet? I copied the text from word to Lintalist but it didn't work.
Also went through all your YouTube videos but it doesn't show how to insert RTF files.
Also went through all your YouTube videos but it doesn't show how to insert RTF files.
- 25 Jul 2023, 21:55
- Forum: Ask for Help (v1)
- Topic: How to select contextual menu items in Internet download manager Toolbar
- Replies: 3
- Views: 287
Re: How to select contextual menu items in Internet download manager Toolbar
Hello, It looks like you can know the position of the green triangle ( ImageSearch ), and can know the distance from it to each of the items in the list. yes I can trigger the button, but the list is randomized - E.g. If I want to select 1080p, sometimes it will appear in 1, 5 or 7. Tried cropping ...
- 21 Jul 2023, 22:41
- Forum: Ask for Help (v1)
- Topic: How to select contextual menu items in Internet download manager Toolbar
- Replies: 3
- Views: 287
How to select contextual menu items in Internet download manager Toolbar
1. can't use keyboard shortcuts to toggle to the menu item
2. listings are not always in the same sequence
3. imagesearch is unreliable
4. no classnn
What's the best way to select then?
![Image](https://i.imgur.com/d7OQ61g.png)
2. listings are not always in the same sequence
3. imagesearch is unreliable
4. no classnn
What's the best way to select then?
![Image](https://i.imgur.com/d7OQ61g.png)
- 21 Jul 2023, 21:25
- Forum: Ask for Help (v1)
- Topic: Mixing winactive and not winactive not working properly
- Replies: 2
- Views: 186
Mixing winactive and not winactive not working properly
For instance, this works as intended: #If WinActive("ahk_class EmbeddedWB") || WinActive("Adobe") || WinActive("Creative Cloud") but if I add another !Winactive behind, #If WinActive("ahk_class EmbeddedWB") || WinActive("Adobe") || WinActive("Creative Cloud") || !WinActive("ahk_exe lightroom.exe") t...
- 14 Jul 2023, 20:24
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 197
- Views: 144153
Re: Get the URL of the current (active) browser tab
@newcod3r, I don't understand how the example code you provided could ever have worked as you intended, because as far as I know you can't use hotstrings inside normal if-else statements. I tested with this and it worked fine (only in Chrome of course): GetUrl(wTitle:="ahk_exe chrome.exe") { ErrorL...
- 02 Jul 2023, 00:37
- Forum: Ask for Help (v2)
- Topic: how to get current video filepath of PotPlayer?
- Replies: 22
- Views: 2403
Re: how to get current video filepath of PotPlayer?
Modified script to save in an .m3u file (multimedia list) all the media (video, music) opened by all the instances of PotPlayer, even the minimized one. #Requires AutoHotkey v1.1.33 DetectHiddenWindows, On WinGet, Hwnds, List, ahk_class PotPlayer64 Loop, % Hwnds { WinGetTitle, winTitle, % "ahk_id "...
- 30 Jun 2023, 20:54
- Forum: Ask for Help (v1)
- Topic: regex help needed
- Replies: 6
- Views: 325
regex help needed
Here's my original regex: RegExMatch(clip, "i)(\$|USD|US\$|US|US Dollar|US Dollars)\s?([0-9.,]+)", M) using this, it works for usd10, but not 10usd in clip. then, I tried this: RegExMatch(clip, "i)(\$|USD|US\$|US|US Dollar|US Dollars)\s?([0-9.,]+)|([0-9.,]+)\s?(?:\$|USD|US\$|US|US Dollar|US Dollars)...