| View previous topic :: View next topic |
| Author |
Message |
oLaudix Expert Cheater
Reputation: 3
Joined: 25 Mar 2010 Posts: 138
|
Posted: Sat Jan 31, 2015 1:51 pm Post subject: Auto Assemble - pushad/pushfd equivalent |
|
|
I wanted to make AA script with hotkey so i used example from the page:
| Code: | pushad
pushfd
push 'X'
call GetAsyncKeyState
shr ax,#15
cmp ax,1
jne notpressed
mov [rcx],#20
notpressed:
popfd
popad |
Now, my problem is that it is x64 application so pushad and pushfd are gone. Is there a way to use hotkeys in x64 apps inside AA?
|
|
| Back to top |
|
 |
Xblade Of Heaven Master Cheater
Reputation: 0
Joined: 16 Oct 2005 Posts: 395 Location: DEAD
|
Posted: Sat Jan 31, 2015 3:17 pm Post subject: |
|
|
you can try:
| Code: |
pushfq
push 'X'
call GetAsyncKeyState
shr ax,#15
cmp ax,1
jne notpressed
mov [rcx],#20
notpressed:
popfq
|
regards
_________________
Welcome to the Hell.
 |
|
| Back to top |
|
 |
Geri Moderator
Reputation: 111
Joined: 05 Feb 2010 Posts: 5627
|
|
| Back to top |
|
 |
oLaudix Expert Cheater
Reputation: 3
Joined: 25 Mar 2010 Posts: 138
|
Posted: Sat Jan 31, 2015 5:31 pm Post subject: |
|
|
Thanks that helped a bunch. Guess my problem is mostly with Getasynckeystate not being available for 64x. I think ill just leave it and try something else.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25831 Location: The netherlands
|
Posted: Sat Jan 31, 2015 6:25 pm Post subject: |
|
|
it is available, but the calling convention is very different
https://msdn.microsoft.com/en-us/library/ms235286.aspx
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Jan 31, 2015 7:45 pm Post subject: |
|
|
| Code: | push rax
push rbx
push rdx
push rsi
push rdi
push rbp
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
push rcx
mov rcx,'X'
push rcx // or sub rsp,08
call GetAsyncKeyState
add rsp,08
test ax,8000
pop rcx
jz notpressed
mov [rcx],#20
notpressed:
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rbp
pop rdi
pop rsi
pop rdx
pop rbx
pop rax |
_________________
|
|
| Back to top |
|
 |
|