Search found 152 matches
- 24 Jan 2024, 11:23
- Forum: Ask for Help (v1)
- Topic: if A or B button is clicked, it will show timer and decreased value Topic is solved
- Replies: 1
- Views: 71
if A or B button is clicked, it will show timer and decreased value Topic is solved
Good day AHKers, https://i.imgur.com/VeQtPmZ.png so in a GUI there is a A and B button if A button is clicked, it will show 30 seconds and it countdown and the digit display is shown and decrease if B button is clicked, it will show 30 seconds and it countdown and the digit display is shown and decr...
- 28 Dec 2023, 02:27
- Forum: Gaming Help (v1)
- Topic: massive lag after 30mins of running my script Topic is solved
- Replies: 2
- Views: 241
massive lag after 30mins of running my script Topic is solved
after 30mins, the game itself and the desktop is lagging after my script is running more than 30mins. is their a way to fix this lag? this is my script #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common er...
- 27 Dec 2023, 22:22
- Forum: Gaming Help (v1)
- Topic: logout script using Cport? Topic is solved
- Replies: 1
- Views: 222
logout script using Cport? Topic is solved
how to make a game logout using Cport.exe? I made a script that in a specific loop action, at the end of the script i want to execute the cport to logout a game there was a script called lutbot and i tried to copy the line of code the execute it but it wont work. how to simplify execute it? Example ...
- 28 Sep 2023, 09:01
- Forum: Ask for Help (v1)
- Topic: if imagefound > display a number onscreen
- Replies: 3
- Views: 236
Re: if imagefound > display a number onscreen
Since your script does not work, start with a three-line test script. On the first line, set the CoordMode. On the second line, search for your image. On the third line, display your ErrorLevel. This approach will enable you to troubleshoot a script with only three lines. If the ErrorLevel is 1, it...
- 28 Sep 2023, 08:39
- Forum: Ask for Help (v1)
- Topic: if imagefound > display a number onscreen
- Replies: 3
- Views: 236
if imagefound > display a number onscreen
sample sscript loop { CoordMode, Pixel, Window ImageSearch, FoundX, FoundY, 10, 9, 536, 69, apple.png If ErrorLevel = 0 { ; display number 1 onscreen } CoordMode, Pixel, Window ImageSearch, FoundX, FoundY, 10, 9, 536, 69, orange.png If ErrorLevel = 0 { ; display number 2 onscreen } CoordMode, Pixel,...
- 04 Aug 2023, 09:41
- Forum: Ask for Help (v1)
- Topic: loop lag in a few hours Topic is solved
- Replies: 3
- Views: 367
Re: loop lag in a few hours Topic is solved
There doesn't appear to be anything within your code that would cause it to lag, however, a few points: 1) You have posted V1 code in the V2 forum. 2) Please use code tags around your code, not kbd tags. 3) You have one too many closing curly braces. 4) You haven't indicated what it is that you are...
- 04 Aug 2023, 06:33
- Forum: Ask for Help (v1)
- Topic: loop lag in a few hours Topic is solved
- Replies: 3
- Views: 367
loop lag in a few hours Topic is solved
I have a script running a whole day but after a few hours maybe within 3hrs+ the script is totally lagging like really lag this is the script #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. Send...
- 09 Jul 2023, 08:59
- Forum: Gaming
- Topic: pixel searched near cursor
- Replies: 1
- Views: 232
pixel searched near cursor
Good day AHKers,
how to make a script like this
If i hold the Z key, it will search and click the desired pixel for example red only near the cursor
how to make a script like this
If i hold the Z key, it will search and click the desired pixel for example red only near the cursor
- 19 Dec 2022, 10:23
- Forum: Gaming Help (v1)
- Topic: my loop pixelsearch if not found is messed up Topic is solved
- Replies: 3
- Views: 375
- 19 Dec 2022, 08:57
- Forum: Gaming Help (v1)
- Topic: my loop pixelsearch if not found is messed up Topic is solved
- Replies: 3
- Views: 375
my loop pixelsearch if not found is messed up Topic is solved
loop { ; check if its in za warudo then find a b c d e CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 981, 1012, 981, 1012, 0x3FDE45, 0, Fast RGB If ErrorLevel = 0 { ;Check a CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 1626, 1007, 1626, 1007, 0x3FDE45, 0, Fast RGB If ErrorLevel { S...
- 19 Dec 2022, 08:52
- Forum: Gaming Help (v1)
- Topic: is it possible to read health in a game? Topic is solved
- Replies: 6
- Views: 645
Re: is it possible to read health in a game? Topic is solved
thanks, yes, I am actually using pixelsearch for nowmikeyww wrote: ↑16 Dec 2022, 17:06Hello,
If you have an image to be matched, you could try ImageSearch.
- 19 Dec 2022, 08:49
- Forum: Gaming Help (v1)
- Topic: is it possible to read health in a game? Topic is solved
- Replies: 6
- Views: 645
Re: is it possible to read health in a game? Topic is solved
I would suggest the following: 1 - Analyze your game to find a static pointer for your game health-bar, this video may help 2 - Then use an AHK memory reader to grab the values constantly (Each one second maybe)? this class may help 3 - here you are, you got it!, I'm not sure about that though. tha...
- 16 Dec 2022, 12:19
- Forum: Gaming Help (v1)
- Topic: is it possible to read health in a game? Topic is solved
- Replies: 6
- Views: 645
is it possible to read health in a game? Topic is solved
Good day AHKers,
Is it possible to read games memory health
Lets say a game as HP, it will read the total amount of health
and if the specific health reach a specific amount, it will press a key.
Is it possible to read games memory health
Lets say a game as HP, it will read the total amount of health
and if the specific health reach a specific amount, it will press a key.
- 04 Dec 2022, 12:03
- Forum: Gaming Help (v1)
- Topic: Isolate sleep within {} Topic is solved
- Replies: 5
- Views: 455
Re: Isolate sleep within {} Topic is solved
1. A script with PixelSearchs is not suitable as an example script, because a user can manipulate PixelSearch result and thus the flow only very awkwardly. Build something based on KeyWaits. 2. Threads have you read and understood this? unfornutely no :(, anyways I will just make multiple ahk for n...
- 03 Dec 2022, 11:09
- Forum: Gaming Help (v1)
- Topic: Isolate sleep within {} Topic is solved
- Replies: 5
- Views: 455
Re: Isolate sleep within {} Topic is solved
Hallo, something like "isolate the Sleep" Autohotkey can not do! Study: Threads In my scripts I try to replace longer Sleeps with Timers. could you reconstruct my sample script with that timer please? I always learn from the sample script, if possible please make it short so I could easily understa...
- 03 Dec 2022, 06:49
- Forum: Gaming Help (v1)
- Topic: Isolate sleep within {} Topic is solved
- Replies: 5
- Views: 455
Isolate sleep within {} Topic is solved
loop { CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 981, 1012, 981, 1012, 0x3FDE45, 0, Fast RGB If ErrorLevel = 0 { ; check thirst CoordMode, Pixel, Window PixelSearch, FoundX, FoundY, 1792, 975, 1792, 975, 0x3CD241, 20, Fast RGB If ErrorLevel { Send, {5 down} Sleep 20 Send, {5 up} sleep, ...
- 28 Nov 2022, 08:15
- Forum: Gaming Help (v1)
- Topic: all types of send doesnt work on a game Topic is solved
- Replies: 2
- Views: 377
Re: all types of send doesnt work on a game Topic is solved
thank you botherRohwedder wrote: ↑28 Nov 2022, 03:52Hallo,
a few things you can still try: How to Make AHK Work in Most Games - The Basics
the holds key down for 20ms perfectly works now
- 28 Nov 2022, 03:36
- Forum: Gaming Help (v1)
- Topic: Detect keys and keypress in order
- Replies: 3
- Views: 560
Re: Detect keys and keypress in order
Hello, so in this game while fishing there's an image that appears and you need to click the keys in order. I tried creating a script in Python but I sadly failed :-| . capture6.png capture5.png capture4.png Is it possible in ahk to detect the text and press from left to right? If it's not possible...
- 28 Nov 2022, 03:29
- Forum: Gaming Help (v1)
- Topic: all types of send doesnt work on a game Topic is solved
- Replies: 2
- Views: 377
all types of send doesnt work on a game Topic is solved
first of all this is the small script #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_Scr...
- 14 Jul 2022, 09:23
- Forum: Ask for Help (v1)
- Topic: if checkbox is ticked then run another ahk file Topic is solved
- Replies: 3
- Views: 425
Re: if checkbox is ticked then run another ahk file Topic is solved
dir = %A_ScriptDir% Gui, Font, s10 For each, box in ["first", "second", "third", "fourth"] Gui Add, CheckBox, gCheck w100 ym, %box% Gui Show,, Scripts Return Check: DetectHiddenWindows, On script = %dir%\%A_GuiControl%.ahk GuiControlGet, checked,, %A_GuiControl% If checked Run, %script% Else WinClo...