Search found 990 matches

by Flipeador
Yesterday, 08:51
Forum: Ask For Help
Topic: Kill a process Topic is solved
Replies: 5
Views: 55

Re: Kill a process Topic is solved

Code: [Select all]GeSHi © Codebox Plus

if (!A_IsAdmin)
{
MsgBox "You must run the script as Administrator."
ExitApp
} I := 0
DllCall("Ntdll.dll\RtlAdjustPrivilege", "UInt", 20, "UChar", TRUE, "UChar", FALSE, "UPtrP", I)

; Your code
by Flipeador
19 Sep 2018, 15:36
Forum: Ask For Help
Topic: Using functions from a .dll file
Replies: 3
Views: 176

Re: Using functions from a .dll file

Try this (not tested): DllFile := "C:\Users\josiah.royer\AppData\Roaming\CoolProp\CoolProp_x64.dll" hModule := DllCall("LoadLibrary", "UPtr", &DllFile, "UPtr") nh3Press := 202000 nh3Temp := DllCall(DllFile . "\PropsSI", "AStr", "T&...
by Flipeador
19 Sep 2018, 14:48
Forum: Pedir Ayuda
Topic: Quiero mejorar listas de textos con submenú
Replies: 5
Views: 89

Re: Quiero mejorar listas de textos con submenú

1) No estoy seguro, pero creo que sí. Leyendo este enlace parece ser posible, pero no es tan fácil, debes utilizar DllCall . No te puedo ayudar de momento con esto, requiere de varias pruebas, recién el fin de semana puedo. 2) Si te fijas en el Ejemplo #4 te muestra como añadir iconos a los menus. P...
by Flipeador
19 Sep 2018, 05:11
Forum: Ask For Help
Topic: [Objects] - Clone() bug? Topic is solved
Replies: 15
Views: 217

Re: [Objects] - Clone() bug? Topic is solved

If you mean ObjFullyClone, I do not see why it would not be reliable or safe to be used. It seems ok.
:wave:
by Flipeador
18 Sep 2018, 21:03
Forum: AutoHotkey v2 Development
Topic: Math Functions
Replies: 16
Views: 396

Re: Math Functions

No constants please. 2.7182... and 3.141592... lets the user choose the precision of the float, so some calculations can be performed faster if the user wants. Is this true in AHKv2 ?, Do you have any script that you want to show us that supports this?. Anyway, I do not agree, I think lexikos must ...
by Flipeador
18 Sep 2018, 14:41
Forum: Ask For Help
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 18
Views: 655

Re: traditional for loop: for i = a to b (step c) possibilities

Just to be clear, I do not propose to replace the current behavior, but add support for two types of behaviors.

Btw is your mi_func example similar to something you've seen?

Not that I remember.
by Flipeador
18 Sep 2018, 12:12
Forum: Ask For Help
Topic: traditional for loop: for i = a to b (step c) possibilities
Replies: 18
Views: 655

Re: traditional for loop: for i = a to b (step c) possibilities

I think it would be great to have a For-Loop style as in C++ in AHKv2. for (i := 0, i < 10, ++i) Although it is true that a Range function could also be used outside the loop, however, in my case I never had the need. I think something like this: mi_func(range(0,(i)=>i<10,1&#...
by Flipeador
16 Sep 2018, 21:22
Forum: Pedir Ayuda
Topic: Quiero mejorar listas de textos con submenú
Replies: 5
Views: 89

Re: Quiero mejorar listas de textos con submenú

Hola, En la documentación de AHK también tienes un ejemplo: https://autohotkey.com/docs/commands/Menu.htm#ex2 . ; primero crea el submenu Menu SubMenu1, Add, Fase1.1, MenuHandler Menu SubMenu1, Add, Fase1.2, MenuHandler Menu SubMenu1, Add, Fase1.3, MenuHandler ; luego el menu principal que contiene ...
by Flipeador
15 Sep 2018, 21:28
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 32
Views: 1048

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

I've been thinking better about a Struct object, and I've come to a conclusion: we definitely need a Struct object. Instead of adding a Heap object, we can simply use: StructCreate ( "uchar[1024]" ) or s := StructCreate () `n s.SetCapacity( 1024 ) . I've been seeing...
by Flipeador
14 Sep 2018, 14:36
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 35
Views: 652

Re: <> no longer acceptable as a comparison operator

So, are you saying that we should have more than one operator that does exactly the same thing just because there are users that come from other languages?. Is it a lot of "mental work" to understand that there is a small difference in the operators between different languages?. You can no...
by Flipeador
13 Sep 2018, 05:01
Forum: Tips and Tricks
Topic: Storing images in the script itself and than displaying them in an animated button (picture control)
Replies: 11
Views: 328

Re: Storing images in the script itself and than displaying them in an animated button (picture control)

Also, why do you use UINT with handles and memory addresses? Both are of type UPTR.


Edit: What is "uint", "NULL" :shock:
by Flipeador
09 Sep 2018, 21:37
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 35
Views: 652

Re: <> no longer acceptable as a comparison operator

a <> b [a is less than or greater than b][a is not equal to b]

I think it's ambiguous, for example, when comparing two objects. What is it that an object is smaller or greater than another value?.
by Flipeador
06 Sep 2018, 07:38
Forum: Wish List
Topic: Objects as Function Parameter Defaults
Replies: 11
Views: 210

Re: Objects as Function Parameter Defaults

What would be the point of that?

Nothing, I forgot that it always empties before. I got confused. Clearly it does not make sense.

I've started a topic

:thumbup:

:wave:
by Flipeador
05 Sep 2018, 15:54
Forum: Pedir Ayuda
Topic: Mayusculas, Minusculas y Titulos Topic is solved
Replies: 6
Views: 118

Re: Mayusculas, Minusculas y Titulos Topic is solved

Esta es una forma: n := -1 ^+i:: SetTimer event, 100 n := n > 1 ? 0 : n + 1 ToolTip % {0: "_", 1: "*", 2: "*_"}[n] return ^+u:: ^+l:: ^+t:: gosub rutina if (!ErrorLevel) { Clipboard := A_ThisHotkey == "^+u" ? Format("{:U}", Text) : A_ThisHotkey == &q...
by Flipeador
05 Sep 2018, 15:44
Forum: Pedir Ayuda
Topic: Tecla como si fuera un doble click
Replies: 5
Views: 64

Re: Tecla como si fuera un doble click

Up:: SetTimer _up, off if ( A_PriorHotkey == A_ThisHotkey && A_TimeSincePriorHotkey < 150 ) SendInput ^c else { KeyWait Up, T0.5 if (ErrorLevel) { while (GetKeyState("Up", "P")) { SendInput {Up} Sleep 50 } return } SetTimer _up, -150 } return _up: SendInput {Up} return
by Flipeador
04 Sep 2018, 23:10
Forum: AutoHotkey v2 Development
Topic: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx
Replies: 14
Views: 431

Re: Gui Controls | Gui.FocusedCtrl | ControlGetFocus | ComboBoxEx

Instead of 'ControlGetFocusHwnd', perhaps these could return the hWnd of the focused control Actually I prefer that the "main version" (ControlGetFocus) return the identifier of the control. (I'd welcome ComboBoxEx/ToolbarWindow32 being introduced, but not necessarily for the 1st AHK v2 r...
by Flipeador
04 Sep 2018, 14:56
Forum: Pedir Ayuda
Topic: Consulta lista de reproduccion
Replies: 6
Views: 144

Re: Consulta lista de reproduccion

Prueba el script que te ha puesto A_AhkUser, parece que lo has ignorado. Solo tienes que editar las rutas.
by Flipeador
02 Sep 2018, 12:11
Forum: Ask For Help
Topic: How should I use clone() to prevent objects overwriting Topic is solved
Replies: 2
Views: 71

Re: How should I use clone() to prevent objects overwriting Topic is solved

I think you mean this: https://autohotkey.com/boards/viewtopic.php?f=5&t=52427&p=229509 https://autohotkey.com/boards/viewtopic.php?f=5&t=55014 https://autohotkey.com/boards/viewtopic.php?f=5&t=25430&p=120134 https://autohotkey.com/boards/viewtopic.php?f=5&t=4115&p=22699 ...

Go to advanced search