Autorun help please
Started by
Jufro
, Feb 20 2010 04:33 PM
#1
Posted 20 February 2010 - 04:33 PM
#2
Posted 20 February 2010 - 09:44 PM
Things you want go outside the scope of a simple autorun file. It requires creating a Windows program.
#3
Posted 20 February 2010 - 10:36 PM
erm... i dont know how... could you help? or is there a simpler solution?
#4
Posted 21 February 2010 - 11:38 AM
Lets think. You want to a particular ROM from CD ROM autorun when inserted. This leads to 2 possibilities -
1. The emulator program is on CD ROM
2. The emulator program is installed on hard disk and associated with ROM files.
If emulator EXE is on CD ROM, then it will run only when you insert CD. So emulator cannot be already running. And so we do not need to close previously running ROM.
If emulator EXE is installed on hard disk, and associated with ROM files then just give command using start. For example, if you have a ROM file on CD (driver letter D:) D:\roms\acetennis.sfc, then just give command:
start roms\acetennis.sfc
The SFC file extenson (or whatever else it is) must be associated with your emulator program for this to work. But hey, what if emulator is already running? We have to shut it down first. Let us assume the emulator file name is zsenes.exe we can give command :
taskkill /f /im zsenes.exe
So our final command becomes :
Okay what about storing configuration files in My Documents. Well it depends on the particular emulator program. Find out in the settings if it can be done. I know in ZSENES you cannot do it and the configuration file is stored in the same folder as the emulator program itself. But since it is a open source program written in C++, you can get the source code and modify it yourself. If you know good C++, that is. If you do not ask a friend who does.
These ideas should get you started in the right direction.
1. The emulator program is on CD ROM
2. The emulator program is installed on hard disk and associated with ROM files.
If emulator EXE is on CD ROM, then it will run only when you insert CD. So emulator cannot be already running. And so we do not need to close previously running ROM.
If emulator EXE is installed on hard disk, and associated with ROM files then just give command using start. For example, if you have a ROM file on CD (driver letter D:) D:\roms\acetennis.sfc, then just give command:
start roms\acetennis.sfc
The SFC file extenson (or whatever else it is) must be associated with your emulator program for this to work. But hey, what if emulator is already running? We have to shut it down first. Let us assume the emulator file name is zsenes.exe we can give command :
taskkill /f /im zsenes.exe
So our final command becomes :
taskkill /f /im zsenes.exe ping 127.0.0.1 > NUL start roms\acetennis.sfc
Okay what about storing configuration files in My Documents. Well it depends on the particular emulator program. Find out in the settings if it can be done. I know in ZSENES you cannot do it and the configuration file is stored in the same folder as the emulator program itself. But since it is a open source program written in C++, you can get the source code and modify it yourself. If you know good C++, that is. If you do not ask a friend who does.
These ideas should get you started in the right direction.
#5
Posted 24 February 2010 - 01:08 AM
Try learning AutoIt, you'll obviously get somewhere with it.erm... i dont know how... could you help? or is there a simpler solution?
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users