Jump to content
Moopler
  • 0
Sign in to follow this  
idoarama

Request Automatically press a key script

Question

Can someone please share with me a script for CE who automatically press a key on the keyboard for example F1 and spam it only if there is no people in the map? 

Thank you in advance, have a great week.

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

Nevermind, found a good script by Taku - big thanks !

this script auto press the key "Z"

define(TSingleton__CUserPool,01AA2D10)
define(people_limit,#1)

[enable]
alloc(hook,128)
alloc(key_press,128)

label(return)
label(exit)
 
key_press:
mov esi,[01AA2E2C] ; 8B 15 ? ? ? ? 85 D2 74 23
mov ecx,[esi+A4]
push eax
push 00
call 013DAB90 ; A1 ?? ?? ?? ?? 85 ?? 74 ?? 8D ?? ?? 8B ?? 8B ?? FF
ret

hook:
sub esp,0C
push ebx
push esi

push ebx
push eax

mov ebx,[TSingleton__CUserPool]
mov ebx,[ebx+18]
mov eax,people_limit
cmp ebx,eax
jge exit

mov eax,002C0000
call key_press

exit:
pop eax
pop ebx
jmp return
 
013DCB20:
jmp hook
return:

[disable]

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×