Search found 4128 matches

by swagfag
11 Nov 2020, 10:05
Forum: Gaming
Topic: League of legends kite backward
Replies: 1
Views: 191

Re: League of legends kite backward

Code: Select all

CoordMode Mouse

ox := A_ScreenWidth // 2
oy := A_ScreenHeight // 2

MouseGetPos x1, y1

x2 := -x1 + (2 * ox)
y2 := -y1 + (2 * oy)

Click % x2 "," y2
by swagfag
11 Nov 2020, 07:36
Forum: AutoHotkey v2 Help
Topic: moving mouse to MS word cursor position
Replies: 11
Views: 341

Re: moving mouse to MS word cursor position

then u arent running v2. u can check ur version with

Code: Select all

msgbox a_ahkversion
or(in case of v1, which u probably are running) with

Code: Select all

msgbox % a_ahkversion
by swagfag
09 Nov 2020, 04:09
Forum: AutoHotkey v2 Development
Topic: change from v1 to v2 - is it possible to get a whole list of all errors?
Replies: 6
Views: 1685

Re: change from v1 to v2 - is it possible to get a whole list of all errors?

it will break v1 and i still have to dev on . probably unfeasible. possibly feasible if u very carefully modularize/rewrite ur app to only use classes with basic functionality(ie no v1-specific metafunctions/class hierarchy type stuff) at the end of the day ud still have to change all gui parts/hot...
by swagfag
09 Nov 2020, 03:58
Forum: Ask For Help
Topic: tripple-timer or n-timer as activator
Replies: 4
Views: 52

Re: tripple-timer or n-timer as activator

Code: Select all

q::
	KeyWait q

	if (A_TimeSinceThisHotkey < 200)
		action1()
	else if (A_TimeSinceThisHotkey < 500)
		action2()
	else
		action3()
Return

action1() {
}

action2() {
}

action3() {
}
by swagfag
09 Nov 2020, 03:43
Forum: Ask For Help
Topic: Shortcuts to insert emoticons in unicode
Replies: 9
Views: 278

Re: Shortcuts to insert emoticons in unicode

{U+1F937,U+2642} this is invalid(or rather partially valid) syntax Send {U+ nnnn } codepoints exceeding the range 0-0xFFFF(such as ur guy there) require splitting into their respective utf16 encoded high and low surrogates(ie Send {U+D83E}{U+DD37} ) fb for some reason places ur cursor before the em...
by swagfag
09 Nov 2020, 02:45
Forum: Ask For Help
Topic: Why is the script crashing???
Replies: 10
Views: 223

Re: Why is the script crashing???

  • check the windows event logs for an error code
  • implement trace/logging(to disk) in ur own code
  • run ur script while debugging ahk with VS
by swagfag
03 Nov 2020, 11:03
Forum: Ask For Help
Topic: Does ahk support tail recursion? Topic is solved
Replies: 5
Views: 184

Re: Does ahk support tail recursion? Topic is solved

its the other way around. tail recursion(referring to the optimization tail call elimination) is not a feature present in ahk
the example provided is tail recursive, since no other actions are performed after the recursive call to f()
by swagfag
01 Nov 2020, 08:24
Forum: AutoHotkey v2 Help
Topic: base64 <---> buffer object
Replies: 1
Views: 211

Re: base64 <---> buffer object

#DllLoad Crypt32.dll bufferToBase64(buf) { if !DllCall('Crypt32.dll\CryptBinaryToString', 'Ptr', buf, 'UInt', buf.Size, 'UInt', 1, 'Ptr', 0, 'UInt*', numChars := 0) throw 'cant compute the destination buffer size, error: ' A_LastError bufString := BufferAlloc(numChars * 2) if !DllCall('Crypt32.dll\...
by swagfag
01 Nov 2020, 06:58
Forum: AutoHotkey v2 Help
Topic: Getting a function reference to a method in a class you are writing Topic is solved
Replies: 6
Views: 450

Re: Getting a function reference to a method in a class you are writing Topic is solved

no. one requires that a method by the specified name exists in one of the object's bases(or their respective prototypes) at the time of calling. the other one does not.
both suck if u care about objects remaining destructible without having to manually clear out circular references
by swagfag
30 Oct 2020, 03:38
Forum: Ask For Help
Topic: Pass in a command string to AutoHotkey
Replies: 2
Views: 80

Re: Pass in a command string to AutoHotkey

Code: Select all

echo MsgBox | AutoHotkey.exe *
by swagfag
28 Oct 2020, 07:47
Forum: Ask For Help
Topic: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved
Replies: 12
Views: 247

Re: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved

looks like the remaining file callbacks have to be implemented as well #NoEnv #SingleInstance Force SendMode Input SetBatchLines -1 SetTitleMatchMode 2 SetWorkingDir % A_ScriptDir global FLUID_OK := 0, FLUID_FAILED := -1 hModule := DllCall("LoadLibrary", "Str", dll := "libfluidsynth-2.dll", "Ptr") s...
by swagfag
27 Oct 2020, 19:35
Forum: Ask For Help
Topic: DLLCall ; Function Extends something Help
Replies: 1
Views: 118

Re: DLLCall ; Function Extends something Help

The game doesnt have an API that allows you to access functions listed on link above from the game dlls. The game has an API that allows you to [sideload files placed in a particular directory, written in a particular language, adhering to a particular spec, which ultimately leads to u being able to...
by swagfag
27 Oct 2020, 09:43
Forum: Ask For Help
Topic: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved
Replies: 12
Views: 247

Re: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved

hSoundfont := DllCall("GlobalAlloc", "UInt", 0, "Ptr", f.Length, "Ptr") f.RawRead(hSoundfont+0, f.Length) Crypt_AES(hSoundfont, and also a mathematical operation needs to be performed on hSoundfont due to ahk limitations Do not pass a variable reference if the variable contains the target address; ...
by swagfag
27 Oct 2020, 05:04
Forum: Ask For Help
Topic: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved
Replies: 12
Views: 247

Re: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved

Code: Select all

hSoundfont := DllCall("GlobalAlloc", "UInt", 0, "Ptr", f.Length, "Ptr")
f.RawRead(hSoundfont, f.Length)
Crypt_AES(&hSoundfont,
delete the &
by swagfag
25 Oct 2020, 21:41
Forum: Ask For Help
Topic: Fluidsynth How to encrypt\Decrypt a soundfont ? Topic is solved
Replies: 12
Views: 247

Re: Fluidsynth How to Load my encrypted soundfont ? Topic is solved

u need fluid_synth_sfload because thats the function that issues the command to start loading soundfonts the other function only changes the loading settings, but doesnt do any actual loading also, u dont need to specify a filepath. u could load the soundfont's bytes urself, decrypt them, then pass ...

Go to advanced search