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
jessjess

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
Thorsen

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
-capture1.png  
Attached Images
 
My System SpecsSystem Spec
15 Oct 2012   #3
MilesAhead

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
Thorsen

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
Alejandro85

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
Thorsen

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
Thread Forum
Win 7 wants to install program when it boots up
I installed a program WYSIWYG web building program. I built another computer with Windows 7 ultimate 64bit 8gig ram Now when windows boots up to the desktop the install screen comes on for me to install the program. Is there some place that this program is hiding a file associated with the web...
General Discussion
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:
Software
Put desktop program back to program list?
I accidentally dragged a program from start / all programs to my desktop. Can someone tell me how I can "drag" it back / get it back to the program list? Thanks, Airpix / John
General Discussion
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.
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 15:21.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App