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

win7-64-HP
 
 
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 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
 
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
Reply

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





Thread Tools



Similar help and support threads for2: writing a program that boots on startup to do a short list of things
Thread Forum
no writing/editing access to my documents and program files. General Discussion
Solved Writing To Program Files Folder - How (Access Denied) ? General Discussion
Best Program for Writing Help Files? Software
Solved Put desktop program back to program list? General Discussion
Music writing program Sound & Audio
Writing a program in python, need someone to test. Browsers & Mail
How do I Add things to the Desktop List? Customization

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 10:29 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33