Search found 1186 matches
- 28 Sep 2019, 02:48
- Forum: Ask for Help (v2)
- Topic: Problem in rewriting of VarSetCapacity to BufferAlloc
- Replies: 13
- Views: 4149
Re: Problem in rewriting of VarSetCapacity to BufferAlloc
I don't see why it should be limited only to the Buffer object. Target can be any object with properties Ptr and Size , or any memory address. If a Copy (To) method is added, a CopyFrom method should also be added. For example, if we retrieve data from the clipboard ( GlobalAlloc ) and want to copy ...
- 27 Sep 2019, 02:48
- Forum: Ask for Help (v2)
- Topic: How does Gui.Submit work now?
- Replies: 10
- Views: 2982
Re: How does Gui.Submit work now?
I haven't tried it, but it looks like a bug. NamedCtrlContents should be a Map object --> MsgBox(Type(NamedCtrlContents) . " = Map") . You can try this: https://lexikos.github.io/v2/docs/objects/Object.htm#OwnProps . Gui.Pos returns an Object with properties X, Y, W and H. Properties are not case se...
- 25 Sep 2019, 13:40
- Forum: Ask for Help (v2)
- Topic: Problem in rewriting of VarSetCapacity to BufferAlloc
- Replies: 13
- Views: 4149
Re: Problem in rewriting of VarSetCapacity to BufferAlloc
I am not sure I understand the reason for that question. As I said, the function can be used to reuse an existing Buffer or a part of it, regardless of how it was allocated. Passing an object with properties Ptr and Size can ensure that the function does not write to an invalid memory location. I ag...
- 20 Sep 2019, 12:33
- Forum: Ask for Help (v1)
- Topic: Drag and Drop a file into another window
- Replies: 7
- Views: 3026
- 19 Sep 2019, 10:28
- Forum: Ask for Help (v1)
- Topic: How to open the "new" open folder dialog?
- Replies: 8
- Views: 1472
Re: How to open the "new" open folder dialog?
That's what it's for, try it:
Code: Select all
Gui +HWNDhGui
Gui Add, Button,, My Button
Gui Show, x10 y10 w100 h100
ChooseFolder( [hGui, "Dialog title - ChooseFolder.."] )
ExitApp
- 19 Sep 2019, 09:34
- Forum: Ask for Help (v1)
- Topic: How to open the "new" open folder dialog?
- Replies: 8
- Views: 1472
Re: How to open the "new" open folder dialog?
The first parameter allows you to specify the owner window. Is that what you are referring to?.
- 18 Sep 2019, 09:22
- Forum: Ask for Help (v2)
- Topic: Problem in rewriting of VarSetCapacity to BufferAlloc
- Replies: 13
- Views: 4149
Re: Problem in rewriting of VarSetCapacity to BufferAlloc
Adding the FillByte parameter to the BufferAlloc function seems most appropriate. Another option, which does not have to be exclusive, is to remove the fill from the Size property and add a MemFill(FillByte,Target,Bytes,Offset) function. Having a function dedicated specifically to this is very usefu...
- 18 Sep 2019, 08:59
- Forum: Ask for Help (v1)
- Topic: How to open the "new" open folder dialog?
- Replies: 8
- Views: 1472
Re: How to open the "new" open folder dialog?
AHKv1: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=65909&p=283111#p283101(specifically here).
@jNizM: My v2 code is out of date. I'll be updating it soon.
@jNizM: My v2 code is out of date. I'll be updating it soon.
- 11 Sep 2019, 17:53
- Forum: Ask for Help (v1)
- Topic: Taking elemts from arrays: dots vs. square brackets Topic is solved
- Replies: 6
- Views: 1556
Re: Taking elemts from arrays: dots vs. square brackets Topic is solved
@john_c: I only use AHKv2, and there is no other way to do it (with the recent updates) when you use a Map object (associative array).
o.xxx is no longer the same as o["xxx"]. For Array objects (linear arrays), only arr[index] can be used. I really like the new changes.
o.xxx is no longer the same as o["xxx"]. For Array objects (linear arrays), only arr[index] can be used. I really like the new changes.
- 08 Sep 2019, 19:33
- Forum: Pedir Ayuda
- Topic: script para mover posicion de mouse 20 pixeles hacia abajo. Topic is solved
- Replies: 7
- Views: 11382
Re: script para mover posicion de mouse 20 pixeles hacia abajo. Topic is solved
@Moises99:
Crea un nuevo tema.
Code: Select all
#Warn
#NoEnv
#SingleInstance Force
SetBatchLines -1
Velocidad := 5
~LButton::
while GetKeyState("LButton")
{
MouseXY(0, -Velocidad)
Sleep 25
}
return
MouseXY(X, Y)
{
DllCall("User32.dll\mouse_event", "Int", 1, "Int", X, "Int", Y, "Int", 0, "Ptr", 0)
}
- 08 Sep 2019, 08:05
- Forum: Pedir Ayuda
- Topic: Ayuda de un experto por favor Topic is solved
- Replies: 2
- Views: 2482
Re: Ayuda de un experto por favor Topic is solved
Hola, como hago para hacer un recuadro de esa misma medida y ponerlo en esas coordenadas o posición de la pantalla ¿Que quieres decir con esto?. cuando detecte un punto rojo inmediatamente mande una señal de sonido ¿Cuando tetecte un punto rojo en cualquier parte del mini mapa?. No utilizo AHK para ...
- 06 Sep 2019, 08:52
- Forum: Pedir Ayuda
- Topic: ver menu contextual
- Replies: 3
- Views: 1961
Re: ver menu contextual
La documentación explica todo esto, es bastante clara: https://www.autohotkey.com/docs/Program.htm.
No se a que te refieres con que no cuenta con un menu contextual ni con las teclas de funciones. Pregunta y vemos.
No se a que te refieres con que no cuenta con un menu contextual ni con las teclas de funciones. Pregunta y vemos.
- 06 Sep 2019, 08:46
- Forum: Pedir Ayuda
- Topic: ayuda con script
- Replies: 2
- Views: 1805
Re: ayuda con script
Si el proceso a terminar tiene permisos mas elevados, deberás ejecutar AutoHotkey como Administrador. #NoEnv #SingleInstance Force SetBatchLines -1 #Persistent DllCall("Ntdll.dll\RtlAdjustPrivilege", "UInt", 20, "UChar", TRUE, "UChar", FALSE, "IntP", 0) SetTimer Cerrar, 2000 return Cerrar: Process C...
- 01 Sep 2019, 22:46
- Forum: Pedir Ayuda
- Topic: Ayuda en Batch Mover archivos de una lista txt
- Replies: 2
- Views: 2219
Re: Ayuda en Batch Mover archivos de una lista txt
Usando AutoHotkey: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Enable warnings to assist with detecting common errors. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. SetBatchLines -1 ; ---------------------------------------...
- 01 Sep 2019, 22:35
- Forum: Pedir Ayuda
- Topic: ver menu contextual
- Replies: 3
- Views: 1961
Re: ver menu contextual
Hola!
Prueba ^m:: send {appskey} o ^m:: send {rbutton}.
Prueba ^m:: send {appskey} o ^m:: send {rbutton}.
- 17 Aug 2019, 10:07
- Forum: Pedir Ayuda
- Topic: Captura de Pantalla
- Replies: 2
- Views: 2052
Re: Captura de Pantalla
En el antiguo foro hay un tema al respecto. El código es medio feo pero funciona. Guarda la imagen en el escritorio. #NoEnv #SingleInstance Force SetBatchLines -1 !p:: ; Alt+p File := A_Desktop . "\" . A_Now . ".bmp" ; Donde guardar la imagen. CaptureScreen(,, File) return CaptureScreen(aRect := 0, ...
- 21 Jul 2019, 19:10
- Forum: Pedir Ayuda
- Topic: Me gustaría mover el mouse con el teclado Topic is solved
- Replies: 6
- Views: 3127
Re: Me gustaría mover el mouse con el teclado Topic is solved
La opción 2 debería funcionar, debes ejecutar el script como Administrador.
- 18 Jul 2019, 19:14
- Forum: Pedir Ayuda
- Topic: Me gustaría mover el mouse con el teclado Topic is solved
- Replies: 6
- Views: 3127
Re: Me gustaría mover el mouse con el teclado Topic is solved
Hola; Opción #1: #NoEnv #SingleInstance Force SetBatchLines -1 CoordMode Mouse, Screen Count := 5 i:: Move(0, -Count) j:: Move(-Count, 0) k:: Move(0, Count) l:: Move(Count, 0) Move(X, Y) { local MouseGetPos CX, CY MouseMove % CX+X, CY+Y } Opción #2: #NoEnv #SingleInstance Force SetBatchLines -1 Coor...
- 18 Jul 2019, 16:41
- Forum: Forum Issues
- Topic: Forum changes, requests and features
- Replies: 76
- Views: 37752
Re: Forum changes, requests and features
Well, IMO with one dark theme and one light theme is enough. I only use Digi , the other dark ones look very ugly to me. ok, the change should be live Did you write .postlink:visited and .postlink:hover again?, you just had to change the content. I'm asking because the color of .postlink:visited doe...
- 18 Jul 2019, 15:09
- Forum: Forum Issues
- Topic: Forum changes, requests and features
- Replies: 76
- Views: 37752
Re: Forum changes, requests and features
@joedf It's OK. The important thing is the second code (related to this).