Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Hello, again, sorry to say but i need a little help again, seems like i only post here when i need help but thats because i dont have knowledge enough to help others :(

So, here we go:

I have installed cpwizard on my cab and it works nicely, however it doesnt work when i switch on my cab, i have instasheller installed and have the option in cpwizard to load at startup checked. But it only seems to startup wen i got into windows mode, so that means when i leave gameex and type "explorer" in the task manager window. Anyone know how to solve this?

Other question i have is about windows games, if possible could someone be able to type a quick overview of how to use autohotkey? I only need the function where you can change 1 key to another. So if someone would be kind enough to help me with this? Or maybe post a config that you are using? Maybe a can then just adjust the buttons i need and use it on my cab? I know gameex has this feature implemented i advanced configs but then i'd have to assign each pc game to a different emulator and id like them in 1 folder so i'd rather use autohotkey.

And one last thing. I would like to know from amos and night if it was ok for you if i edited your theme? Why i ask is because i have still emulators on my cab that arent in your theme. So i would like to make some custom backgrounds for those emulators if you guys dont mind? I would only use it for my eyes only and be happy to send the result for your approval first.

Hope you guys can help me. And for everybody reading this last sentence, ty for taking time to read my crap :P

Posted

You don't have a help/support quota here so don't feel bad about asking for help ;)

First question about CPWizard, I've had a few people have this problem and the solution is to use a program like RunAsSvc so CPWizard will run as a service instead. You can find the utility on this page

For your second question mapping one key to another is very simple. It looks like this

a::b

That will map "a" to "b". Just download the AutoHotkey software, enter the above into Notepad, then save it as atob.ahk then running it will map the key. Very simple. To stop it running right click on the icon in the icon tray and select exit.

For more info go to http://www.autohotkey.com/docs/misc/Remap.htm

Posted

ty very much for your help headkaze, and if may ask, how do i implement this to work with gameex? i mean, if i create these ahk files for each of my games, where do i place those ahk files? in the game root directory?

Posted

Yeah placing them in the GameEx folder should be perfect because it means if you launch them with LaunchBefore and LaunchAfter you don't need the full path.

So copy the AtoB.ahk to the GameEx folder

LaunchBefore=AtoB.ahk
LaunchAfter=taskkill /F /IM AutoHotKey.exe /T

Also note that if you right click the AtoB.ahk file it will have an option called "Edit Script" and "Compile Script". If you compile it it will create a file called AtoB.exe. That creates an executable that anyone can run (ahk files need AutoHotKey installed to run). If you compile the script, you would change the lines to the following:

LaunchBefore=AtoB.exe
LaunchAfter=taskkill /F /IM AtoB.exe /T

I recommend compiling scripts for people you want to share them with so they don't need AutoHotKey installed. For personal use you might as well keep them in .ahk format so you can edit them anytime you need to. Although with AutoHotKey you can decompile them anyway, it's easier to modify them if they are in .ahk format.

Posted

ooh but i want all my windows files assigned to 1 emulator (windows games) using shortcuts. So i cant have a separate ahk file for each of my games? eg: 1 script for game 1, 1 script for game 2, 1 script for game3? Thats what i want really, i want to install around 30 windows games to 1 emulator and have 30 ahk files to assign the buttons of each game to., is this possible? and will it work in gamex?

Posted

You could use batch files or Advanced Configs. Although using Advanced Configs would require you to set up each PC game as an emulator. Not really practical. So I would probably go with batch files. They are pretty simple thing to write, lets say you have a game called MyGame.exe located in a subfolder called MyGame in C:\Games

Create a file called My Game.bat and place it in C:\Games

Also create your ahk file and place it in C:\Games (Eg. AToB.ahk)

-- My Game.bat --

@ECHO OFF
AToB.ahk
CD .\MyGame
MyGame.exe
taskkill /F /IM AutoHotKey.exe /T

Now you will need to set up an Emulator to run your PC games from batch. Set the filter to *.bat and point the ROM Folder to C:\Games.

Eg.

+C:
+Games\
+--My Game.bat
+--AToB.ahk
+--MyGame\
+---+MyGame.exe

You can really have you actual game located anywhere though, simply change the CD to be the folder location of the game (Eg. CD E:\Games\MyGame)

Guest
This topic is now closed to further replies.
×
×
  • Create New...