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 becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Hey guys im trying to launch Residenty Evil 5 from game ex but i cant because when you launch the game it brings up a screen that you have to click which version to run either dx9 or 10... Can anyone make a launcher to select the dx9 version for me?

Thanks...

Posted

Are you sure you can't call the Resident Evil 5 executable directly? Sometimes you don't really need to call the launcher which simplifies things. If that doesn't work, Tempest created a thread a couple weeks back for wrapper requests. If he doesn't step in on this thread, maybe you could find that one and post the request there?

Posted

Hey guys im trying to launch Residenty Evil 5 from game ex but i cant because when you launch the game it brings up a screen that you have to click which version to run either dx9 or 10... Can anyone make a launcher to select the dx9 version for me?

Thanks...

If I had it I could. :)

Honestly, download Autohotkey, Use the Script recorder. Select to record windows title and text. Click the Browse Button and point to the EXE that runs REsident Evil.

Press Record. This will launch the Game, Then press TAB and see if it selects between the menu options (DX9 and DX10) once yours is selected press Enter.

This should load the game.

Exit the game then save the script, remove anything you may have done to navigate the game and your ESC presses whatever.

Save then test your AHK script by double clicking it, if you did it ok the game will launch.

Once that is done compile it to EXE then post here for others to enjoy.

Brian Hoffman

Posted

Are you sure you can't call the Resident Evil 5 executable directly? Sometimes you don't really need to call the launcher which simplifies things. If that doesn't work, Tempest created a thread a couple weeks back for wrapper requests. If he doesn't step in on this thread, maybe you could find that one and post the request there?

Ok i will send tempest a request... Cant launch it directly from the dx9 exe already tryed. In the mean time i will give brians suggestion a shot.

Posted

Try the script I just compiled. It worked perfectly for me! I included the ahk (for editing in case your directory is different form mine) and the exe of it. Thanks Brian for suggesting this! :)

RE 5 script.rar

Posted

Try the script I just compiled. It worked perfectly for me! I included the ahk (for editing in case your directory is different form mine) and the exe of it. Thanks Brian for suggesting this! :)

Hunk thanks a ton that works perfect!

Posted

Try the script I just compiled. It worked perfectly for me! I included the ahk (for editing in case your directory is different form mine) and the exe of it. Thanks Brian for suggesting this! :)

Sweet, I modified it slighty, I took out the winwait for the autoscriptwritter. I also forced a sinleinstance so it does not crash if trying to run a second time while the first is still running.

I did this because the Script is never called to exit. Of course since the GameEx is launching this it looks as the loader as the game, not the loader, thus when the loader closes gameex comes back up, this is undesired behavor of course, but you can wait to end the app once it sees the game close, I commentated out ";" the section of code that does that, run the game then press CTRL+ALT+DEL and go to PROCESSES Tab. Then find the games process and use that as the defined executale to wait for, this way once that happens then then next line of code will be run to EXITAPP the other commented line. Remove the comments by removing the ";"

With that going once the game is closed the loader will exit, once the loader closes gameex will come into focus, this may be more reliable.

The last two changes I made were to hide the mouse moving and navigating the screen, This is untested becuase I do not have the game to see if it effects it. I also have not tested the loader, this does work for some of the things I have made.

Finally and most importantly, the loader works as you now know it by sending key strokes, If the user is pressing keys it could interfere with the loading, so I added block input on and off at diffrent point in the script, this ensure the functions go un-interrupted.

Please try it and update the commentated lines.

Great job and welcome to loader programming 101



#NoEnv
#SingleInstance force
#Persistent
#NoTrayIcon
SetBatchLines -1


Gui +AlwaysOnTop -Caption +ToolWindow ; No title, No taskbar icon
Gui Color, 0 ; Color Black
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, RE5HIDE
;WinSet Transparent, 200, A ; Can be semi-transparent
MouseGetPos X, Y ; Remember pos to return
MouseMove %A_ScreenWidth%,%A_ScreenHeight% ; Move pointer off screen
Run, C:\Program Files (x86)\CAPCOM\RESIDENT EVIL 5\Launcher.exe
Blockinput on ; Keeps users from messing up loader my pressing buttons and moving mouse
WinWait, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5

IfWinNotActive, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5, WinActivate, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5

WinWaitActive, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5

MouseClick, left, 422, 128
Sleep, 100
WinWait, RESIDENT EVIL 5,
IfWinNotActive, RESIDENT EVIL 5, , WinActivate, RESIDENT EVIL 5,
WinWaitActive, RESIDENT EVIL 5,
Send, {UP}{ENTER}{ENTER}
Sleep, 3000
Blockinput off
Gui Destroy
;Process, WaitClose, EXAMPLEPROCESS.exe
;ExitApp

If I may, id suggest using TAB to navigate the menu whenever possible because mouse clicks are based on an X and Y coordinance that could be different between machines.

Posted

Sweet, I modified it slighty, I took out the winwait for the autoscriptwritter. I also forced a sinleinstance so it does not crash if trying to run a second time while the first is still running.

I did this because the Script is never called to exit. Of course since the GameEx is launching this it looks as the loader as the game, not the loader, thus when the loader closes gameex comes back up, this is undesired behavor of course, but you can wait to end the app once it sees the game close, I commentated out ";" the section of code that does that, run the game then press CTRL+ALT+DEL and go to PROCESSES Tab. Then find the games process and use that as the defined executale to wait for, this way once that happens then then next line of code will be run to EXITAPP the other commented line. Remove the comments by removing the ";"

With that going once the game is closed the loader will exit, once the loader closes gameex will come into focus, this may be more reliable.

The last two changes I made were to hide the mouse moving and navigating the screen, This is untested becuase I do not have the game to see if it effects it. I also have not tested the loader, this does work for some of the things I have made.

Finally and most importantly, the loader works as you now know it by sending key strokes, If the user is pressing keys it could interfere with the loading, so I added block input on and off at diffrent point in the script, this ensure the functions go un-interrupted.

Please try it and update the commentated lines.

Great job and welcome to loader programming 101



#NoEnv
#SingleInstance force
#Persistent
#NoTrayIcon
SetBatchLines -1


Gui +AlwaysOnTop -Caption +ToolWindow ; No title, No taskbar icon
Gui Color, 0 ; Color Black
Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%, RE5HIDE
;WinSet Transparent, 200, A ; Can be semi-transparent
MouseGetPos X, Y ; Remember pos to return
MouseMove %A_ScreenWidth%,%A_ScreenHeight% ; Move pointer off screen
Run, C:\Program Files (x86)\CAPCOM\RESIDENT EVIL 5\Launcher.exe
Blockinput on ; Keeps users from messing up loader my pressing buttons and moving mouse
WinWait, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5

IfWinNotActive, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5, WinActivate, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5

WinWaitActive, RESIDENT EVIL 5 LAUNCHER, Run RESIDENT EVIL 5

MouseClick, left, 422, 128
Sleep, 100
WinWait, RESIDENT EVIL 5,
IfWinNotActive, RESIDENT EVIL 5, , WinActivate, RESIDENT EVIL 5,
WinWaitActive, RESIDENT EVIL 5,
Send, {UP}{ENTER}{ENTER}
Sleep, 3000
Blockinput off
Gui Destroy
;Process, WaitClose, EXAMPLEPROCESS.exe
;ExitApp

If I may, id suggest using TAB to navigate the menu whenever possible because mouse clicks are based on an X and Y coordinance that could be different between machines.

Hehe thanks Brian it worked perfectly! Though I use a gamepad (X360 pad) and not the keyboard and mouse. It seems the keyboard and mouse is disabled while running this script. Just saying in case there are some who prefer the key/mouse :)

Posted

Hehe thanks Brian it worked perfectly! Though I use a gamepad (X360 pad) and not the keyboard and mouse. It seems the keyboard and mouse is disabled while running this script. Just saying in case there are some who prefer the key/mouse :)

Opps I forgot to turn that off after the load does its thing, It is used so the loader is not interrupted my people pressing buttons when the loader starts.

FIXED, :) see updated posts.

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