View previous topic :: View next topic |
Author |
Message |
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Sun Dec 20, 2015 1:17 pm Post subject: LUA Script for specify ,Capslock is On or Off |
|
|
Hi.
In cheat happens trainer i see when pressed caps lock was On or Off.
How I making LUA Script for , when run trainer in lable was specify is On or Off.and when pressed caps lock, show it's On or off.
|
|
Back to top |
|
|
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Tue Dec 22, 2015 4:41 am Post subject: |
|
|
Help me friends,please,please.
|
|
Back to top |
|
|
lolAnonymous Expert Cheater Reputation: 1
Joined: 19 Jul 2015 Posts: 154
|
Posted: Tue Dec 22, 2015 4:42 am Post subject: |
|
|
Send me the trainer link in messages...
|
|
Back to top |
|
|
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Dec 24, 2015 10:16 pm Post subject: |
|
|
Can help me friends?plllllleas.
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 457
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
|
Posted: Fri Dec 25, 2015 4:06 am Post subject: |
|
|
I don't think that's currently possible with the functions provided
but you can do it a bit hackery:
Code: |
autoAssemble([[
alloc(GetCapsLockStateFinished,4)
alloc(GetCapsLockStateResult,4)
alloc(GetCapsLockState,128)
registersymbol(GetCapsLockStateFinished)
registersymbol(GetCapsLockStateResult)
registersymbol(GetCapsLockState)
GetCapsLockStateFinished:
dd 0
GetCapsLockStateResult:
dd 0
GetCapsLockState:
[64-bit]
sub rsp,28
mov rcx,14
[/64-bit]
[32-bit]
push 14
[/32-bit]
call GetKeyState
and eax,1
mov [GetCapsLockStateResult],eax
mov [GetCapsLockStateFinished],1
[64-bit]
add rsp,28
ret
[/64-bit]
[32-bit]
ret 4
[/32-bit]
]],true)
function getCapsLockState()
writeIntegerLocal("GetCapsLockStateFinished",0)
autoAssemble([[
createThread(GetCapsLockState)
]],true)
while readIntegerLocal("GetCapsLockStateFinished")==0 do end
return readIntegerLocal("GetCapsLockStateResult")~=0
end
|
this will add the "getCapsLockState()" function
_________________
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 |
|
|
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Jan 14, 2016 8:18 pm Post subject: |
|
|
How to use this script?
can made Capslock state with lua in label.
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Thu Jan 14, 2016 9:28 pm Post subject: |
|
|
- Open the Lua script window via Table -> Show Cheat Table Lua Script (Ctrl + Alt + L)
- Copy and paste that in
- Call that function by typing getCapsLockState()
- Do whatever you want with the boolean returned
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Jan 14, 2016 9:42 pm Post subject: |
|
|
Okay.but where show cpslock state.
Sorry,but How to Call that function by typing getCapsLockState()
Drak byte order of "This will Add function getCapsLockState()"?
Where add it?
Last edited by sjl002 on Thu Jan 14, 2016 10:00 pm; edited 1 time in total |
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Thu Jan 14, 2016 9:59 pm Post subject: |
|
|
...anywhere you want in any way you want?
For example: have a timer check it periodically and change the text on a label based on what that function returns.
Please refer to main.lua for more information on how to do this using CE-related functions, and refer to either this or Google on how to use Lua.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Jan 14, 2016 10:12 pm Post subject: |
|
|
Into this site was this script:
functioncall ::= prefixexp ‘:’ Name args
I was use this?
|
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 138
Joined: 06 Jul 2014 Posts: 4275
|
Posted: Thu Jan 14, 2016 10:41 pm Post subject: |
|
|
That's not a script; it's just how that manual expresses things. It's basically saying to call a function, you write the name of a function and any arguments you want to pass to it.
i.e. type getCapsLockState() to run the getCapsLockState function.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
sjl002 Master Cheater Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Jan 14, 2016 11:02 pm Post subject: |
|
|
How to make script for call getCapsLockState() function?
This script show Capslock state in label?
|
|
Back to top |
|
|
|