YeetMeister Posted October 3, 2019 Share Posted October 3, 2019 Hello, I want to create a loop that is constantly checking if the value changed All this stuff is happening in the background so I can move and such (257) If the value changed it will display the Changed value as a toast. Please help Link to comment Share on other sites More sharing options...
Administrators Enyby Posted October 3, 2019 Administrators Share Posted October 3, 2019 So modify as you need. This is just an example, demonstrating the essence and possibilities, and not solving your specific problem. Link to comment Share on other sites More sharing options...
Administrators Enyby Posted October 3, 2019 Administrators Share Posted October 3, 2019 Start script. Find value. Hide UI. In loop check value via getValues. If value changed - show Toast. Sleep in loop for 100 ms. If UI open - terminate loop. Done. Link to comment Share on other sites More sharing options...
YeetMeister Posted October 3, 2019 Author Share Posted October 3, 2019 1 minute ago, Enyby said: Start script. Find value. Hide UI. In loop check value via getValues. If value changed - show Toast. Sleep in loop for 100 ms. If UI open - terminate loop. Done. What loop should I use? Link to comment Share on other sites More sharing options...
Administrators Enyby Posted October 3, 2019 Administrators Share Posted October 3, 2019 "while". Link to comment Share on other sites More sharing options...
YeetMeister Posted October 3, 2019 Author Share Posted October 3, 2019 29 minutes ago, Enyby said: "while". I'm ***** Stupid.. gg.setRanges(gg.REGION_JAVA_HEAP | gg.REGION_C_HEAP | gg.REGION_C_ALLOC | gg.REGION_C_DATA | gg.REGION_C_BSS | gg.REGION_PPSSPP | gg.REGION_ANONYMOUS) gg.searchNumber("257", gg.TYPE_DWORD) var = gg.getResults(100000) while gg.isVisible(false) do gg.loadResults(var) if var.value ~= "257" then gg.toast(gg.getValues(var)) end end Link to comment Share on other sites More sharing options...
Administrators Enyby Posted October 3, 2019 Administrators Share Posted October 3, 2019 Examples of Lua scripts (#4rb1nadf) Link to comment Share on other sites More sharing options...
YeetMeister Posted October 3, 2019 Author Share Posted October 3, 2019 13 minutes ago, Enyby said: Examples of Lua scripts (#4rb1nadf) Works, but not as I want it to be xD I don't know the exact value there are 15000 values. I want to "sort out" those who changed Link to comment Share on other sites More sharing options...
Question
YeetMeister
Hello, I want to create a loop that is constantly checking if the value changed
All this stuff is happening in the background so I can move and such
(257)
If the value changed it will display the Changed value as a toast. Please help
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.