So I play Dwarf Fortress on my laptop a lot. I don't have a keypad so I have to open up the on-screen keyboard to use some of the features in the game. Because I am lazy, I want to just make a program in DBC that opens both the on-screen keyboard and dwarf fortress and then immediately closes, so I can just pin that to my task bar.
Now, I'm using the execute file command correctly, as far as I know. I don't have any problems with opening dwarf fortress, but I get a cannot shell execute file error when I try to open the on-screen keyboard. I figured it might be because of the folder it was in so I copied it to the dwarf fortress folder and tried again, same problem. Then I tried fiddling with some of the security settings and made sure it was set to give me full permissions. Still no cigar.
The source is ridiculously simple, but here it is anyway:
execute file "dwarffort.exe", "", "C:\Users\Tommy\Desktop\Stuff\gayms\df_28_181_40d"
execute file "osk.exe", "", "C:\Users\Tommy\Desktop\Stuff\gayms\df_28_181_40d"
end
:o