Search found 14 matches

by jeik
04 Feb 2016, 11:47
Forum: Ask For Help
Topic: Fast exit from a thread
Replies: 1
Views: 492

Fast exit from a thread

hi, im into the below situation in my script. I need an immediate exit from either of the two threads when a keyboardkey is pressed so their again available to execute. Ive tried the getkey... but I have to hold key down for few secs before it responds ingame. Is there a faster way? (some kind of so...
by jeik
04 Feb 2016, 11:30
Forum: Gaming
Topic: Pressing two keyboard keys at same time
Replies: 2
Views: 831

Re: Pressing two keyboard keys at same time

hi and thanks for responding. well, below is my code that worked during test :) It uses 40mS delay between characters sent (delay set accordingly to my control panel keyboard setting of maxspeed and a stopwatch ;) durationtime is the time u wanna run the typing of characters. temptime:= 0 StartTime ...
by jeik
01 Feb 2016, 17:26
Forum: Gaming
Topic: Pressing two keyboard keys at same time
Replies: 2
Views: 831

Pressing two keyboard keys at same time

hi. I plan to make a subroutine and a timer, where timer sets the time for keys pressed. Then, in the subroutine, use sendinput alternating between the 2 keys. How does that sound? Im not certain though of the delay between the 2 sendinput instructions AND the delay until next pair of sendinput.(rep...
by jeik
30 Jan 2016, 12:07
Forum: Gaming
Topic: Reading colorvalue of a partial tranparent screen area within a game
Replies: 0
Views: 743

Reading colorvalue of a partial tranparent screen area within a game

hi, is this possible with AHK in realtime ,inside a game ? I notice from spywindow that colors of pidel/area changes some according to the background , in a game. I need to compare colorvalues, using pixelgetcolor or pixelsearch (pref. for a small area, but a pixel can do), for a partly transparent ...
by jeik
29 Jan 2016, 19:40
Forum: Gaming
Topic: code works in a window but not in a game
Replies: 7
Views: 2378

Re: code works in a window but not in a game

Solved :) Used parts of the pulover's macro tool. Works in game's full screen mode. The positions of pixelsearch was taken from ingame printscreen when game was in window mode, loaded into PaintShop where positions and colors were found. heres the code: #NoEnv ; SetWorkingDir %A_ScriptDir% CoordMode...
by jeik
29 Jan 2016, 18:11
Forum: Gaming
Topic: code works in a window but not in a game
Replies: 7
Views: 2378

Re: code works in a window but not in a game

just donated to Pulover and downloaded his macro tool application.
Will try that tomorrow.

I see he's export to akh file sets window pixel coordmode within local loop that uses PixelSearch

I asume that means ahk reads game's x,y positions running game in windowmode(?)

regards
by jeik
29 Jan 2016, 17:01
Forum: Gaming
Topic: code works in a window but not in a game
Replies: 7
Views: 2378

Re: code works in a window but not in a game

didnt help ......
by jeik
29 Jan 2016, 16:36
Forum: Gaming
Topic: code works in a window but not in a game
Replies: 7
Views: 2378

Re: code works in a window but not in a game

Without looking at your code, it probably due to the game being DirectX and fullscreen. Windowed mode should make a difference. Hi. Noticed following, for same mouse coordinate, using spywindow: Absolute coord system: 96,1028 Relative coord system: 104,1047 Client coord system: 96,1016 So fare Ive ...
by jeik
29 Jan 2016, 15:02
Forum: Gaming
Topic: code works in a window but not in a game
Replies: 7
Views: 2378

Re: code works in a window but not in a game

Nextron wrote:Without looking at your code, it probably due to the game being DirectX and fullscreen. Windowed mode should make a difference.
k,ty, Ill try that.
by jeik
29 Jan 2016, 12:11
Forum: Gaming
Topic: code works in a window but not in a game
Replies: 7
Views: 2378

code works in a window but not in a game

hello, Im trying to catch a colorvalue at a fixed position for a moving object in a game. Code works for windows (desktop) who has the colorvalue but not in the game. Im using the colorvalue's pixelposition found by printscreen, ingame. Position of searched pixel and its color was found using Paints...
by jeik
28 Jan 2016, 17:02
Forum: Gaming
Topic: my project Topic is solved
Replies: 6
Views: 1287

Re: my project Topic is solved

If you are wanting to click the screen in specific locations I recommend putting this at the top of your script Coordmode, Pixel, Screen Coordmode, Mouse, Screen Coordmode, Tooltip, Screen And if you are wanting to do like a long press with the mouse, this works for my application. Adjust the coord...
by jeik
28 Jan 2016, 17:00
Forum: Gaming
Topic: my project Topic is solved
Replies: 6
Views: 1287

Re: my project Topic is solved

hi all and thanks for answers. I try the below code, but doesnt get any hit for colorvalue f6f6f6 (hex) Any suggestions? Thanks. !j:: ;start script when alt+j clicked color=000000 ;set initial value, hex, of color variable while (color!= f6f6f6) { PixelGetColor, color, 100, 1017 GetKeyState, state, ...
by jeik
28 Jan 2016, 05:43
Forum: Gaming
Topic: my project Topic is solved
Replies: 6
Views: 1287

Re: my project Topic is solved

Is it possible? sure. You can do 10 pixel searches and then do something with the results. Pressing keys is generally an easy thing for auto hot key. I say generally because there are some exceptions. How difficult it will be? Depends on your situation. I would recommend setting up a few pixel debu...
by jeik
27 Jan 2016, 16:47
Forum: Gaming
Topic: my project Topic is solved
Replies: 6
Views: 1287

Re: my project Topic is solved

PixelSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ColorID [, Variation, Fast|RGB] PixelSearch, Px, Py, 200, 200, 300, 300, 0x9d6346, 3, Fast if ErrorLevel MsgBox, That color was not found in the specified region. else MsgBox, A color within 3 shades of variation was found at X%Px% Y%Py%. --------...

Go to advanced search