hookLine Posted November 24, 2008 Posted November 24, 2008 Alright, so I want to have AutoIt type something like: Ancient Shield Stats: Blah blah blah Blah blah blah Blah blah blah I want AutoIt to type that in the game window when a user types "ancient shield" into the game window. How would I do this?
dbzfanatic Posted November 24, 2008 Posted November 24, 2008 You would have to use a keyboard hook to catch the user input. This information could be used to make a keylogger so I will not post it here. There are topics in the forums about hooking the keyboard so search them. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote]
hookLine Posted November 24, 2008 Author Posted November 24, 2008 You would have to use a keyboard hook to catch the user input. This information could be used to make a keylogger so I will not post it here. There are topics in the forums about hooking the keyboard so search them.Would you mind giving me a little more information on this?
Pain Posted November 24, 2008 Posted November 24, 2008 "...when a user types..."That's the hard part if you mean another use, not yourself, search for ocr but I guess you will fail.Using nomad memory or CE will most likely give a better result.
hookLine Posted November 25, 2008 Author Posted November 25, 2008 That's the hard part if you mean another use, not yourself, search for ocr but I guess you will fail.Using nomad memory or CE will most likely give a better result.I referred to "user" being the user of this script, meaning myself pretty much, until I release it.
TehWhale Posted November 25, 2008 Posted November 25, 2008 Ugh, this is for Diablo II right? You can read chat messages by reading memory, but for some odd reason. It can't work on Vista. It just returns a blank string. Obviously you will need the memory functions which are easy to find, but this works on XP to get the last msg, but not on vista. Func D2GetLastMsg() Local $Handle = _MemoryOpen(WinGetProcess("Diablo II")) Local $Temp = _MemoryReadWideString(_MemoryRead(_MemoryRead(0x6FBCB830, $Handle, 'dword'), $Handle, 'dword'), $Handle, 'ushort[256]') Local $f = _MemoryClose($Handle) Return $Temp EndFunc ;==>GetLastChatMessage
hookLine Posted November 25, 2008 Author Posted November 25, 2008 Ugh, this is for Diablo II right? You can read chat messages by reading memory, but for some odd reason. It can't work on Vista. It just returns a blank string. Obviously you will need the memory functions which are easy to find, but this works on XP to get the last msg, but not on vista. Func D2GetLastMsg() Local $Handle = _MemoryOpen(WinGetProcess("Diablo II")) Local $Temp = _MemoryReadWideString(_MemoryRead(_MemoryRead(0x6FBCB830, $Handle, 'dword'), $Handle, 'dword'), $Handle, 'ushort[256]') Local $f = _MemoryClose($Handle) Return $Temp EndFunc ;==>GetLastChatMessageYes, this is for Diablo II. Is there any other code I can use to make it work on Vista? I am running Vista right now
hookLine Posted November 26, 2008 Author Posted November 26, 2008 Is there any way to make the above code work on Vista?
hookLine Posted November 26, 2008 Author Posted November 26, 2008 (edited) You would have to use a keyboard hook to catch the user input. This information could be used to make a keylogger so I will not post it here. There are topics in the forums about hooking the keyboard so search them.I currently have the hook.dll file and the .au3 file. Edited November 26, 2008 by hookLine
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