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

hey all,

i don't know much about programming/coding... alls i know is a little bit of dos from tooling with old sierra games, and whatever command line entries i've picked up from the gameex gang over all the time i've spent with you all.

that being said i'm not sure if this is a stupid question, but here goes..

I've eliminated all exit/shut down options from being displayed in gameex except for "shut down". i was wondering if i can set gameex to shut down (not during a game but in gameex itself) via my control panel. I have an "escape" push button installed in the top left corner of my CP, and thought it would be cool to set it's SHIFT property to shutting down the pc all together. i'm using an ipac and the shift button is P1 button. I'm thinking since you can shut down the pc within gameex already, this is a possibilty: but as i stated above, i'm no programmer.

gracias mi amigos.

Posted

I don't know if you can do this inside GameEx, but you can definitely put something together to accomplish this. One way would be to use AHK to detect a combination of some kind and if the window is GameEx, shut the computer down. This would be really simple, but you might want something more elegant if possible. This could be your backup though!

Posted
I don't know if you can do this inside GameEx, but you can definitely put something together to accomplish this. One way would be to use AHK to detect a combination of some kind and if the window is GameEx, shut the computer down. This would be really simple, but you might want something more elegant if possible. This could be your backup though!

nobi,

as always i appreciate the feedback, but have no clue what AHK means. this of course is due to my lack of intelligence, not yours. :)

Posted

i'm definitely going to need someone to hold my hand on this one. sorry guys.

Posted
i'm definitely going to need someone to hold my hand on this one. sorry guys.

What key sequence would you like to shutdown windows with?

Maybe I can put something together 4 ya my friend.

Posted

This is a really simple script! I don't have anything put together at the moment (I've been prograstinating getting one written though), so if Brian comes up with a good consice script, I'll probably steal the guts and incorporate it into mine... :ph34r:

Posted
What key sequence would you like to shutdown windows with?

Maybe I can put something together 4 ya my friend.

hoffman coming through again my man. i'd appreciate it since i have no programming background whatsoever. I'd like to have NUM5 execute a windows shutdown within gameex please.

Posted
hoffman coming through again my man. i'd appreciate it since i have no programming background whatsoever. I'd like to have NUM5 execute a windows shutdown within gameex please.

So my friend that would be Shift+NUM5? The one on the numerical pad to the right on most keyboards or the 5 on the top..

Anyways shouldnt be too bad Ill see about getting it done tonight. :D

Did you check out that daphne config video I made? Might be usefull to hold on to in case of a format.

Take care buddy

Hit me up on myspace sometime bro

Posted
So my friend that would be Shift+NUM5? The one on the numerical pad to the right on most keyboards or the 5 on the top..

Anyways shouldnt be too bad Ill see about getting it done tonight. :D

Did you check out that daphne config video I made? Might be usefull to hold on to in case of a format.

Take care buddy

Hit me up on myspace sometime bro

it's the 5 on the num pad (to the right on the keyboard). and SHIFT isn't involved. i was talking about the shift function on my ipac so ultimately alls it would be is num5. the shift button on the ipac is num7 if that matters.

and yes i definitely saw the daphne config and stashed the url in case of another format thanks brother.

Posted

I think this should work:

(Save this as a text file with .ahk as the extension)

Numpad5::Shutdown, 1

I thought you wanted a combination of keys, that's why I thought a fancy script might be required. In this case, you just are mapping Numpad 5 to send the shutdown command, so it's just a simple remapping in AHK.

Posted
I think this should work:

(Save this as a text file with .ahk as the extension)

Numpad5::Shutdown, 1

I thought you wanted a combination of keys, that's why I thought a fancy script might be required. In this case, you just are mapping Numpad 5 to send the shutdown command, so it's just a simple remapping in AHK.

where do i place the text file? in the main gameex folder?

Posted
where do i place the text file? in the main gameex folder?

didn't work. what should i be naming this file? i named it "shutdown.ahk" and placed it in the gameex folder. upon pressing num5 it doesn't shut down.

Posted
This is a really simple script! I don't have anything put together at the moment (I've been prograstinating getting one written though), so if Brian comes up with a good consice script, I'll probably steal the guts and incorporate it into mine... :ph34r:

Alright I came up with a couple of things.

I'am attaching an poweroff.EXE which is a pre complied AHK script. copy the exe to your c:\ or where ever and In gameex advanced config/tweaks&performance goto the also launch no wait to c:\poweroff.exe or where ever you put it. This will load the script with gameex. Note there are two versions one using num5 and the other using 5. My Ipac uses 5 so I included it just in case.

Ive also made it so that it only shutdowns windows if gameex is the active window that way you dont accidently do it in a heavy game of super mario bros B)

I have also put in a couple samples in case you want to change and make it your own.

:ph34r: Here's the guts bkenobi :ph34r:

Heres an example script of 5 running the shutdown sequence

#singleinstance

#ifWinActive, GameEx

5::run shutdown /s -t 00

Heres an example script of SHIFT+5 running the shutdown sequence

#singleinstance

#ifWinActive, GameEx

+5::run shutdown /s -t 00

Heres an example script of numpad7+5 running the shutdown sequence

#singleinstance

#ifWinActive, GameEx

Numpad7 & Numpad5::run shutdown /s -t 00

scripts.zip

Posted
Alright I came up with a couple of things.

I'am attaching an poweroff.EXE which is a pre complied AHK script. copy the exe to your c:\ or where ever and In gameex advanced config/tweaks&performance goto the also launch no wait to c:\poweroff.exe or where ever you put it. This will load the script with gameex. Note there are two versions one using num5 and the other using 5. My Ipac uses 5 so I included it just in case.

Ive also made it so that it only shutdowns windows if gameex is the active window that way you dont accidently do it in a heavy game of super mario bros B)

I have also put in a couple samples in case you want to change and make it your own.

:ph34r: Here's the guts bkenobi :ph34r:

Heres an example script of 5 running the shutdown sequence

#singleinstance

#ifWinActive, GameEx

5::run shutdown /s -t 00

Heres an example script of SHIFT+5 running the shutdown sequence

#singleinstance

#ifWinActive, GameEx

+5::run shutdown /s -t 00

Heres an example script of numpad7+5 running the shutdown sequence

#singleinstance

#ifWinActive, GameEx

Numpad7 & Numpad5::run shutdown /s -t 00

I was almost going to tell you that renaming his text file to .ahk wouldn't work for him without actually having auto hot key installed on his system but I see you uploaded exe's instead. Good going. ;)

Jay T

Posted
I was almost going to tell you that renaming his text file to .ahk wouldn't work for him without actually having auto hot key installed on his system but I see you uploaded exe's instead. Good going. ;)

Jay T

Thanks man :) I hope they work out. If not I can make another. It did work for me tho.

Pimpdaddystu actually turned me on to AHK although I heard about it many times.

The wonderfull thing about AHK is is does everything!! Whenever I get some crazy idea to interface things to gameex and emulators Autohotkey is the awnser.

Between the abiltys of AHK and the Versitility/functionality/Ability/customzation/of Gameex I've got the setup I've always wanted. Even tho I still feel the need to tweak it every day :lol:

*removes lips off Toms ass and reaslizes Iam not trying to win a free licence*

Ok really tho not going off topic any more...

Hope this works...Let me know

Posted
Thanks man :) I hope they work out. If not I can make another. It did work for me tho.

Pimpdaddystu actually turned me on to AHK although I heard about it many times.

The wonderfull thing about AHK is is does everything!! Whenever I get some crazy idea to interface things to gameex and emulators Autohotkey is the awnser.

Between the abiltys of AHK and the Versitility/functionality/Ability/customzation/of Gameex I've got the setup I've always wanted. Even tho I still feel the need to tweak it every day :lol:

*removes lips off Toms ass and reaslizes Iam not trying to win a free licence*

Ok really tho not going off topic any more...

Hope this works...Let me know

Yep, AHK and Gameex is the shiznit. Now if I could only find a use for my shazaaam key. I've found I haven't needed it yet.

Jay T

Posted
Yep, AHK and Gameex is the shiznit. Now if I could only find a use for my shazaaam key. I've found I haven't needed it yet.

Jay T

Like Family Guy shazaaam?

Posted

Yeah, I forgot to mention that you have to have AHK installed for my script to work. I probaly should have just compiled it, but it didn't cross my mind at the time... Oh well.

Posted
Like Family Guy shazaaam?

Naw, like keywiz shazaaam. Its basically a shift key that changes the profile of my button layouts. With AHK I don't need to shazaaam into any other configuration.

Jay T

Posted

Im glad the script worked out for you :)

I'am attaching a sample batch file. Just Right click and choose edit.

Make sure you have a folder in your C:\ that is called batchlinks. Inside that folder create shortcuts for the programs you want to run. A shortcuts file extension is .LNK so leave that part intact. Just make the filenames match. It would be best to not use spaces in the name.

batchfiles.zip

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