1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I make a script or bat file to press one button?

Discussion in 'General Programming Chat' started by deguzman523, Nov 28, 2009.

  1. deguzman523

    deguzman523 Junior Member

    Joined:
    Apr 9, 2009
    Messages:
    199
    Likes Received:
    56
    Hey everyone,

    I simply want to make a script or a .bat file that will allow me to press "f6".

    Can anybody here help me with this?

    Thanks!

    Oh, and as for the language of the script. I don't know what language I want it in exactly, but here's an example:
    Code:
    [COLOR=White][FONT=Times New Roman][FONT=arial]Info("Disconnecting router");
    hs=new HTTPScript("admin", "admin");
    hs.SetData("action", "Disconnect");
    hs.SetData("wan_pro", "2");
    hs.SetData("conn_stats", "300");
    hs.SetData("layout", "en");
    hs.Referer="http://192.168.1.1/rstatus.tri";
    s=hs.POST("http://192.168.1.1/rstatus.tri");
    Wait(6000);[/FONT][/FONT][/COLOR]
    Thanks!