Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 16:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Please help fix my AHK script

Discussion on Please help fix my AHK script within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2022
Posts: 4
Received Thanks: 0
Please help fix my AHK script

Hello all, I am fairly new and was wondering if someone can help me fix my script.

Quote:
CoordMode, Mouse, Screen

F11::
Loop
{
Sleep 6000
Send {E}
Loop
{
PixelSearch, FoundX, FoundY, 213, 235, 1569, 918, 0xeaba6f, 10, RGB Fast
if (ErrorLevel = 0){
Send {E}
Break
}
}
}
*ESC::ExitApp
Overall, I want this entire script to loop, but I don't want it repeatedly inputting E until after it finds the pixel. After it finds the pixel and completes the ErrorLevel = 0, I want it to start from the top again with the Sleep/Send {E}. Hope that makes sense, the pixel is being found I just want it to restart from the very top.
Comprehensive_Socks156 is offline  
Old 06/30/2022, 09:06   #2
Der nette Mann

 
Toxicator's Avatar
 
elite*gold: 2281
Join Date: Apr 2008
Posts: 4,973
Received Thanks: 4,936
Arrow Technical Support -> General Coding

#moved
Toxicator is offline  
Old 07/18/2022, 12:03   #3
 
elite*gold: 0
Join Date: Jul 2022
Posts: 3
Received Thanks: 3
Quote:
Originally Posted by Comprehensive_Socks156 View Post
Hello all, I am fairly new and was wondering if someone can help me fix my script.



Overall, I want this entire script to loop, but I don't want it repeatedly inputting E until after it finds the pixel. After it finds the pixel and completes the ErrorLevel = 0, I want it to start from the top again with the Sleep/Send {E}. Hope that makes sense, the pixel is being found I just want it to restart from the very top.
I don't know if ErrorLevel is triggered so i would try to replace ErrorLevel=0 with if color = 0xeaba6f.

Why looping two times?

The main part of your script could look like this:
Code:
Loop
{
PixelSearch, FoundX, FoundY, 213, 235, 1569, 918, 0xeaba6f, 10, RGB Fast
   if color = 0xeaba6f
      send {e down}
      sleep 30
      send {e up}
      break
sleep 10
}
send {e down}
sleep 30
send {e up}
return
Untested. Maybe it helps.

Sincerely yours,
SEEH4U5
SEEH4U5 is offline  
Reply

Tags
autohotkey


Similar Threads Similar Threads
[Buying] ARMA 3 AHK SCRIPT: looking for superb pulldown ahk or colorcoded aimlock ahk (buying)
02/04/2022 - ArmA Trading - 0 Replies
Hi I am looking for a custom made pulldown.ahk script (for Arma 3) that is designed for: - guns 6.5mm (like Type 115, Promet..)/7.62mm (like MK1) - only activates/enables when in-game hipfire mode (combat stance) and ARCO scope/zoomed in/holding breath ARCO scope 1x and 2x - works when I hold the scope down with right click (so no toggle scope command) - make sure it works when zoomed in also (1x and 2x) whilst not holding and holding breath - that works on any fov/screen resolution and...
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE
06/21/2011 - Metin2 Private Server - 5 Replies
HELP WITH THIS PLEASE ON MY DEDICATED SERVER :-( http://www.youtube.com/watch?v=UyKOTLb960Q log_file_delete_old: stat: No such file or directory connect: Connection refused Timed out Connection refused



All times are GMT +1. The time now is 16:10.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.