Search found 272 matches

by JnLlnd
05 Nov 2018, 16:08
Forum: Ask For Help
Topic: Testing if a server is up?
Replies: 5
Views: 177

Re: Testing if a server is up?

Just found this reading the doc. Looks simpler? (Sorry I do not have a server in my current env to test it) NetDrive := "\\server\share\" DriveGet, Status, Status, %NetDrive% if (Status = "Ready") MsgBox, Server %NetDrive % is online else MsgBox, Server %NetDrive % is offline Status can be: Unknown ...
by JnLlnd
02 Nov 2018, 13:37
Forum: Ask For Help
Topic: Testing if a server is up?
Replies: 5
Views: 177

Re: Testing if a server is up?

@aifritz: I'll look at it.

@trust_me: I know to do it from an AHK script on a system I do not own. And all I know is the path to the file on a server (e.g.: "\\nas\path\file").

Thanks.
by JnLlnd
02 Nov 2018, 11:52
Forum: Ask For Help
Topic: Testing if a server is up?
Replies: 5
Views: 177

Testing if a server is up?

I searched this forum and other sites but could not find if there is a fast way to test if a network connection to a server is up. Using the if FileExist("\\nas\path\file") can take 20 seconds to reply if the "\\nas" server is closed. I need to do this verification in a distributed app on machines I...
by JnLlnd
22 Oct 2018, 08:41
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 125
Views: 44598

Re: Get the URL of the current (active) browser tab

Hi,

> I'm using JnLlnds code. With Firefox 62.0.3, I get sometimes two error messages

I tried only a few times but it worked with the same Firefox version.

BTW, I worked on in but I'm not the one who wrote the "core" of the code. It is from atnbueno.

Jean
by JnLlnd
05 Aug 2018, 16:14
Forum: Scripts and Functions
Topic: Get the URL of the current (active) browser tab
Replies: 125
Views: 44598

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(),...
by JnLlnd
15 Jun 2018, 18:56
Forum: Ask For Help
Topic: Running a PowerShell script from AHK when its path include space Topic is solved
Replies: 11
Views: 501

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!
by JnLlnd
15 Jun 2018, 10:23
Forum: Ask For Help
Topic: Running a PowerShell script from AHK when its path include space Topic is solved
Replies: 11
Views: 501

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?
by JnLlnd
13 Jun 2018, 13:53
Forum: Ask For Help
Topic: Running a PowerShell script from AHK when its path include space Topic is solved
Replies: 11
Views: 501

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...
by JnLlnd
13 Jun 2018, 12:59
Forum: Ask For Help
Topic: Running a PowerShell script from AHK when its path include space Topic is solved
Replies: 11
Views: 501

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...
by JnLlnd
13 Jun 2018, 08:44
Forum: Ask For Help
Topic: Running a PowerShell script from AHK when its path include space Topic is solved
Replies: 11
Views: 501

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...
by JnLlnd
14 May 2018, 17:31
Forum: Ask For Help
Topic: Hotstring() function with label or function vs Ending character
Replies: 7
Views: 282

Re: Hotstring() function with label or function vs Ending character

Ah! Good. The solution is already available: sending A_EndChar.

Thanks.
by JnLlnd
12 May 2018, 22:17
Forum: Ask For Help
Topic: Hotstring() function with label or function vs Ending character
Replies: 7
Views: 282

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)?
by JnLlnd
12 May 2018, 08:25
Forum: Ask For Help
Topic: Hotstring repeated after hitting the ending char twice
Replies: 3
Views: 170

Re: Hotstring repeated after hitting the ending char twice

SirRFI wrote:Consider using #SingleInstance force
Thanks, SirRFI. But, in this case these were just test scripts running under different names :-)
by JnLlnd
11 May 2018, 16:19
Forum: Ask For Help
Topic: Hotstring repeated after hitting the ending char twice
Replies: 3
Views: 170

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...
by JnLlnd
11 May 2018, 16:09
Forum: Ask For Help
Topic: Hotstring repeated after hitting the ending char twice
Replies: 3
Views: 170

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...
by JnLlnd
11 May 2018, 15:58
Forum: Ask For Help
Topic: Hotstring() function with label or function vs Ending character
Replies: 7
Views: 282

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 :-)
by JnLlnd
11 May 2018, 15:10
Forum: Ask For Help
Topic: Hotstring() function with label or function vs Ending character
Replies: 7
Views: 282

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...
by JnLlnd
09 May 2018, 16:55
Forum: Ask For Help
Topic: Getting a list of Universal Applications installed on a system
Replies: 5
Views: 471

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...

Go to advanced search