Search found 20 matches

by T-Rock
06 Aug 2018, 09:01
Forum: Bug Reports
Topic: if statement influences floating point number
Replies: 13
Views: 1198

Re: if statement influences floating point number

Thanks again.
This explains the difference with objects.
I had no idea about the caching thing.

Maybe I should start looking at v2 ;)
by T-Rock
06 Aug 2018, 08:39
Forum: Bug Reports
Topic: if statement influences floating point number
Replies: 13
Views: 1198

Re: if statement influences floating point number

Thanks for the detailed explanation. I try hard to get it in my head, but it is maybe too hot in Germany these days ... So here if ( String ) I used the variable as an expression, that's why it is converted to a floating point number, right? But why is it not converted, if I do this?: String := "152...
by T-Rock
06 Aug 2018, 07:15
Forum: Bug Reports
Topic: if statement influences floating point number
Replies: 13
Views: 1198

Re: if statement influences floating point number

Thanks for your reply. But why I get then a different output by just commenting the "if" command? String := "1525.13000" ;if ( String ) FileAppend, % String . "`n", * List := [ String ] FileAppend, % List.1 . "`n", * Output: 1525.13000 1525.13000 As is doesn't matter, if I use String := "1525.13000"...
by T-Rock
06 Aug 2018, 03:39
Forum: Bug Reports
Topic: if statement influences floating point number
Replies: 13
Views: 1198

if statement influences floating point number

I have the following code, which delivers an unexpected result (I guess): String := "1525.13000" if ( String ) FileAppend, % String . "`n", * List := [ String ] FileAppend, % List.1 . "`n", * Output: 1525.13000 1525.130000 If I comment out the one line with the "if" command, the output matches my ex...
by T-Rock
14 Feb 2018, 08:47
Forum: Bug Reports
Topic: Loop (files & folders) - question mark as wildcard
Replies: 1
Views: 436

Loop (files & folders) - question mark as wildcard

It seems that if I am using a question mark "?" as a wildcard in the file pattern of a "files & folders" loop, it does not match a dot ".".

Example: C:\Temp\1a.00.txt

this does not work:
Loop, Files, C:\Temp\?????.txt, F

this works:
Loop, Files, C:\Temp\??.??.txt, F

Version: 1.1.28.00
by T-Rock
06 Mar 2017, 06:11
Forum: Scripts and Functions
Topic: Copy filepath to clipboard in Windows Explorer
Replies: 15
Views: 6492

Re: Copy filepath to clipboard in Windows Explorer

This is already available in Windows native. If you select a file or folder in Windows Explorer and press the "Shift"-key while opening the context menu through right-mouse-click, you can enter the menu item "Copy as path". What I don't like is that the resulting string in the clipboard always is su...
by T-Rock
25 Nov 2016, 05:30
Forum: Scripts and Functions
Topic: Excel COM Function Library
Replies: 10
Views: 3516

Re: Excel COM Function Library

Great library, thanks for sharing. I found that the following Excel Constants you define in your library are not according the Microsoft definition: xlLeft := -4159 should be xlLeft := -4131 xlToLeft := -4159 and xlRight := -4161 should be xlRight := -4152 xlToRight := -4161 I found this here: https...
by T-Rock
28 Jan 2016, 09:24
Forum: Scripts and Functions
Topic: [Class] SQLiteDB - Update on 2016-03-28
Replies: 165
Views: 31676

Re: [Class] SQLiteDB

Hello just me, first of all thanks for the class, it's great. I just downloaded the latest SQLite DLL Version 3.10.2 This is not working any more with the check against _MinVersion := 36 , because you extract only the first to numbers of the actual version number (in this case 31) and an error messa...
by T-Rock
28 Nov 2015, 04:37
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

In almost every example, the variable names are just variable names and have no special meaning to the interpreter (but some have meaning to the reader). You can use virtually whatever name you want (except operators like and / or and built-in variable names), even if it's the name of a function or...
by T-Rock
26 Nov 2015, 13:58
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

I don't really understand the "keyword vs not" confusion you seem to be concerned about, but I suppose that the problem would be averted by teaching the basics of the language first. Ok, if you reduce it to this, my pull request doesn’t make sense. Meanwhile I understand the examples, but they did ...
by T-Rock
25 Nov 2015, 09:29
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

So by your reasoning, it would make sense to name every variable that stores an object created by [] or {} or new classname "MyObject", regardless of its purpose. You can call every variable that contains a string "MyString" and so on... I guess, I should be more precise about the reasons for my ch...
by T-Rock
24 Nov 2015, 17:58
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

Ok, fair enough, I thought you take the decision. The example with „baseObject“ is introduced with „Base objects are just ordinary objects“. I think „ MyObject“ can be more easily identified with an „ordinary object“ instead of using „baseObject“, which looks more like a Autohotkey key word. Same wi...
by T-Rock
23 Nov 2015, 18:49
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

you changed more than you originally said. i don't agree with naming everything 'MyObject' to replace stuff like 'baseObj' or 'thing' Well, you are right, I did more than I originally suggested, because I thought it makes sense to standardize the examples. I made a suggestion and you made a hint, I...
by T-Rock
23 Nov 2015, 17:23
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

... obviously something went wrong, the pull request is in my profile ... however, I tried it again and now it's there
by T-Rock
23 Nov 2015, 14:22
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Re: Suggestions on documentation improvements

guest3456 wrote:but the docs are on github, you can easily edit them and create a pull request yourself right from the web interface
Ok, I edited the chapter "Objects" and did a pull request (my first one ...).
I will check later on if maybe there are subchapters, which are also affected.
by T-Rock
20 Nov 2015, 03:57
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 548
Views: 109418

Make Differentiation more obvious between using a word literally or as an example

I suggest to use the prefix "My" everywhere where a phrase is not supposed to be used literally and to declare this once in the help. Especially in the chapter Objects this is often mixed. For example the word "Func" is used in both ways a couple of times, which is very confusing to understand the c...
by T-Rock
12 Apr 2015, 03:17
Forum: Ask For Help
Topic: InStr()
Replies: 1
Views: 564

InStr()

InStr() returns true if Needle is "":

Code: Select all

Needle := ""

MsgBox, % InStr( "*?", Needle )
I would expect that the function returns false.
by T-Rock
02 Apr 2015, 01:50
Forum: Bug Reports
Topic: [Fixed] StrReplace() ReplaceText not optional
Replies: 1
Views: 803

[Fixed] StrReplace() ReplaceText not optional

If I omit the third parameter (ReplaceText) for the function StrReplace(), I get the message "Too few parameters passed to function.", for example: OutputVar := StrReplace(Haystack, SearchText) But in the docu is written for the third parameter "ReplaceText": If omitted or blank, SearchText will be ...
by T-Rock
01 Apr 2015, 15:14
Forum: Ask For Help
Topic: Hotkey with Func Object
Replies: 5
Views: 1227

Re: Hotkey with Func Object

After reading the docu I have two questions: You wrote, the class method requires at least one parameter (hidden parameter this). Is this because it is the class itself and not an instance of it? Why I cannot use the reference to the function directly as an expression for the second parameter like H...
by T-Rock
29 Mar 2015, 06:21
Forum: Ask For Help
Topic: Hotkey with Func Object
Replies: 5
Views: 1227

Hotkey with Func Object

I want to use with a Hotkey a single variable reference containing a function object instead of a label. If the function is inside a class, it does not work. funcobj := Func( "Gui.Help" ) HotKey, F1, %funcobj% return class Gui { Help() { MsgBox, help } } This works fine with "Menu" and "Gui" commands.

Go to advanced search