Search found 1062 matches

by Flipeador
24 May 2019, 08:53
Forum: Ask For Help
Topic: DllCall - Str vs AStr and WStr Topic is solved
Replies: 12
Views: 251

Re: DllCall - Str vs AStr and WStr Topic is solved

Thanks. Later I'll play with MCode. :wave:
by Flipeador
24 May 2019, 06:26
Forum: Ask For Help
Topic: DllCall - Str vs AStr and WStr Topic is solved
Replies: 12
Views: 251

Re: DllCall - Str vs AStr and WStr Topic is solved

just me Does this also apply to v2?, since integer numbers are stored as Int64. [Possibly already been answered in some post] I'm not good enough with bit-level operations (not yet). Note: There is a topic related to questions about DllCall. https://www.autohotkey.com/boards/viewtopic.php?f=76&t=61...
by Flipeador
23 May 2019, 15:23
Forum: Ask For Help
Topic: processing click on button
Replies: 1
Views: 42

Re: processing click on button

See: https://www.autohotkey.com/boards/viewtopic.php?f=37&t=64621.

Gui.Add("Button", "default", "OK").OnEvent("Click", (*) => ProcessUserInput(Gui))
by Flipeador
23 May 2019, 12:33
Forum: Offtopic
Topic: Gods don't exist.
Replies: 22
Views: 578

Re: Gods don't exist.

I would just like to make my position clear, I am an atheist because I think that no God exists, not at least as man imagines, that is, any God associated (or not necessarily) with some religion is nothing more than an invention of man, in his eagerness to try to explain the unknown, or give false h...
by Flipeador
16 May 2019, 08:15
Forum: Forum Issues
Topic: Forum changes, requests and features
Replies: 63
Views: 14672

Re: Forum changes, requests and features

Could the height of the inline code tag be reduced?. I'm using the Digi board style. I would also appreciate an answer regarding the above.
by Flipeador
16 May 2019, 08:08
Forum: Ask For Help
Topic: Can't rename a menu item more than once ? Topic is solved
Replies: 6
Views: 167

Re: Can't rename a menu item more than once ? Topic is solved

I think I got it, you want to be able to associate data directly to the Menu object, as well as add more procedures to the methods. In that case, I guess there's no other choice. :thumbup: Regarding the "strange behavior" you're talking about, I can't tell you well, there are currently several impor...
by Flipeador
16 May 2019, 07:09
Forum: Ask For Help
Topic: Combination of two Windows APIs: "GetKeyboardLayout" and "ImmGetDescriptionA"
Replies: 5
Views: 197

Re: Combination of two Windows APIs: "GetKeyboardLayout" and "ImmGetDescriptionA"

just me : It's not a good idea to use ANSI in this case, because you would not see 系统默认 in the MsgBox ( update: see the attached image). (I also prefer not to complicate my life making my scripts compatible with ansi) I don't get any description in my system either. I guess that's what 系统默认 is for ...
by Flipeador
15 May 2019, 20:23
Forum: Ask For Help
Topic: Combination of two Windows APIs: "GetKeyboardLayout" and "ImmGetDescriptionA"
Replies: 5
Views: 197

Re: Combination of two Windows APIs: "GetKeyboardLayout" and "ImmGetDescriptionA"

F1:: ThreadId := DllCall("User32.dll\GetWindowThreadProcessId", "Ptr", WinExist("A"), "Ptr", 0, "UInt") hCurrentKBLayout := DllCall("User32.dll\GetKeyboardLayout", "UInt", ThreadId, "Ptr") VarSetCapacity(Buffer, 102, 0) if !DllCall("Imm32.dll\ImmGetDescriptionW", "Ptr", hCurrentKBLayout, "Str", Buf...
by Flipeador
13 May 2019, 17:27
Forum: AutoHotkey v2 Development
Topic: Old OSs support | Deprecated functions | FileSelect | FileSave | DirSelect
Replies: 5
Views: 252

Re: Old OSs support | Deprecated functions | FileSelect | FileSave | DirSelect

If you just take it into account in future, I will appreciate it. Sure. :thumbup: If there are features that would require altering the syntax of FileSelect, I would appreciate a summary I have provided you with 3 links to my functions, whose syntax, functionality and proposed parameters are clearl...
by Flipeador
13 May 2019, 16:56
Forum: AutoHotkey v2 Development
Topic: Old OSs support | Deprecated functions | FileSelect | FileSave | DirSelect
Replies: 5
Views: 252

Re: Old OSs support | Deprecated functions | FileSelect | FileSave | DirSelect

this stopped me from marking an issue as solved, because you combined it with a bunch of unrelated things That's right, I admit it, do you think I should have created four topics?. Well, you can edit it as you like, I can't now, but if you want, as soon as I can, I'll separate them and that's it. I...
by Flipeador
13 May 2019, 08:37
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 48
Views: 3356

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

I think these could be optional (for performance reasons in large buffers perhaps): All bytes within the buffer are zero-initialized . In this case adding the Resize method: ; https://github.com/Lexikos/AutoHotkey_L/commit/fbc503470579d421c2bae9cd5322f07ed98af6c2 if (aNewSize > mSize) memset((BYTE*)...
by Flipeador
13 May 2019, 05:22
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 48
Views: 3356

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

WriteType and ReadType can be added as methods to the Buffer object, but NumPut and NumGet must be kept. Sometimes you have to write or read in memory allocated by the system by other methods (as CoTaskMemAlloc ). Or you just want to avoid using the Buffer object to write a simple value. then it wo...
by Flipeador
13 May 2019, 04:45
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 48
Views: 3356

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

I think, as lexikos said above , it should pad to default C alignment values by default. The last parameter could be a Boolean value to deactivate the automatic padding. Also, if several types are specified in NumGet , it could return an Array. Array := NumGet(Target [, Offset := 0][, Type := "UPtr"...
by Flipeador
12 May 2019, 22:06
Forum: AutoHotkey v2 Development
Topic: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?
Replies: 54
Views: 1186

Re: Will AutoHotkey v2 Syntax Be More Confusing For Newbies?

I wonder what can be done with labels that can't be done with a function, I mean, I've never needed to use labels in my scripts, in fact I don't like them and I don't use them at all. Cons of the labels: They use global scope, this is very bad, you can easily overwrite other variables or classes by ...
by Flipeador
12 May 2019, 21:35
Forum: AutoHotkey v2 Development
Topic: Old OSs support | Deprecated functions | FileSelect | FileSave | DirSelect
Replies: 5
Views: 252

Old OSs support | Deprecated functions | FileSelect | FileSave | DirSelect

I wonder if support for Windows XP (and earlier) in AutoHotkey v2 will be completely removed (from the source code and the manifest ). I think that when a major version is released, these things should be taken into account and support should be abandoned for OSs no longer mantained. Because of: Inc...
by Flipeador
12 May 2019, 13:46
Forum: Ask For Help
Topic: Can't rename a menu item more than once ? Topic is solved
Replies: 6
Views: 167

Re: Can't rename a menu item more than once ? Topic is solved

[...] why to specify "local" [...] variables are local by default, aren't they? Local variables are specific to a single function and are visible only inside that function. Consequently, a local variable may have the same name as a global variable and both will have separate contents. Separate func...
by Flipeador
12 May 2019, 10:48
Forum: Ask For Help
Topic: Can't rename a menu item more than once ? Topic is solved
Replies: 6
Views: 167

Re: Can't rename a menu item more than once ? Topic is solved

I have executed it and I don't get that error message. Try upgrading to 2.0-a102-5c9fb78f+ . Why are you wrapping the menu in a class. Using the Menu object returned by MenuCreate directly is the same thing. Starting with v2 (alpha) has its bad and good points. Bad because an update can cause your s...
by Flipeador
04 May 2019, 14:15
Forum: Pedir Ayuda
Topic: Variables dinamicas
Replies: 2
Views: 186

Re: Variables dinamicas

Hola, esta forma de escribir código es muy poco recomendable, dificulta mucho la lectura y la detección de errores. Mejor usa objetos como Arrays o Associative Arrays . No se entiende cual es el uso que le quieres dar a esas variables exactamente, ejemplo: PathSLM := [] loop read, C:\FTPSonometro\Sc...
by Flipeador
30 Apr 2019, 15:24
Forum: Pedir Ayuda
Topic: If + AND doble condicional Topic is solved
Replies: 1
Views: 83

Re: If + AND doble condicional Topic is solved

#NoEnv SetBatchLines -1 loop { InputBox fecha,, Introduce el mes y año,,,,,,,, % A_MM . "/" . a_Year if ( ErrorLevel ) { ExitApp } else if ( !RegExMatch(fecha,"\s*(\d+)/(\d+)\s*",fecha) ) ; fecha1 = mes | fecha2 = año. { MsgBox El valor introducido no es correcto. } else if (fecha1 < 1 || fecha1 > ...
by Flipeador
29 Apr 2019, 09:49
Forum: Announcements
Topic: Test build - InputHook, long paths, switch-case
Replies: 24
Views: 1595

Re: Test build - InputHook, long paths, switch-case

I like this!. I wonder if swich-case has any other advantage besides being more visually pleasing (or syntax sugar) than if-else ; Like, for example, better performance (I like it anyway :P) . just me I think all that was discussed in other topics. IMO, InputHook is not a problem, I think the proble...

Go to advanced search