Sign in to follow this  
Followers 0
LethalLarry

help with this script

2 posts in this topic

Ok, so here is what I'm trying to do. I downloaded a program for Diablo II. called gMap. everytime you want to use it you have to alt tab. Then use the exe installer , it reveals the map then tells you to hit any key in the dos window to continue. I was wondering how to get it to open then have it type this to close. Here's what i have for a script so far.

;-- edit these to change the hotkeys

HotKeySet("{F9}", "_gMapLoader")

HotKeySet("{F10}", "")

;-- don't edit anything else

While 1

Sleep(100)

WEnd

Func _()

Sleep(100)

Exit

EndFunc

Func _gMapLoader()

RunWait(@COMSPEC & " /c echo 0 | gMapLoader.exe", "", @SW_HIDE)

EndFunc

how could i get it to type any key into the window when it comes up?

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0