Search found 289 matches

by JnLlnd
22 Apr 2019, 13:02
Forum: Bug Reports
Topic: Hotstring Bug? Topic is solved
Replies: 20
Views: 1981

Re: Hotstring Bug? Topic is solved

Thanks for fixing this Helgef and for the follow-up Lexikos.

Jean
by JnLlnd
28 Jan 2019, 18:08
Forum: Ask For Help
Topic: Passing too few params to a class method?
Replies: 5
Views: 1987

Re: Passing too few params to a class method?

It's certainly a known "feature". The fact that nothing has been done about it for this long implies that it's not a bug, or at least that it's not a serious enough problem to spend development time on. If it bothers you, you can always roll your own error checking with __Call. Until v2 is availabl...
by JnLlnd
14 Jan 2019, 10:47
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 309972

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Assuming there no major updates needed to the lexer, I think you can modify ahk.keywords.properties https://github.com/fincs/SciTE4AutoHotkey/blob/master/source/ahk.keywords.properties Done that. I added strreplace and strsplit . There are probably other new functions but those are the one I use re...
by JnLlnd
14 Jan 2019, 09:41
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 309972

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

I've managed to get this working in the past, but it involved changing the subsystem code in AutoHotkey.exe Maybe try this? https://github.com/joedf/LibCon.ahk/blob/master/LibCon_Compiler/Ahk2CLI.ahk Thank you for the suggestion, JoeDF, but I will look at that. On another topic, I see that some new...
by JnLlnd
11 Jan 2019, 11:09
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 776
Views: 309972

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Hi, I would like to see #warn All, StdOut send its output to the SciTE4Autohotkey output pane. Is there a way to configure it? The #warn doc says: StdOut [v1.1.04+]: Send a description of the warning to stdout (the program's standard output stream), along with the filename and line number. This allo...
by JnLlnd
10 Jan 2019, 22:27
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

In your case you only ever have one use for your class. So you use a Singleton pattern to represent that. So my example B should be like this. Classes A and B are now indentical except the 4 "init" lines in B.__New(): #SingleInstance force instanceA := new A("Bob") instanceB := new B("Joe") MsgBox,...
by JnLlnd
10 Jan 2019, 18:51
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

Oh wow - Sory I must have missed your code. It looks good :thumbup: I kind of expected an array to be honest but a list like that is also incredibly useful. Thanks nnik. I took some time before coming back to you as I was doing my first "real" work with classes. One thing I had a hard time to figur...
by JnLlnd
31 Dec 2018, 19:33
Forum: Bug Reports
Topic: Hotstring Bug? Topic is solved
Replies: 20
Views: 1981

Re: Hotstring Bug? Topic is solved

The point being that you have to use "On" with a pre-existing Hotstring. Turning it Off is irrelevant. It is the "On" with an existing hotstring that makes it work. You can turn a Hotstring On that is already On. Not to get side tracked though, this is definitely buggy. And this is only a in an eme...
by JnLlnd
31 Dec 2018, 14:59
Forum: Bug Reports
Topic: Hotstring Bug? Topic is solved
Replies: 20
Views: 1981

Re: Hotstring Bug? Topic is solved

For string function and label references to work you just need to do an On command for the hotstring. You don't have to turn it Off in order for this to work. With the workaround all the Hotstrings work as expected in the example above. In my example, it is a label (Go:) and it would not work until...
by JnLlnd
31 Dec 2018, 13:29
Forum: Bug Reports
Topic: Hotstring Bug? Topic is solved
Replies: 20
Views: 1981

Re: Hotstring Bug? Topic is solved

I found the bug mentioned earlier after upgrading from 1.1.28.00 to v1.1.30.01. But is was intermittent. If found that the X command is ignored at the first load of the Hotstring but is executed after the Hotstring is turned OFF and ON again. #SingleInstance force strHotstring := ":X*:#go#" firstTim...
by JnLlnd
17 Dec 2018, 15:46
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

For convenience, I put the test code and the class code in the same file, test code at the beginning. FULL TEST AND MODIFIED CLASS CODE #SingleInstance force #Warn All, StdOut DetectHiddenWindows, On SetWorkingDir, %A_ScriptDir% global showTooltip := True MyFileSystem := new FileSystem ; create my i...
by JnLlnd
17 Dec 2018, 15:44
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

As I said earlier, as a tutorial homework, I added some methods to the FileSystem class in order to store the files and directory objects in an "Items" container inside the "FileContainer" sub class. I defined the "__New()" method for the "FileContainer" sub class with two parameters: 1) the path of...
by JnLlnd
17 Dec 2018, 15:25
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

@JnLlnd: If you want more info, you can try this. Cheers. jeeswg's object classes tutorial - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=7&t=54588 Thanks for the reference. It is not directly what I wanted to do but it gives good background on AHK classes and objects. Since A...
by JnLlnd
14 Dec 2018, 12:21
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

I'm finished with your tutorial. There are a few concepts that will become more clear with some experience. Again, it was of great help. Next topic for me is Collections and Classes. As homework, I could use your FileSystemClass and develop the methods and objects required to collect the content of ...
by JnLlnd
13 Dec 2018, 15:47
Forum: Tutorials
Topic: Beginners OOP with AHK
Replies: 48
Views: 13050

Re: Beginners OOP with AHK

This tutorial is one year old today :-) I'm not finished with it but I want to say right now that it is really a great piece ! Looking forward to complete it.

Thanks @nnnik !
by JnLlnd
12 Dec 2018, 17:13
Forum: Scripts and Functions
Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Replies: 193
Views: 39089

Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)

Hello Jean, I'm looking at this page and this page to see if there's anything I can filch - maybe build a DLL, or a modified console app like the one proposed in the first page. I'll post if I have any luck. Regards, burque505 Interesting. This is beyond my own coding capabilities but it would be g...
by JnLlnd
12 Dec 2018, 11:27
Forum: Scripts and Functions
Topic: Class RichEdit - update on 2015-04-14 (v0.1.05.00)
Replies: 193
Views: 39089

Re: Class RichEdit - update on 2015-04-14 (v0.1.05.00)

This RichEdit class is great. Thanks for this just me and others who built on it. But it would be even greater if we could paste HTML content to it and keep the rich format? This would suppose the control would detect that the clipboard contains the HTML format but no RTF and would convert the HTML ...
by JnLlnd
05 Nov 2018, 16:08
Forum: Ask For Help
Topic: Testing if a server is up?
Replies: 5
Views: 431

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: 431

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: 431

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

Go to advanced search