Search found 21 matches

by Galaxis
21 Feb 2019, 07:56
Forum: Scripts and Functions
Topic: MinHook - API Hooking Library
Replies: 13
Views: 2295

Re: MinHook - API Hooking Library

malcev wrote:
27 Jan 2019, 19:25
tmplinshi, do not You know how can I hook directx endscene method, as it written here:
http://spazzarama.com/2010/03/29/screen-capture-with-direct3d-api-hooks
I want to hook DX11 =)
by Galaxis
10 Feb 2019, 11:01
Forum: Scripts and Functions
Topic: MinHook - API Hooking Library
Replies: 13
Views: 2295

Re: MinHook - API Hooking Library

An AHK wrapper for MinHook . Example 1 - Hook MessageBoxW #Include <MinHook> hook1 := New MinHook("user32.dll", "MessageBoxW", "MessageBoxW_Hook") hook1.Enable() MsgBox, 64, Hello, World hook1.Disable() MsgBox, 64, Hello, I'm back. hook1 := "" ; Remove hook MessageBoxW_Hook(hWnd, lpText, lpCaption,...
by Galaxis
07 Feb 2019, 17:42
Forum: Scripts and Functions
Topic: MinHook - API Hooking Library
Replies: 13
Views: 2295

Re: MinHook - API Hooking Library

An AHK wrapper for MinHook . Example 1 - Hook MessageBoxW #Include <MinHook> hook1 := New MinHook("user32.dll", "MessageBoxW", "MessageBoxW_Hook") hook1.Enable() MsgBox, 64, Hello, World hook1.Disable() MsgBox, 64, Hello, I'm back. hook1 := "" ; Remove hook MessageBoxW_Hook(hWnd, lpText, lpCaption,...
by Galaxis
13 Aug 2018, 19:30
Forum: Ask For Help
Topic: AHK Memory leak
Replies: 2
Views: 281

AHK Memory leak

Hello, Is there a way to reduce the amount of memory AHK uses when performing ImageSearch? My script has 7 threads, with each thread searching a single image, in 1-second intervals. The search causes my CPU usage to randomly peaks at 100% I play games like Crysis & CoD and I use a lot of robust prog...
by Galaxis
30 Jul 2018, 15:34
Forum: Tutorials
Topic: Classes in AHK, Basic tutorial.
Replies: 24
Views: 39083

Re: Classes in AHK, Basic tutorial.

classes remind me of ARRAYS
by Galaxis
01 Jul 2018, 07:31
Forum: Scripts and Functions
Topic: AhkHook: API hooking with autohotkey
Replies: 50
Views: 37682

Re: AhkHook: API hooking with autohotkey

If you came looking for the game patches have created with the program, go here: http://www.vogons.org/viewtopic.php?f=24&t=53121 If you are interested in writing API hooks with autohotkey, download AhkHook from here: https://github.com/Daniel-Lobo/AhkHook and ask questions in this topic AhkHook sa...
by Galaxis
12 Jun 2018, 08:04
Forum: Scripts and Functions
Topic: Drawing with autohotkey
Replies: 5
Views: 1388

Re: Drawing with autohotkey

Okay, your computer is haunted :X
Get Out!
by Galaxis
12 Jun 2018, 07:38
Forum: Scripts and Functions
Topic: Autoscript PixelSearch aka [QUICKPIXEL]
Replies: 0
Views: 476

Autoscript PixelSearch aka [QUICKPIXEL]

While creating a GameBot, I got tired of writing a crap-ton of PixelSearch statements. So I wrote this script and decided to share it with you guys today. I call it "QUICKPIXEL". This script finds the matching color you have clicked. It then places the coordinates of the pixel inside of an Array & A...
by Galaxis
06 Jun 2018, 13:04
Forum: Ask For Help
Topic: Expression for a Negative Range of Values Topic is solved
Replies: 3
Views: 286

Re: Expression for a Negative Range of Values Topic is solved

Thanks! SwagFag & TheDewd for the help!!!!

TheDewd wrote:Try adding quotes around the value in your IF statement: If a < "-16000"

Code: Select all

a := -14000

If (a < -16000) {
	MsgBox, Test 1 ; Doesn't work
}

If (a < "-16000") {
	MsgBox, Test 2 ; Works
}
by Galaxis
06 Jun 2018, 12:54
Forum: Ask For Help
Topic: Expression for a Negative Range of Values Topic is solved
Replies: 3
Views: 286

Expression for a Negative Range of Values Topic is solved

I have issues with invalid results from NEGATIVE values. I'm creating a Character tracking MAP for a game. The problem is, If I say: Var is less than -100. Var is between -1 and -10 BOTH returns invalid/wrong results. The Expressions below are invalid as well: Var < -100 (Var <= -1) && (Var >= -10) ...
by Galaxis
02 May 2018, 17:23
Forum: Ask For Help
Topic: Threads exchanging variables
Replies: 2
Views: 835

Re: Threads exchanging variables

Thanks for your efforts <3 I took the chicken way out, and just have all of the threads access and write values to a single .Ini file. Although I wanted to be fancy and have threads talk directly- the ini method is a surefire way to get threads to exchange their variable values. I'm writing Street F...
by Galaxis
02 May 2018, 13:09
Forum: Ask For Help
Topic: Threads exchanging variables
Replies: 2
Views: 835

Threads exchanging variables

What is a very basic way to have the 3rd thread identify that the Sky is blue, and time is 10am. Perhaps I wrote the code wrong because I'm getting empty message boxes . :problem: I don't want to have to use ini files. :facepalm: Copied a line in the example documentation, but no dice. Are aliases m...
by Galaxis
01 May 2018, 22:13
Forum: AutoHotkey_H
Topic: How to add parameters into AhkThread ? Topic is solved
Replies: 5
Views: 1311

Re: How to add parameters into AhkThread ? Topic is solved

threads:=[] Loop 4 threads[A_Index]:=AhkThread(" ( msgbox `% A_Args[1] msgbox `% A_Args[2] msgbox `% A_Args[3] )", "1 2 " A_Index) ESC:: ExitAPP Noob question- i just started using AHK_H recently for its multithreading. I was curious about the usage of ("( )") and its function. If I had to guess, i...
by Galaxis
01 May 2018, 21:22
Forum: Ask For Help
Topic: Errors from Documentation Topic is solved
Replies: 2
Views: 826

Re: Errors from Documentation Topic is solved

Swagfag,
Im using version 2. Thanks for that response! You solved my problem. I'll use version 1 instead. =)
by Galaxis
01 May 2018, 19:07
Forum: Ask For Help
Topic: Errors from Documentation Topic is solved
Replies: 2
Views: 826

Errors from Documentation Topic is solved

I get errors, when pasting this code from the example documentation NewThread("Msgbox `% variable:=`"Thread`"") http://i.imgur.com/LuQwQO0.png The following code from the documentation does not show a message in the Message box. I just want to get a general idea of how multithreading works. I just s...
by Galaxis
17 Sep 2017, 12:16
Forum: Ask For Help
Topic: RHCP Please Help (processPatternScan) Topic is solved
Replies: 6
Views: 1861

Re: RHCP Please Help (processPatternScan) Topic is solved

Dude that 1 line of code worked! You are INSANE! are you the PC god?

Thanks man

*snickers* as he just said, "Hard to say" lol

MKX = Mortal Kombat 10 - Fighting Game
by Galaxis
16 Sep 2017, 22:42
Forum: Ask For Help
Topic: RHCP Please Help (processPatternScan) Topic is solved
Replies: 6
Views: 1861

Re: RHCP Please Help (processPatternScan) Topic is solved

RHCP, Im curious, why does this not detect my Steam Game? Message is "Failed to Open handle" if (_ClassMemory.__Class != "_ClassMemory") msgbox class memory not correctly installed. Or the (global class) variable "_ClassMemory" has been overwritten game := new _ClassMemory("ahk_exe MKX.exe", "", hPr...
by Galaxis
02 May 2017, 15:50
Forum: Ask For Help
Topic: PixelSearch 6-colors simultaneously
Replies: 0
Views: 200

PixelSearch 6-colors simultaneously

I wrote this script to search different colors simultaneously, but the mouse isn't moving. The colors must all be present, within a given area before mouse movement is executed. But my mouse isn't moving. Am I writing this correctly? The script runs, without error messages, and yet the mouse does no...
by Galaxis
30 Apr 2017, 16:13
Forum: Ask For Help
Topic: AHK vs XPADDER
Replies: 0
Views: 258

AHK vs XPADDER

Greetings, I have been using XPADDER for while. I decided to simplify and dump XPADDER in favor of AHK for the scripts I was writing. Problem is, only XPADDER detects keys inside the game window, while AHK does not. Hell, AHK types [b,n,g,h,m, j, k] on my Xbox, PS3, and PS4 controller successfully- ...

Go to advanced search