Jump to content
Sign in to follow this  
liten

Help, Button Disabling other when clicked

Recommended Posts

liten

; FUNC CR()

; SetPrivilege("SeDebugPrivilege", 1)

; $ID = _MemoryOpen(ProcessExists("TWSKTW.exe"))

; $R1 = _MemoryRead($R, $ID)

; if $R1 = $D Then

; _MemoryWrite($Revive, $ID, 0)

; while 1

;CR ()

;WEnd

;EndIf

; _MemoryClose($ID)

;EndFunc

(; are their becuse i disabled it and thats a direct paste)

it works but has a few problem ,

1. if R isnt = to $D when you start the function, it just checks once, and dosent repeaat over to continusly check

2.i was wondering how do i set it to continusly check over the value to make shure its never = to $D, because the way im currently doing is disabling all my other buttons and function when i run this one


My UDF:Freeze.au3-Freeze values like CE, ML, ETC[i][/i][u][/u]

Share this post


Link to post
Share on other sites
lordicast

Try Putting your while outside of your function in the main script like...

While 1 
CR ()
    Sleep(10)
WEnd

FUNC CR()
 SetPrivilege("SeDebugPrivilege", 1)
 
 $ID = _MemoryOpen(ProcessExists("TWSKTW.exe"))
 $R1 = _MemoryRead($R, $ID)
 
if $R1 = $D Then 
    _MemoryWrite($Revive, $ID, 0)
EndIf
 _MemoryClose($ID)
EndFunc

[Cheeky]Comment[/Cheeky]

Share this post


Link to post
Share on other sites
liten

Dosent work, when i try that y function dosent even work anymore


My UDF:Freeze.au3-Freeze values like CE, ML, ETC[i][/i][u][/u]

Share this post


Link to post
Share on other sites

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.