writing a program that boots on startup to do a short list of things


  1. Posts : 1
    win7-64-HP
       #1

    writing a program that boots on startup to do a short list of things


    Hi all,
    not so great at programming, nor writing code for windows
    my uncles recently bought a new computer, which i setup. however, the modem and network system that they have is NOT nice in anyway whatsoever. the computer connects to the modem on boot, but NOT the internet. every time the computer boots up, you need to go to 'connect to a network' and connect to the configured PPPoE network.
    they do not like having to be able to do this, and i was wondering how i could go about writing a code that once the computer boots it does the following essentially:

    set_cursor(x1,y1) #move the cursor to over teh network taskbar
    left_click
    delay(100)
    set_cursor(x2,y2) # move the cursor to the network to be connected to
    left_click
    delay(100)
    left_click

    #end program

    simple, but im not too sure how to implement it to work properly
      My Computer


  2. Posts : 3,300
    Win7 Home Premium 64x
       #2

    Can you try this and see if it fixes:

    Type into start bar "Manage Wireless Networks" and when control panel window opens, right click on the wireless network you use (make sure it is highlighted) and go to Properties.

    See if box is checked to "Connect automatically when this network is in range"
    Attached Thumbnails Attached Thumbnails writing a program that boots on startup to do a short list of things-capture1.png   writing a program that boots on startup to do a short list of things-capture2.png  
    Last edited by Thorsen; 15 Oct 2012 at 18:59. Reason: clarification
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    If Thorsen's setting doesn't fix it, you can easily program macros using AutoIt3 or Autohotkey_L. Both are free. If you have programmed some Basic you might find AutoIt3 syntax a bit easier. On the other hand, Autohotkey_L has more flexible hotkey control.

    AutoIt3 may be a bit easier to use initially getting a match on the window title.

    Both use a "Send" command to send keys to the active window control. Both can be compiled to 32 or 64 bit app. Both are good to have for creating small convenience programs. Sometimes I write programs that use 2 exe files. One in AHK_L and one in AutoIt3 so I can combine the strengths of both(and make it easy on myself.) :)
      My Computer


  4. Posts : 3,300
    Win7 Home Premium 64x
       #4

    I agree with MilesAhead and would opt for coding that doesn't require screen x/y positions as these can change due to resolution and possible movement of icon in the taskbar
      My Computer


  5. Posts : 2,468
    Windows 7 Ultimate x64
       #5

    If the modem is really a modem/router, you can change its setup to router mode so that it autoconnects on its own without OS intervention. Or if you happen to have an additional router, you can set it up to make the PPPoE call for you, again without an OS assistance.
      My Computer


  6. Posts : 3,300
    Win7 Home Premium 64x
       #6

    also check out this thread. someone had something similar prior:
    Automatically connect a PPPoE connection on login?
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:15.
Find Us