Jump to content
  • 0

Record value change


YeetMeister

Question

3 answers to this question

Recommended Posts

--Simple real-time value detector
function check()
  if r == "" or r == nil then 
      gg.searchNumber("Your code",gg.TYPE_DWORD)
  gg.refineNumber("First value in the code",gg.TYPE_DWORD)
  t1 = gg.getResults(1)
  gg.addListItems(t1)
    end
  r = gg.getListItems()
  r1 = gg.getValues(r) -- Update value
  gg.alert("Address: "..r1[1].address.."\nValue: "..r1[1].value.."\nFlag: "..r1[1].flag)
  end

function main()
  local main = gg.choice({"Check value","Exit"},nil,nil)
  if main == 1 then check()
    elseif main == 2 then 
	gg.setVisible(true) 
	os.exit()
  end
  XGCK = 0
end  

while true do
  if gg.isVisible(true) then
    XGCK = 1
    gg.setVisible(false)
  end
  gg.clearResults()
  if XGCK == 1 then
    main()
  end
 end

main()

 

Link to comment
Share on other sites

3 minutes ago, ItsSC said:

--Simple real-time value detector
function check()
  if r == "" or r == nil then 
      gg.searchNumber("Your code",gg.TYPE_DWORD)
  gg.refineNumber("First value in the code",gg.TYPE_DWORD)
  t1 = gg.getResults(1)
  gg.addListItems(t1)
    end
  r = gg.getListItems()
  r1 = gg.getValues(r) -- Update value
  gg.alert("Address: "..r1[1].address.."\nValue: "..r1[1].value.."\nFlag: "..r1[1].flag)
  end

function main()
  local main = gg.choice({"Check value","Exit"},nil,nil)
  if main == 1 then check()
    elseif main == 2 then 
	gg.setVisible(true) 
	os.exit()
  end
  XGCK = 0
end  

while true do
  if gg.isVisible(true) then
    XGCK = 1
    gg.setVisible(false)
  end
  gg.clearResults()
  if XGCK == 1 then
    main()
  end
 end

main()

 

Thank you! But is it possible to set this all in a loop? Because I want to press stuff while recording yk

 

The menu gets kinda in the way then

Idk why but I have problems creating loops

 

Link to comment
Share on other sites

25 minutes ago, YeetMeister said:

Thank you! But is it possible to set this all in a loop? Because I want to press stuff while recording yk

 

The menu gets kinda in the way then

Idk why but I have problems creating loops

 

The part of while true do code help you to create loop.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

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.