Anyone ofay with LUA scripting?
Page 1 of 1
moosenoodles




Posts: 18411

PostPosted: Wed, 31st Aug 2011 18:36    Post subject: Anyone ofay with LUA scripting?
My screen is buggered on my g15 keyboard so i cant output no more to the display on it..

function OnEvent(event, arg)
if (event=="G_PRESSED" and arg==1) then
local x, y = GetMousePosition();
local sFmt = string.format("Mouse is at %d,%d\n", x, y);
OutputLCDMessage(sFmt);
end
end

would like the output to txt file instead or somehow to be able to see the coords where at etc.. any takers?

seems its screen format output so i have no idea how to alter this really to text file.. blegh
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - Programmers Corner
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group