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

i need to send the enter button via a batch file ,

i need the batch file to open a pc game and send the enter button to skip the resolution gui,

any ideas,

i was hoping the sendkeys command would work in batch

Posted
i need to send the enter button via a batch file ,

i need the batch file to open a pc game and send the enter button to skip the resolution gui,

any ideas,

i was hoping the sendkeys command would work in batch

AHK script would be best. post the contents of your batch file and maybe we can put something together for you.

:)

Posted
AHK script would be best. post the contents of your batch file and maybe we can put something together for you.

:)

well is only this so far

"c:\program files\farscae the game\farscape.exe"

end

no i need it to press enter about 1 second after opening farscape

thanx for helping

Posted
Whats wrong with using GameEx's built in SendKeys and SendDelay?

i only need it for 1 game,

and i dont want a seporate emulator for that game

Posted

You know you can have a separate emulator and then group it back with your other PC games, right? I would personally probably use a script, but you can also do it the other way...

Posted

Then you will need to write a simple AutoHotKey script. It would literally look like this

Sleep 2000
Send {enter}

Sleep is in milliseconds, so change that to whatever you like. Compile it then just add the exe to the end of your batch file.

Posted
Then you will need to write a simple AutoHotKey script. It would literally look like this

Sleep 2000
Send {enter}

Sleep is in milliseconds, so change that to whatever you like. Compile it then just add the exe to the end of your batch file.

didnt work

Posted

Lol you need to download the AutoHotKey software and place that code into a text file (call it SendEnter.ahk) then compile it to an exe so it will create SendEnter.exe.

Posted
Lol you need to download the AutoHotKey software and place that code into a text file (call it SendEnter.ahk) then compile it to an exe so it will create SendEnter.exe.

wow it works great m8,

cool software,

thanx

Posted
wow it works great m8,

cool software,

thanx

1 problem

gameex quits while it is being loaded but still actually plays,

it says "game over'' but still launches,

problem is

i cant use the gamepad to keys option that all my pc games use,

so i need gameex to stop ending after the script has finnished,,,,any ideas

Posted

I'm guessing that you call the script which launches the game and then the script ends. When GameEx sees the process for the script gone, it assumes you are done and it takes over again. There are 2 solutions to this. You can either keep the script alive until you are done with the game or you can tell GameEx that you want it to wait until the game's process is complete. Neither of these is complicated.

Posted
I'm guessing that you call the script which launches the game and then the script ends. When GameEx sees the process for the script gone, it assumes you are done and it takes over again. There are 2 solutions to this. You can either keep the script alive until you are done with the game or you can tell GameEx that you want it to wait until the game's process is complete. Neither of these is complicated.

ok

the first 1 would be better

how do i do that then

Posted
ok

the first 1 would be better

how do i do that then

You need to tell your script to wait for the process to close using the process command.

Process, WaitClose, farscape.exe

Something like that. I'm more familiar with autoit so I could be wrong so maybe one of the ahk scripters here can jump in if i'm wrong. Just take a look here for reference.

Posted
You need to tell your script to wait for the process to close using the process command.

Process, WaitClose, farscape.exe

Something like that. I'm more familiar with autoit so I could be wrong so maybe one of the ahk scripters here can jump in if i'm wrong. Just take a look here for reference.

thanx guys all is working fine now

ttthhhaaannnxxx

Posted

For reference, most commands in AutoIt will work fine in AHK. The reason (from what I've read) is that syntax is backwards compatible so that people will feel comfortable switching over to AHK if desired. I think many of the functions are even the same!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...