Search found 14 matches
- 04 Feb 2016, 11:47
- Forum: Ask for Help (v1)
- Topic: Fast exit from a thread
- Replies: 1
- Views: 623
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...
- 04 Feb 2016, 11:30
- Forum: Gaming Help (v1)
- Topic: Pressing two keyboard keys at same time
- Replies: 2
- Views: 1012
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 ...
- 01 Feb 2016, 17:26
- Forum: Gaming Help (v1)
- Topic: Pressing two keyboard keys at same time
- Replies: 2
- Views: 1012
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...
- 30 Jan 2016, 12:07
- Forum: Gaming Help (v1)
- Topic: Reading colorvalue of a partial tranparent screen area within a game
- Replies: 0
- Views: 907
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 ...
- 29 Jan 2016, 19:40
- Forum: Gaming Help (v1)
- Topic: code works in a window but not in a game
- Replies: 7
- Views: 3233
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...
- 29 Jan 2016, 18:11
- Forum: Gaming Help (v1)
- Topic: code works in a window but not in a game
- Replies: 7
- Views: 3233
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
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
- 29 Jan 2016, 17:01
- Forum: Gaming Help (v1)
- Topic: code works in a window but not in a game
- Replies: 7
- Views: 3233
Re: code works in a window but not in a game
didnt help ......
- 29 Jan 2016, 16:36
- Forum: Gaming Help (v1)
- Topic: code works in a window but not in a game
- Replies: 7
- Views: 3233
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 ...
- 29 Jan 2016, 15:02
- Forum: Gaming Help (v1)
- Topic: code works in a window but not in a game
- Replies: 7
- Views: 3233
Re: code works in a window but not in a game
k,ty, Ill try that.Nextron wrote:Without looking at your code, it probably due to the game being DirectX and fullscreen. Windowed mode should make a difference.
- 29 Jan 2016, 12:11
- Forum: Gaming Help (v1)
- Topic: code works in a window but not in a game
- Replies: 7
- Views: 3233
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...
- 28 Jan 2016, 17:02
- Forum: Gaming Help (v1)
- Topic: my project Topic is solved
- Replies: 6
- Views: 1589
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...
- 28 Jan 2016, 17:00
- Forum: Gaming Help (v1)
- Topic: my project Topic is solved
- Replies: 6
- Views: 1589
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, ...
- 28 Jan 2016, 05:43
- Forum: Gaming Help (v1)
- Topic: my project Topic is solved
- Replies: 6
- Views: 1589
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...
- 27 Jan 2016, 16:47
- Forum: Gaming Help (v1)
- Topic: my project Topic is solved
- Replies: 6
- Views: 1589
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%. --------...