Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

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

15 Oct 2012   #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
set_cursor(x2,y2) # move the cursor to the network to be connected to

#end program

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

My System SpecsSystem Spec
15 Oct 2012   #2

Win7 Home Premium 64x

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
writing a program that boots on startup to do a short list of things-capture1.png  
Attached Images
writing a program that boots on startup to do a short list of things-capture2.png 
My System SpecsSystem Spec
15 Oct 2012   #3

Windows 7 32 bit

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 System SpecsSystem Spec

15 Oct 2012   #4

Win7 Home Premium 64x

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 System SpecsSystem Spec
15 Oct 2012   #5

Windows 7 Ultimate x64

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 System SpecsSystem Spec
15 Oct 2012   #6

Win7 Home Premium 64x

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

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

Thread Tools

Similar help and support threads
Thread Forum
Changing that startup sound! (simple, short question!)
I have the feeling this question has been made a thousand times before, so I'll make it short and simple: Open this screenshot up: Screenshot by Lightshot Is it safe for me to delete the original Windows Startup.wav file and then proceed to replace it with the new file I made on the desktop...
Sound & Audio
Writing To Program Files Folder - How (Access Denied) ?
Hi, I need write/full access to some files that are located in the Program Files folder on a Windows 7 64 bit machine but keep getting access denied messages. Can anyone please tell me how to temporarily allow write/full access to this folder? I am the PC owner with admin priveliges but...
General Discussion
Best Program for Writing Help Files?
Hi, I have been asked to design help files for someone for their program that they are developing. I have been using HTML Help Workshop, but it seems to be badly designed/too complicated to use. What program should I use to create these help files? It should be a free program. Thanks! :geek:
Music writing program
Hi. I have recently bought 'Finale Songwriter' On trying to use it on computer withWin7 there is not joy. There is too much to report of all what is wrong but it works when installed on a computer with XP. However, a couple of problems are: 1. that after writing about 12 notes, on playback it...
Sound & Audio
How do I Add things to the Desktop List?
I want to add things to the Desktop list "WITHOUT" having an icon sitting on the desktop. It must be possible since there are allready icons there when you click desktop from the tasbar that aren't on the Desktop. Anyone know? Thanks.

Our Sites

Site Links

About Us

Find 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 14:16.
Twitter Facebook Google+