L
learn2draw
Guest
Hello, reader!
I found a code for keylogging online (http://gamedev.stackexchange.com/questions/25881/how-can-i-log-key-presses-in-game-maker), and wish to send the data (in DS lists) that it collects to an ini file which I have set up. I have tried following the instructions in the GameMaker manual, but my ini file reads:
My scr_savegame reads:
My scr_loadgame reads:
Please forgive me as I am new to GameMaker and programming as a whole, and so please be as specific as possible in regards to what my next step should be. I would like to have the "At frame 159 you pressed key F (Code: 14)" type of text in my ini file.
Thank you so much for your time! Help is very much appreciated.
-l2d
I found a code for keylogging online (http://gamedev.stackexchange.com/questions/25881/how-can-i-log-key-presses-in-game-maker), and wish to send the data (in DS lists) that it collects to an ini file which I have set up. I have tried following the instructions in the GameMaker manual, but my ini file reads:
My scr_savegame reads:
Code:
if (file_exists("Save.sav")) file_delete("Save.sav");
ini_open("Save.sav");
var keyCodes = ds_list_create();
var keyTimes = ds_list_create();
ini_write_real("Save1","ds_list_create();",keyCodes);
ini_write_real("Save1","ds_list_create();",keyTimes);
ini_close();
Code:
if (file_exists("Save.sav"))
{
ini_open("Save.sav");
var keyCodes = ini_read_real("Save1","ds_list_create();",rm_1);
var keyTimes = ini_read_real("Save1","ds_list_create();",rm_1);
ini_close();
room_goto(LoadedRoom);
}
else
{
//do nothing
}
Thank you so much for your time! Help is very much appreciated.
-l2d