Search found 73 matches

by Galaxis
06 Jun 2018, 13:04
Forum: Ask for Help (v1)
Topic: Expression for a Negative Range of Values Topic is solved
Replies: 3
Views: 1461

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 (v1)
Topic: Expression for a Negative Range of Values Topic is solved
Replies: 3
Views: 1461

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: 2641

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: 2641

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: 3895

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: 2635

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: 2635

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 (v1)
Topic: RHCP Please Help (processPatternScan) Topic is solved
Replies: 6
Views: 3946

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 (v1)
Topic: RHCP Please Help (processPatternScan) Topic is solved
Replies: 6
Views: 3946

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 (v1)
Topic: PixelSearch 6-colors simultaneously
Replies: 0
Views: 411

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 (v1)
Topic: AHK vs XPADDER
Replies: 0
Views: 588

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- ...
by Galaxis
20 Apr 2017, 20:53
Forum: Ask for Help (v1)
Topic: Loop-ImageSearch on Active Screen
Replies: 2
Views: 1115

Loop-ImageSearch on Active Screen

I'm having a difficult time adding a loop to this Imagesearch script. This works fine, but does not loop. $1:: imageAppeared := false while (imageAppeared = false) { Imagesearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\ME\Desktop\SFV\Mika\m1.png X:= FoundX Y := FoundY if (X <> ...

Go to advanced search