LethalLarry Posted July 11, 2009 Posted July 11, 2009 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?
Bert Posted July 11, 2009 Posted July 11, 2009 You need to do a controlsend to the window. Use the AutoIt Window info tool to get the window ID. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now