Search found 189 matches

by _3D_
13 Nov 2018, 09:57
Forum: Forum Issues
Topic: Please return back old forum theme.
Replies: 9
Views: 269

Re: Please return back old forum theme.

Nice work ty.
by _3D_
24 Oct 2018, 12:28
Forum: Forum Issues
Topic: Please return back old forum theme.
Replies: 9
Views: 269

Re: Please return back old forum theme.

"SimplicityOld" return back blue, but code field still no expand/collapse button and highlighting.
by _3D_
24 Oct 2018, 01:11
Forum: Forum Issues
Topic: Please return back old forum theme.
Replies: 9
Views: 269

Please return back old forum theme.

The new one haven`t needed functionality, especially for code presentation.
by _3D_
23 Sep 2018, 02:55
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

fast and furious

A simple speed test about sending and running functions as arguments. #SingleInstance Force ;Copyright (c) D.Donchev loops:= 100000 ;test function funct() { return "" } fatfu()=>"" ;complete argument check ------------------------------------------------------ ff_1(arg:="") { return %(type(arg) == "...
by _3D_
31 Aug 2018, 03:53
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

dd_pixelGetColor.ahk

An old project that I use all the time. https://autohotkey.com/boards/viewtopic.php?f=19&t=2400#p17615 Some in time I add snapShot() that get bmp from screen and save it to file. So this day I revised snapShot() and let see what happen: The first code: snapShot() { Suspend("On") ;disable hotkeys to ...
by _3D_
23 Aug 2018, 14:06
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

[POWER of FAT ARROW functions] Part I - Mostly harmless.

Preamble: https://lexikos.github.io/v2/docs/Variables.htm#fat-arrow () => expr it is simple sintax but let see what it can do. Examples: Lets begin with something simple. sup:= 7 function() function() { global ;global scope to function() out:= 10 ;function name is visible inside whole containing bod...
by _3D_
22 Aug 2018, 06:26
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

[POWER of FAT ARROW functions] Part II

Why PART II first? PART I is more complicated and longer. I still write examples to PART I, but here some conclusions that works. Everything started in search to find possibilities to have external format string and passed it as argument. https://autohotkey.com/boards/viewtopic.php?f=19&t=2400&p=231...
by _3D_
03 Aug 2018, 06:19
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

[SetTimer] Crazy syntax.

And one more: $Numpad1::numpad1(), setTimer(numpad1() => (send("{Numpad1}")), 2000) In this case only body of numpad1() will be executed without setTimer. $Numpad1::numpad1(), SetTimer(numpad1() => (Send("{Numpad1 5}")), 180000) $Numpad2::numpad2(), SetTimer(numpad2() => (Send("{Numpad2 5}")), 17000...
by _3D_
01 Aug 2018, 06:47
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

[SetTimer] Crazy syntax.

Due to SetTimer changed to get as first argument function, here some crazy syntax to keep things. WAS $Numpad1::Send("{Numpad1}"), SetTimer("$Numpad1", 2000) NOW - shortest crazy syntax $Numpad2::numpad2(), numpad2()=> (Send("{Numpad2}"), SetTimer(A_ThisFunc, 2000)) !!! put the fat function code int...
by _3D_
16 Jul 2018, 12:23
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

Socket

[Function] SocketMove Move data to given socket (like CommMove) fully compatible with Virtual Serial Ports Emulator (VSPE) http://www.eterlogic.com/Products.VSPE.html SockMove(file, byRef port) { addr:= StrSplit(port.dest, ":", " `t") VarSetCapacity(wsad, 32) if !DllCall("Ws2_32\WSAStartup", "UShort...
by _3D_
30 Jun 2018, 23:40
Forum: Gaming
Topic: Stop script running in the background after change window
Replies: 3
Views: 241

Re: Stop script running in the background after change window

https://autohotkey.com/docs/commands/_I ... m#Examples
* See in example:
#IfWinActive, yourGame ;block begin no {}
...
#IfWinActive ;block end

* Check what is the exactly name of yourGame executive (game.exe, loader.exe, somename.exe)
by _3D_
30 Jun 2018, 14:49
Forum: Gaming
Topic: Stop script running in the background after change window
Replies: 3
Views: 241

Re: Stop script running in the background after change window

You need to check what is winactive() and do actions if your game is active.
by _3D_
28 Jun 2018, 08:30
Forum: Gaming
Topic: InGame v2.0
Replies: 82
Views: 32104

[Function] Tip

One more crazy syntax using associative array. Tip(text:= "", what:= "") { tray(t) => traytip(t,,0x10) ;different arguments list ;tooltip(t) ;if key not exist list will return "" static tarr:= {"tray":"tray", "tool":"tooltip"} static ttip:= tarr["tray"] ;if "" use last known %(ttip:= tarr[what]? tar...
by _3D_
21 May 2018, 00:41
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 690

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

I do some tests and conclusion - AHK have main problem with %Expr%. Test 1 : global variables and functions deref(__exp) { return RegExMatch(__exp, "i)[%][a-z_]\w*[%]", __var)? __exp:= deref(RegExReplace(__exp, "i)" __var.Value, %subStr(__var.Value, 2, -1)% "")): __exp } a:= 5 b:= 5 c:= 5 while A_In...
by _3D_
20 May 2018, 16:54
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 690

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

fun() fun() { deref(__exp) { ;_:= a ;a action ;_:= b ;b action ;_:= c ;c action if RegExMatch(__exp, "i)[%][a-z_]\w*[%]", __var) __exp:= deref(RegExReplace(__exp, "i)" __var.Value, %subStr(__var.Value, 2, -1)% "")) return __exp } a:= 1 b:= 1 c:= 1 while a <= 3 msgBox(deref("a= %a% | b= %b% | c= %c%...
by _3D_
20 May 2018, 15:40
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 690

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

I see - there need action with variable with the main function not just action. df(s) { __:= 1 ; some action but nothing return %s% ; <<< a not visible } And ... df(s) { __:= a ; action with var from main function return %s% ; <<< a visible } Thanks Helgef. fun() fun() { a:= 1 df(s) { return %s% ; <...
by _3D_
20 May 2018, 15:01
Forum: AutoHotkey v2 Development
Topic: %Expr% [BUG] or [_3D_ not understood]
Replies: 13
Views: 690

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

Is next example Error or Bug? fun() fun() { a:= 1 ;https://lexikos.github.io/v2/docs/Variables.htm#ref ;%Expr% dynamically retrieves a variable by name. df(s) { return %s% ; <<< a not visible } vf() { return a ; <<< a visible } while a <= 5 { msgBox(df("a") " | " vf()), a++ } }
by _3D_
16 May 2018, 11:58
Forum: AutoHotkey v2 Development
Topic: Type mismatch. AutoHotkey_2.0-a096-2ad11cb
Replies: 11
Views: 738

Re: Type mismatch. AutoHotkey_2.0-a096-2ad11cb

i've updated the v2 Gdip library: https://github.com/mmikeww/AHKv2-Gdip/commit/7575c88d70ea6a3b444119ee4afe730e91c64b84 this changed in v2-a95: Changed math functions and operators to throw an exception instead of returning "" for errors. if (x == "") || (y == "") || (w == "") || (h == "") return -...
by _3D_
15 May 2018, 10:18
Forum: AutoHotkey v2 Development
Topic: Type mismatch. AutoHotkey_2.0-a096-2ad11cb
Replies: 11
Views: 738

Re: Type mismatch. AutoHotkey_2.0-a096-2ad11cb

You need to adjust the way you write code for v2. Disregarding Helgefs love for forcing explicit type conversions I think he's right about throwing an error on invalid math is a good thing. Especially since you can use a try Statement to detect all errors. ; Gdip standard library v1.45 by tic (Tari...
by _3D_
14 May 2018, 22:58
Forum: AutoHotkey v2 Development
Topic: Type mismatch. AutoHotkey_2.0-a096-2ad11cb
Replies: 11
Views: 738

Re: Type mismatch. AutoHotkey_2.0-a096-2ad11cb

In AHK no typed variables so in 100 lines code you can`t know what inside the variable to use it at math or no. And if there 5 variables we need 5 extra checks is "number". number(arg){ return arg is "number"? arg: 0 } I don`t understand why we need to throw exception instead of treated "nonnumber" ...

Go to advanced search