CLEO Help python to .cs

CLEO related

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
can anyone make this python code to .cs and put a hotkey to enable it

Python:
import pyautogui
import time

while True:
    time.sleep(5)
    pyautogui.hotkey('alt','1', interval=0.1)
    time.sleep(87)
    pyautogui.hotkey('alt','2', interval=0.1)
 
Joined
Mar 17, 2020
Messages
19
Reaction score
2
Location
Narnia
Works with SampFuncs

PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F2* mistook here lol
    then
        0C72: set_virtual_key 18 down true // Press alt
        0C72: set_virtual_key 49 down true // Press 1
        0BFE: 0@ = get_tick_count
        0@ += 100 // 0.1 secs
        while 801D: 1@ > 0@
            wait 0
            0BFE: 1@ = get_tick_count
        end
        0C72: set_virtual_key 18 down false // release alt
        0C72: set_virtual_key 49 down false // release 1
        0BFE: 0@ = get_tick_count
        0@ += 87000 // 87 secs
        while 801D: 1@ > 0@
            wait 0
            0BFE: 1@ = get_tick_count
        end
        0C72: set_virtual_key 18 down true // Press alt
        0C72: set_virtual_key 50 down true // Press 2
        0BFE: 0@ = get_tick_count
        0@ += 100 // 0.1 secs
        while 801D: 1@ > 0@
            wait 0
            0BFE: 1@ = get_tick_count
        end
        0C72: set_virtual_key 18 down false // release alt
        0C72: set_virtual_key 50 down false // release 2
    end
end
 

Attachments

  • Press.cs
    18.5 KB · Views: 1
Last edited:

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
Works with SampFuncs

PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        0C72: set_virtual_key 18 down true // Press alt
        0C72: set_virtual_key 49 down true // Press 1
        0BFE: 0@ = get_tick_count
        0@ += 100 // 0.1 secs
        while 801D: 1@ > 0@
            wait 0
            0BFE: 1@ = get_tick_count
        end
        0C72: set_virtual_key 18 down false // release alt
        0C72: set_virtual_key 49 down false // release 1
        0BFE: 0@ = get_tick_count
        0@ += 87000 // 87 secs
        while 801D: 1@ > 0@
            wait 0
            0BFE: 1@ = get_tick_count
        end
        0C72: set_virtual_key 18 down true // Press alt
        0C72: set_virtual_key 50 down true // Press 2
        0BFE: 0@ = get_tick_count
        0@ += 100 // 0.1 secs
        while 801D: 1@ > 0@
            wait 0
            0BFE: 1@ = get_tick_count
        end
        0C72: set_virtual_key 18 down false // release alt
        0C72: set_virtual_key 50 down false // release 2
    end
end
I think its not working
 
Joined
Mar 17, 2020
Messages
19
Reaction score
2
Location
Narnia
Can you make it to keep in loop?
Sure, try this one now
It is on/off with F2, I mistook on that lol


PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        printf "~g~Activated" time 2000
        wait 700
            while 8AFA: 113
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                break
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 49 down true // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                break
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 49 down false // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                break
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 50 down true // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 50 down false // release 2
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
 

Attachments

  • Press.cs
    19.4 KB · Views: 1
Last edited:

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
Sure, try this one now
It is on/off with F2, I mistook on that lol


PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        printf "~g~Activated" time 2000
        wait 700
      
       
while 8AFA: 113
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                break
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 49 down true // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                break
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 49 down false // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                break
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 50 down true // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 50 down false // release 2
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
Also, is there a way to keep it running on background? like if i alt-tab
 
Joined
Mar 17, 2020
Messages
19
Reaction score
2
Location
Narnia
also this is happening:
This one works, fine
Tested


PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
      
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 49 down true // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 49 down false // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 50 down true // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 50 down false // release 2
            if
            0AB0: 113
            then
                2@ = 0
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
Also, is there a way to keep it running on background? like if i alt-tab
As far as I know, I could be wrong. But that opcode works also on background. If not, there are some more variants in snippets.
 

Attachments

  • Press.cs
    19.6 KB · Views: 1

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
This one works, fine
Tested


PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
     
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 49 down true // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 49 down false // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0C72: set_virtual_key 18 down true // Press alt
            0C72: set_virtual_key 50 down true // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0C72: set_virtual_key 18 down false // release alt
            0C72: set_virtual_key 50 down false // release 2
            if
            0AB0: 113
            then
                2@ = 0
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end

As far as I know, I could be wrong. But that opcode works also on background. If not, there are some more variants in snippets.
the deactivation doesn't work
 
Joined
Mar 17, 2020
Messages
19
Reaction score
2
Location
Narnia
Just simply use this snippet, works same, but doesn't effect pc, works only gta.
https://ugbase.eu/threads/snippet-set-virtual-or-game-key.19933/
Thank you, just added it.

the deactivation doesn't work

Try this

And for the background, use aafk.cs
PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
      
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 255 // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 0 // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
                if
                0AB0: 113
                then
                    2@ = 0
                    break
                end
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 255 // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 0 // release 2
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

Attachments

  • Press.cs
    20.3 KB · Views: 0
Last edited:

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
Thank you, just added it.



Try this

And for the background, use aafk.cs
PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
     
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 255 // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 0 // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
                if
                0AB0: 113
                then
                    2@ = 0
                    break
                end
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 255 // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x12 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 0 // release 2
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
uhh, not working
 
Joined
Mar 17, 2020
Messages
19
Reaction score
2
Location
Narnia
Try this one for alt key
LALT= 0x127

I think it was that

PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
        
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 255 // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 0 // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
                if
                0AB0: 113
                then
                    2@ = 0
                    break
                end
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 255 // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 0 // release 2
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
 

Attachments

  • Press.cs
    20.3 KB · Views: 1

Parazitas

God
Joined
Jan 2, 2017
Messages
3,112
Solutions
5
Reaction score
878
Location
Lithuania
I think it was that

PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
       
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 255 // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 0 // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
                if
                0AB0: 113
                then
                    2@ = 0
                    break
                end
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 255 // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 0 // release 2
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
On last posted codes i see "12" xD
 

thelo4d1ng

Member
Joined
Feb 24, 2019
Messages
17
Reaction score
2
I think it was that

PHP:
{$CLEO .cs}


0000: NOP

repeat
    wait 0
until 0AFA:

while true
    wait 0
    if
    0AB0: 113 // if key pressed F3
    then
        wait 2000
        2@ = 1
        printf "~g~Activated" time 2000
       
        while 2@ == 1
            wait 0
            0BFE: 0@ = get_tick_count
            0@ += 5000 // 5 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 255 // Press 1
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x31 state 0 // release 1
            0BFE: 0@ = get_tick_count
            0@ += 87000 // 87 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
                if
                0AB0: 113
                then
                    2@ = 0
                    break
                end
            end
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 255 // Press alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 255 // Press 2
            0BFE: 0@ = get_tick_count
            0@ += 100 // 0.1 secs
            while 801D: 1@ > 0@
                wait 0
                0BFE: 1@ = get_tick_count
            end
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x127 state 0 // release alt
            0AB1: @Set_Virtual_Key 2 KeyOffSet 0x32 state 0 // release 2
            if
            0AB0: 113
            then
                2@ = 0
                break
            end
        end
        printf "~r~Deactivated" time 2000
        wait 2000 // Anti flood
    end
end
:Set_Virtual_Key
{
    255 = true
    0 = false
    0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@  // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
it still not pressing alt+1 and alt+2
 
Top