Search found 487 matches
- 05 Aug 2018, 16:14
- Forum: Scripts and Functions (v1)
- Topic: Get the URL of the current (active) browser tab
- Replies: 196
- Views: 139181
Re: Get the URL of the current (active) browser tab
in chrome 67 and 68 if you have a new tab window as the main window this wont work to test click to get a new tab in chrome and then run to get list of windows, u will get blank even if you have 5 other regular websites opne @AHKStudent: If we are talking of the same function GetActiveBrowserURL(),...
- 15 Jun 2018, 18:56
- Forum: Ask for Help (v1)
- Topic: Running a PowerShell script from AHK when its path include space Topic is solved
- Replies: 11
- Views: 9224
Re: Running a PowerShell script from AHK when its path include space Topic is solved
@burque505: Thanks for checking and for the additonnal info.
@Flipeador: Sorry, I overlooked your suggestion. This is actually working and is more straight forward solution. Thanks!
@Flipeador: Sorry, I overlooked your suggestion. This is actually working and is more straight forward solution. Thanks!
- 15 Jun 2018, 10:23
- Forum: Ask for Help (v1)
- Topic: Running a PowerShell script from AHK when its path include space Topic is solved
- Replies: 11
- Views: 9224
Re: Running a PowerShell script from AHK when its path include space Topic is solved
@burque505: Does it also work when the A_ScriptDir (or A_WorkingDir if we use it) includes a space in its path?
- 13 Jun 2018, 13:53
- Forum: Ask for Help (v1)
- Topic: Running a PowerShell script from AHK when its path include space Topic is solved
- Replies: 11
- Views: 9224
Re: Running a PowerShell script from AHK when its path include space Topic is solved
Luck guy! The drive where I wanted to run my PS script does not support 8.3! I tested the script on another drive supporting it and it solved the issue. If you know of another way to have a script with path/file name including spaces to be launched, let me know. This would make my solution work on a...
- 13 Jun 2018, 12:59
- Forum: Ask for Help (v1)
- Topic: Running a PowerShell script from AHK when its path include space Topic is solved
- Replies: 11
- Views: 9224
Re: Running a PowerShell script from AHK when its path include space Topic is solved
Found it. We need to get the script file's "8.3 short path and name". #SingleInstance force ; Skips the dialog box and replaces the old instance automatically strPsScriptFile := A_ScriptDir . "\pause.ps1" Loop, %strPsScriptFile% if StrLen(A_LoopFileShortPath) ; in case the file system does not suppo...
- 13 Jun 2018, 08:44
- Forum: Ask for Help (v1)
- Topic: Running a PowerShell script from AHK when its path include space Topic is solved
- Replies: 11
- Views: 9224
Running a PowerShell script from AHK when its path include space Topic is solved
How do you Run (or RunWait) a PowerShell script from an AHK script when its path includes space(s). For example, this PS1 script (save as "pause.ps1": write-host "Press any key to continue..." [void][System.Console]::ReadKey($true) And this AHK script: #SingleInstance force ; Skips the dialog box an...
- 14 May 2018, 17:31
- Forum: Ask for Help (v1)
- Topic: Hotstring() function with label or function vs Ending character
- Replies: 7
- Views: 1266
Re: Hotstring() function with label or function vs Ending character
Ah! Good. The solution is already available: sending A_EndChar.
Thanks.
Thanks.
- 12 May 2018, 22:17
- Forum: Ask for Help (v1)
- Topic: Hotstring() function with label or function vs Ending character
- Replies: 7
- Views: 1266
Re: Hotstring() function with label or function vs Ending character
Thanks Lexikos for the precision. Would you consider in a future release to add the "Keep ending character" options for "other hotstrings" (those non-auto-replace)?
- 12 May 2018, 08:25
- Forum: Ask for Help (v1)
- Topic: Hotstring repeated after hitting the ending char twice
- Replies: 3
- Views: 1021
Re: Hotstring repeated after hitting the ending char twice
Thanks, SirRFI. But, in this case these were just test scripts running under different names :-)SirRFI wrote:Consider using #SingleInstance force
- 11 May 2018, 16:19
- Forum: Ask for Help (v1)
- Topic: Hotstring repeated after hitting the ending char twice
- Replies: 3
- Views: 1021
Re: Hotstring repeated after hitting the ending char twice
Yes, I succeeded making a fool of myself twice the same day :-)
I had two scripts running with the same hotstring "by the way". This is the reason...
A moderator could delete my two last posts, I would not be offended...
I had two scripts running with the same hotstring "by the way". This is the reason...
A moderator could delete my two last posts, I would not be offended...
- 11 May 2018, 16:09
- Forum: Ask for Help (v1)
- Topic: Hotstring repeated after hitting the ending char twice
- Replies: 3
- Views: 1021
Hotstring repeated after hitting the ending char twice
I hope I will not make a fool of myself again ;-) but, speaking of hotstring, I had this strange behavior. Using the format ::btw::by the way , is it just me but if I press the ending char twice after the trigger "btw", I get the hotstring twice with part of the first instance deleted for the length...
- 11 May 2018, 15:58
- Forum: Ask for Help (v1)
- Topic: Hotstring() function with label or function vs Ending character
- Replies: 7
- Views: 1266
Re: Hotstring() function with label or function vs Ending character
And thanks, swagfag.
- 11 May 2018, 15:58
- Forum: Ask for Help (v1)
- Topic: Hotstring() function with label or function vs Ending character
- Replies: 7
- Views: 1266
Re: Hotstring() function with label or function vs Ending character
Oh ;-) I first tested it with the format ::btw::by the way then changed last minute to using Send. (never do :-\ )
So it is not using the Hotstring() function with a Label or a Function that cause this but the use of Send. I see...
This was awkward, but it replied my question :-)
So it is not using the Hotstring() function with a Label or a Function that cause this but the use of Send. I see...
This was awkward, but it replied my question :-)
- 11 May 2018, 15:10
- Forum: Ask for Help (v1)
- Topic: Hotstring() function with label or function vs Ending character
- Replies: 7
- Views: 1266
Hotstring() function with label or function vs Ending character
Not sure if this is the desired behavior or if this should be considered as a bug. When you type an hotstring trigger with default options, the ending character is kept after the hostring is expanded. For example, with the code below, type "btw" and Enter and the expanded "by the way" string will be...
- 09 May 2018, 16:55
- Forum: Ask for Help (v1)
- Topic: Getting a list of Universal Applications installed on a system
- Replies: 6
- Views: 3571
Re: Getting a list of Universal Applications installed on a system
I don't really know CLSID_EnumInstalledApps. But on UWP, you can start here: https://en.wikipedia.org/wiki/Universal_Windows_Platform And search "UWP" on this forum. There are not many posts on it yet. But you will find how to launch them here: https://www.google.com/url?q=https%3A%2F%2Fautohotkey.c...
- 09 May 2018, 16:43
- Forum: Ask for Help (v1)
- Topic: Getting a list of Universal Applications installed on a system
- Replies: 6
- Views: 3571
Re: Getting a list of Universal Applications installed on a system
Thanks for the ref, iPhilip but, unfortunately, the Universal Application (UWP apps) are not covered by CLSID_EnumInstalledApps.
- 09 May 2018, 14:36
- Forum: Ask for Help (v1)
- Topic: Getting a list of Universal Applications installed on a system
- Replies: 6
- Views: 3571
Re: Getting a list of Universal Applications installed on a system
Bump... No idea anybody?
- 01 May 2018, 22:50
- Forum: Ask for Help (v1)
- Topic: Getting a list of Universal Applications installed on a system
- Replies: 6
- Views: 3571
Getting a list of Universal Applications installed on a system
Hi, I found this PowerShell script on this page: https://jcutrer.com/howto/windows/find-aumid . It lists the AUMID (Application User Model ID) of Universal Applications installed on the system (Windows 10). Is it possible to obtain the same result in AutoHotkey? This is a PowerShell script: $install...
- 03 Apr 2018, 16:44
- Forum: Ask for Help (v1)
- Topic: 4 options to change the current folder in Windows Explorer
- Replies: 77
- Views: 38355
Re: 4 options to change the current folder in Windows Explorer
Hi Eureka, Please read this post and the following: https://autohotkey.com/boards/viewtopic.php?p=25199#p25199 For me, it still does not work if there is a slash after the hash. My message and example should have been: "This will fail if myPath includes a hash and has a slash after it (as in C:\C#Pr...
- 13 Feb 2018, 16:14
- Forum: Ask for Help (v1)
- Topic: Updating hostrings with function Hotstring()
- Replies: 1
- Views: 621
Re: Updating hostrings with function Hotstring()
Thinking a little bit more about this, I realize that if I use the "On" parameter when I redefine an hotstring (like this: Hotstring(":T*C:aaa", "ccc!", "On") ), this works: ; define hotstring with "T*C" options (Text raw, Do not wait for ending key, Case sensitive) Hotstring(":T*C:aaa", "bbb!", "On...