Hi,
I would like to know if we can Read/write to bit array( Lights (fsuipc H0D0C))... I want to control every single switch of the lights...
Thanks
Reading / Writing to bitArray
Re: Reading / Writing to bitArray
I didn't check, but my first idea is: can't you prepare whole value in script and write complete byte?
Or (if you toggle lights not only by HIDMacros) read the value, mask bit what you want to change and write complete byte.
Or (if you toggle lights not only by HIDMacros) read the value, mask bit what you want to change and write complete byte.
Petr Medek
LUAmacros author
LUAmacros author
Re: Reading / Writing to bitArray
how did you read/write the biutarray can you give me an short example?
Re: Reading / Writing to bitArray
Hi,
I found the way to change to 1 only with bit
ex taxi light
HIDMacros.SetFSUIPCint &H0D0C,1,2^3
but now i need help to put it back to 0
any idea??
I found the way to change to 1 only with bit
ex taxi light
HIDMacros.SetFSUIPCint &H0D0C,1,2^3
but now i need help to put it back to 0
any idea??