[email protected] wrote: I was going to make a bot using only a text file fed into a buffer and used with sendinput. This is purely a learning experience for me as i only code a little in assembly.
Thanks lads. > > -- > [ Picked text/plain from multipart/alternative ] > I was wondering the same thing. With no feedback from the engine it doesn't > seem to be of much use. > > What are you doing? > > > On 11/4/05, Josh Becker <[EMAIL PROTECTED]> wrote: > > > > -- > > [ Picked text/plain from multipart/alternative ] > > Out of curiosity why are you making this? > > > > On 11/4/05, blackgold <[EMAIL PROTECTED]> wrote: > > > > > > Hi There. > > > > > > I've coded an app that allows me to send keys to the counter strike > > > console. > > > > > > I was wondering what i need to send keys to the game window. > > > Example i send 'w' player moves forward. > > > > > > Do i need directinput or will sendinput work? > > > > > > Thanks alot. > > > > > > Here is my code . > > > --------------------------------------------------- > > > --------------------------------------------------- > > > data > > > > > > window_class db 'Valve001',0 > > > handle dd ? > > > thread_id dd ? > > > > > > > > > data? > > > > > > > > > KEYBOARDINPUT struc > > > dtype DWORD ? > > > wVk WORD ? > > > wScan WORD ? > > > dwFlags DWORD ? > > > time DWORD ? > > > dwExtraInfo DWORD ? > > > dummy1 db 8 dup (?) > > > KEYBOARDINPUT ends > > > > > > > > > keys KEYBOARDINPUT <> > > > > > > code > > > > > > start: > > > > > > invoke FindWindow, > > > addr window_class, > > > NULL > > > > > > mov handle,eax > > > > > > invoke GetWindowThreadProcessId, > > > handle, > > > thread_id > > > > > > mov thread_id,eax > > > > > > invoke SetForegroundWindow, > > > handle > > > > > > mov [keys.dtype],1h > > > mov [keys.wVk],41h > > > mov [keys.wScan],0 > > > mov [keys.dwFlags],1 > > > mov [keys.time],0 > > > mov [keys.dwExtraInfo],0 > > > > > > invoke Sleep,300 > > > > > > invoke SendInput, > > > 1, > > > OFFSET keys, ;pointer to an array of input structures > > > SIZEOF KEYBOARDINPUT > > > > > > > > > > > > invoke ExitProcess,NULL > > > > > > end start > > > > > > > > > ----------------------------------------------------------------- > > > Find the home of your dreams with eircom net property > > > Sign up for email alerts now http://www.eircom.net/propertyalerts > > > > > > > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > -- > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > ----------------------------------------------------------------- Find the home of your dreams with eircom net property Sign up for email alerts now http://www.eircom.net/propertyalerts _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

