Gaming Ladder Script Php Pencarian
Penpen wrote:You should avoid creating files, as this is slower than reading memory.Of course memory operations are generally much faster than writing and reading a file. But the file operations are critical to the whole non-blocking key press detection algorithm.Besides, the use of temp files gets an unfair bad rap. With today's high speed disk drives, file operations are extremely fast as long as you are not on a shared network drive with a lot of traffic. For example, there are threads somewhere on this site that demonstrate it is more efficient to write lengthy command output to a temp file and then process the temp file instead of processing the command output directly within a FOR /F statement.Dave Benham. Dbenham wrote:The /C option is supposed to be optional in all versions that I have seen. It defaults to YN.It defaults to JN (Ja Nein) under my German OS.The important thing is that CHOICE has a default /C option, so it should be optional. I don't see why my test should require the /C option.
Oh well, whatever works.Good luck with the SET /A issue. I find it frustrating that my code does not work for you 'out of the box'. I'm usually good at writing generic code that is platform agnostic.Dave Benham. AGerman wrote:It's somewhere while the%getKey% macro is executed in a loop. But with 'echo on' it iterates too fast.
Online Gaming Ladder Script

I can't perceive what happens.Well, there is only one SET /A in%getKey%. It is decrementing the value of the key variable, whose value comes from the keyfile.

It should never be anything other than a number or a colon. And the number should never be 0 prefixed.
A value of 08 or 09 will give the error that you are seeing.So my guess is that the controller is somehow passing a zero prefixed number on your machine. The controller simply reads the ERRORLEVEL from the choice command, so I don't see how that could be happening.Try modifying the script a bit so that you can type out the contents of key.txt after you have pressed a few keys. Look for a zero prefixed number. If you find it, then we have to figure out how it is getting there.Dave Benham.