Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 00:37

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

Advertisement



Send("{ESC}") won't work ingame

Discussion on Send("{ESC}") won't work ingame within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
xMenex's Avatar
 
elite*gold: 13
The Black Market: 242/0/0
Join Date: Feb 2013
Posts: 2,183
Received Thanks: 199
Send("{ESC}") won't work ingame

I am trying to make a anti-afk-bot for GTA SA-MP. Every key works but not escape (Ingame)

Code:
#RequireAdmin
_antiafk()

Func _antiafk()
While 1
	Sleep(5000)
	Send("{ESCAPE}")
	Sleep(540000)
	Send("{ESCAPE}")
	Send("W")
	Sleep(2000)
WEnd
EndFunc
Can you help me?
xMenex is offline  
Old 07/14/2014, 21:01   #2
 
elite*gold: 240
Join Date: Mar 2014
Posts: 374
Received Thanks: 585
Quote:
Originally Posted by xMenex View Post
I am trying to make a anti-afk-bot for GTA SA-MP. Every key works but not escape (Ingame)

Code:
#RequireAdmin
_antiafk()

Func _antiafk()
While 1
Sleep(5000)
Send("{ESCAPE}")
Sleep(540000)
Send("{ESCAPE}")
Send("W")
Sleep(2000)
WEnd
EndFunc
Can you help me?
Code:
Send("{Esc}")
Ehm..sleep (540000)..
540 seconds?
-SoulCr4ck- is offline  
Old 07/14/2014, 21:02   #3
 
xMenex's Avatar
 
elite*gold: 13
The Black Market: 242/0/0
Join Date: Feb 2013
Posts: 2,183
Received Thanks: 199
Quote:
Originally Posted by x[Deadline View Post
Code:
Send("{Esc}")
Ehm..sleep (540000)..
540 seconds?
Yeah, on this samp server you are marked for afk after 10 minutes
xMenex is offline  
Old 07/14/2014, 21:14   #4
 
elite*gold: 240
Join Date: Mar 2014
Posts: 374
Received Thanks: 585
Quote:
Originally Posted by xMenex View Post
Yeah, on this samp server you are marked for afk after 10 minutes
Try send ("{Esc}") or try it with ControlSend..
-SoulCr4ck- is offline  
Thanks
1 User
Old 07/14/2014, 22:53   #5
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
"{ESCAPE}" is no valid key sequence. Check out the valid keys at the AutoIt Send reference.
As x[Deadline said, it's "{ESC}".
Also use {} around letters if you want to simulate a key push otherwise programs will handle it as text.
alpines is offline  
Thanks
2 Users
Reply




All times are GMT +2. The time now is 00:37.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.