Search found 2911 matches

by Helgef
Today, 07:35
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 18
Views: 253

Re: C++: C++ to machine code via TDM-GCC

It is called factorial in English ( n! )
by Helgef
Today, 07:05
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 18
Views: 253

Re: C++: C++ to machine code via TDM-GCC

So it worked for you didn't it?
I used my script :angel: .
by Helgef
Today, 06:52
Forum: Ask For Help
Topic: Loop through all instances of a class
Replies: 7
Views: 95

Re: Loop through all instances of a class

I agree with gregster 's suggestion, but be aware that this creates circular references which might present problems when freeing objects. You can add a method such as, clear(){ Alarm.Alarmlist.delete(this) } ; example myAlarmInstance.clear() In the example, this is not needed, consider this a note ...
by Helgef
Today, 06:23
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 18
Views: 253

Re: C++: C++ to machine code via TDM-GCC

Hello jeeswg :) Hmm, it's a surprise that AStr is modifying the string, however! I had thought that AHK would create a temporary variable based on vText, and pass that, leaving vText untouched. It does create a temporary string based on vText and passes its address, but then, it updates vText to mat...
by Helgef
Today, 03:30
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 18
Views: 253

Re: C++: C++ to machine code via TDM-GCC

// didn't work It works as I expect, it returns 20 and initialises the char array as: 0, 1 ... 19 Apologies but I still don't see an explanation for the problem. No need for apologies, I didn't see this comment I will try to see if I can better my explaination. Edit: - If you could create a version...
by Helgef
Yesterday, 17:13
Forum: Bug Reports
Topic: 1.1.29.00 Display Issue
Replies: 7
Views: 116

Re: 1.1.29.00 Display Issue

As I said, it is invalid, because you cannot member access a string. "".base.__get := "f" Arr := {"A": {"B": {"C": "kek"}}} MsgBox, % "Arr" ["A", "B", "C"] ; supposed member access, returns: blank f&#...
by Helgef
Yesterday, 16:32
Forum: Bug Reports
Topic: 1.1.29.00 Display Issue
Replies: 7
Views: 116

Re: 1.1.29.00 Display Issue

This is documented behaviour. [v1.0.97+]: Array literal. If the open-bracket is not preceded by a value (or a sub-expression which yields a value), it is interpreted as the beginning of an array literal. For example, [a, b, c] is equivalent to Array(a, b, c) Hence, if it is, it isn't. (That is [&quo...
by Helgef
Yesterday, 13:05
Forum: Offtopic
Topic: Code Puzzle Thread
Replies: 91
Views: 11913

Re: Code Puzzle Thread

I think it is time for a new puzzle, I leave it open to anyone who likes to submit one to do so, please see the rules in the first post and do not hesitate to ask me (via pm) if you have any questions. This is my (pre- 1.1.29.00 ) suggestion for a solution to nnnik 's puzzle, ;add code here objrawse...
by Helgef
Yesterday, 09:02
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 18
Views: 253

Re: C++: C++ to machine code via TDM-GCC

I recommend you take a course In c /c ++ before proceeding.
str[i]=0, this is assignment.

Cheers.
by Helgef
Yesterday, 07:59
Forum: Ask For Help
Topic: Help with classes Topic is solved
Replies: 3
Views: 44

Re: Help with classes Topic is solved

try to use "*-1" (add quotes) and

Code: [Select all]GeSHi © Codebox Plus

SoundAlarm()
{
SoundPlay, % this.alarmSoundClip
}

cheers.
by Helgef
Yesterday, 03:01
Forum: Other Programming Languages
Topic: C++: C++ to machine code via TDM-GCC
Replies: 18
Views: 253

Re: C++: C++ to machine code via TDM-GCC

On unicode build, "astr", myUnicodeString , will pass an address to a temporary ansi string, which has been converted from the unicode string (on unicode builds your strings are always unicode strings). How do you expect chr(0x101) to be converted? The way it is converted is not do...
by Helgef
24 May 2018, 14:00
Forum: Scripts and Functions
Topic: MCode4GCC -- C/C++ to MCode Generator
Replies: 48
Views: 7614

Re: MCode4GCC -- C/C++ to MCode Generator

edit the flags set in the script, not in the gui. I think gcc-tdm does 64 by default so you were a bit unlucky that the code worked on 32 bit too. uCoAAADD ;hex: B82A000000C3 uCoAAADDkJCQkJCQkJCQkA== ;hex: B82A000000C390909090909090909090 The trailing 90... are nop s (no operation (helgef memory :? ...
by Helgef
24 May 2018, 05:49
Forum: Ask For Help
Topic: InBuf function currently 32-bit only (machine code binary buffer searching)
Replies: 19
Views: 1687

Re: InBuf function currently 32-bit only (machine code binary buffer searching)

- Hello jeeswg. I use a private script for these things, it is not suitable for sharing. I use gcc, mostly. Regarding writing your functions in ASM, I'd advice against it, the c compilers will produce just as good machine code (from the asm code it prodcues from you c source ;) ). Even my simple dou...
by Helgef
24 May 2018, 05:19
Forum: Scripts and Functions
Topic: MCode4GCC -- C/C++ to MCode Generator
Replies: 48
Views: 7614

Re: MCode4GCC -- C/C++ to MCode Generator

I installed tdm64-gcc-5.1.0-2.exe to C:\TDM-GCC-64. You can specify -m32 for 32 bit code and -m64 for 64 bit code for gcc tdm. It looks like joedf's script determines the x86/x64 prefix based on the bitness of the compiler executable, this will not be correct for tdm gcc if you use the mentioned fl...
by Helgef
23 May 2018, 03:42
Forum: Ask For Help
Topic: object classes: coding style
Replies: 18
Views: 469

Re: object classes: coding style

I find the video interesting for one reason, he said oop, like it was a word, not a three letter abbreviation, disregarding that, what a waste of time and space :facepalm: .
by Helgef
21 May 2018, 04:11
Forum: Ask For Help
Topic: How to create multiple hotkey using same letter with different combination (ex: A+Lclick, A+B+Lclick, A+C+Lclick)
Replies: 5
Views: 177

Re: How to create multiple hotkey using same letter with different combination (ex: A+Lclick, A+B+Lclick, A+C+Lclick)

When you press d , there is no way for the script to know if you intend to also press w to trigger the d & w hotkey. In this case, you do not need the longhotkey.ahk script. Edit, maybe something like this will work for you, setkeydelay -1,-1 hotkeyToggle(["w up", "d up"], [&...
by Helgef
21 May 2018, 03:33
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 269

Re: %Expr% [BUG] or [_3D_ not understood]

You should start a new topic motivating why it should be removed. An example of valid use is for performance when working with strings, variables are much faster than arrays.
by Helgef
21 May 2018, 01:35
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 269

Re: %Expr% [BUG] or [_3D_ not understood]

Because then you couldn't refer to a variable dynamically. Why do you want to remove it?
by Helgef
21 May 2018, 01:15
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 269

Re: %Expr% [BUG] or [_3D_ not understood]

There are no bugs here. The function is assume-local if it is nested inside another function, otherwise it is assume-global. Regarding Test 4) , as pointed out in the link I provided above, you need to refer to the variables non-dynamically inside a nested function in order for them to be visible (f...
by Helgef
20 May 2018, 16:02
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 269

Re: %Expr% [BUG] or [_3D_ not understood]

Built in Variables are available everywhere, you can't declare them (eg local).

Go to advanced search