Jump to content



Photo

Sending information to a window whilst on another window


  • Please log in to reply
6 replies to this topic

#1 NewNinja

NewNinja

    Seeker

  • Active Members
  • 20 posts

Posted 06 May 2012 - 05:18 PM

Hey guys I got A question,
How could i send a packet to a program whilst I am on another window? I would want the packet to press a key. Whilst you are on another window, the program is on a pause menu. But the game still runs but you can't do anything manually, it is like minecraft if you have heard of it. I have seen programs which is able to do this. I am not sure if packet is the right word but I guess you guys will know what is needed to be done.

Edited by NewNinja, 06 May 2012 - 05:21 PM.






#2 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,843 posts

Posted 06 May 2012 - 05:39 PM

I guess you guys will know what is needed to be done.


Yes.

Go back to the last thread you made about game bots, read it again.
See if you can deduce something from it.
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#3 NewNinja

NewNinja

    Seeker

  • Active Members
  • 20 posts

Posted 06 May 2012 - 06:14 PM

John, you have jumped to the wrong conclusion. I do not intend to make a program to automate things on games. I think you thought this because I mentioned minecraft, I mentioned minecraft because it was the only thing which I could compare it to which most people will understand.

Edited by NewNinja, 06 May 2012 - 06:19 PM.


#4 JohnOne

JohnOne

    John

  • Active Members
  • PipPipPipPipPipPip
  • 8,843 posts

Posted 06 May 2012 - 06:37 PM

Sorry.

Perhaps you might explain a little better about what you need?

What exactly do you mean by "packet"?
AutoIt Absolute Beginners Require a serial
Run('hh mk:@MSITStore:'&StringReplace(@AutoItExe,'.exe','.chm')&'::/html/tutorials/helloworld/helloworld.htm','',@SW_MAXIMIZE)

#5 NewNinja

NewNinja

    Seeker

  • Active Members
  • 20 posts

Posted 06 May 2012 - 07:47 PM

I'm not sure what packet means but I have heard it been used before when doing something similar to this, the way I explained it is the best I could :/ If you have played minecraft you would kind of know what I am talking about. By packet I thought it meant something which imitates a key being pressed whilst not on the program. If you just send a key press to the certain program it will not work at it is at pause menu. But because the program is still running behind it you can somehow send a packet through the pause menu.

Edited by NewNinja, 06 May 2012 - 08:19 PM.


#6 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,085 posts

Posted 06 May 2012 - 10:59 PM

NewNinja, I am with John on this one. We are more than happy to assist, but your initial post screams game automation. If this is truly not the case, please try explaining more explicitly what you want to do? Perhaps use the guide below:

How could i send a packet to a program whilst I am on another window?

  • What is the "other window" you'll be on?
  • What program do you want to send the "packet" to?

J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#7 Melba23

Melba23

    Yes, me!

  • Moderators
  • 15,350 posts

Posted 07 May 2012 - 09:19 AM

NewNinja

your initial post screams game automation

I agree - your next post had better explain very clearly what you are trying to do. ;)

M23
StringSize - Automatically size controls to fit text - ExtMsgBox - A user customisable replacement for MsgBox

Toast - Small GUIs which pop out of the Systray - Marquee - Scrolling tickertape GUIs

Scrollbars - Automatically sized scrollbars with a single command - GUIFrame - Subdivide GUIs into many adjustable frames

GUIExtender - Extend and retract multiple sections within a GUI - NoFocusLines - Remove the dotted focus lines from buttons, sliders, radios and checkboxes

ChooseFileFolder - Single and multiple selections from specified path tree structure - - Notify - Small notifications on the edge of the display

RecFileListToArray - An alternative to _FileListToArray with user-defined include/exclude masks, maximum recursion level, sorting and displayed path options

GUIListViewEx - Insert, delete, move, drag and sort ListView items





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users