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

jessjess

New member
Local time
4:41 AM
Messages
1
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 My Computer

At a glance

win7-64-HP
OS
win7-64-HP
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"
 

Attachments

  • Capture1.PNG
    Capture1.PNG
    29.7 KB · Views: 7
  • Capture2.PNG
    Capture2.PNG
    11.6 KB · Views: 6
Last edited:

My Computer My Computer

At a glance

Win7 Home Premium 64xIntel Core 2 Duo P7450 / 2.13 GHz (2.29 with ...4 GB PC-6400 Hyundai (2X2) at 800MhzNVIDIA GeForce GTX 260M 1GB DDR3 VRAM
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS G60-RBBX05
OS
Win7 Home Premium 64x
CPU
Intel Core 2 Duo P7450 / 2.13 GHz (2.29 with Extreme Turbo)
Memory
4 GB PC-6400 Hyundai (2X2) at 800Mhz
Graphics Card(s)
NVIDIA GeForce GTX 260M 1GB DDR3 VRAM
Monitor(s) Displays
16" LED Backlit
Screen Resolution
1366 x 768 on laptop 1600x1050 max res on 22" external mon
Hard Drives
OCZ Agility 3 60GB SSD / 320 GB - Serial ATA-150 - 7200 rpm
PSU
6-cell Lithium ion { lasts 1.5 hours }
Case
ASUS G60 Laptop
Keyboard
Chicklet type back-lit (white light) keyboard
Mouse
Logitech G9 Laser Mouse 3200dpi and 1000 reports per minute
Internet Speed
Comcast 8.60mb/s up - 3.11mb/s down
Antivirus
MSE
Browser
Firefox
Other Info
General mid-budget gaming Comp. Low batterylife - High FrameRates - currently overheating problems :(

2nd Rig: Case: Rosewill BLACKHAWK Gaming ATX Mid Tower Computer Case

Mobo: GIGABYTE GA-990FXA-UD3
CPU: AMD FX-6200 Zambezi 3.8GHz (4.1GHz Turbo)
Heatsink: COOLER MASTER V8 CPU Cooler
RAM: Patriot Viper 3 8GB (2 x 4GB) 240-Pin DDR3 SDRAM 1866 (PC3 15000)
GPU: SAPPHIRE Radeon HD 6850 1GB 2
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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 My Computer

At a glance

Win7 Home Premium 64xIntel Core 2 Duo P7450 / 2.13 GHz (2.29 with ...4 GB PC-6400 Hyundai (2X2) at 800MhzNVIDIA GeForce GTX 260M 1GB DDR3 VRAM
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS G60-RBBX05
OS
Win7 Home Premium 64x
CPU
Intel Core 2 Duo P7450 / 2.13 GHz (2.29 with Extreme Turbo)
Memory
4 GB PC-6400 Hyundai (2X2) at 800Mhz
Graphics Card(s)
NVIDIA GeForce GTX 260M 1GB DDR3 VRAM
Monitor(s) Displays
16" LED Backlit
Screen Resolution
1366 x 768 on laptop 1600x1050 max res on 22" external mon
Hard Drives
OCZ Agility 3 60GB SSD / 320 GB - Serial ATA-150 - 7200 rpm
PSU
6-cell Lithium ion { lasts 1.5 hours }
Case
ASUS G60 Laptop
Keyboard
Chicklet type back-lit (white light) keyboard
Mouse
Logitech G9 Laser Mouse 3200dpi and 1000 reports per minute
Internet Speed
Comcast 8.60mb/s up - 3.11mb/s down
Antivirus
MSE
Browser
Firefox
Other Info
General mid-budget gaming Comp. Low batterylife - High FrameRates - currently overheating problems :(

2nd Rig: Case: Rosewill BLACKHAWK Gaming ATX Mid Tower Computer Case

Mobo: GIGABYTE GA-990FXA-UD3
CPU: AMD FX-6200 Zambezi 3.8GHz (4.1GHz Turbo)
Heatsink: COOLER MASTER V8 CPU Cooler
RAM: Patriot Viper 3 8GB (2 x 4GB) 240-Pin DDR3 SDRAM 1866 (PC3 15000)
GPU: SAPPHIRE Radeon HD 6850 1GB 2
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 My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)

My Computer My Computer

At a glance

Win7 Home Premium 64xIntel Core 2 Duo P7450 / 2.13 GHz (2.29 with ...4 GB PC-6400 Hyundai (2X2) at 800MhzNVIDIA GeForce GTX 260M 1GB DDR3 VRAM
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS G60-RBBX05
OS
Win7 Home Premium 64x
CPU
Intel Core 2 Duo P7450 / 2.13 GHz (2.29 with Extreme Turbo)
Memory
4 GB PC-6400 Hyundai (2X2) at 800Mhz
Graphics Card(s)
NVIDIA GeForce GTX 260M 1GB DDR3 VRAM
Monitor(s) Displays
16" LED Backlit
Screen Resolution
1366 x 768 on laptop 1600x1050 max res on 22" external mon
Hard Drives
OCZ Agility 3 60GB SSD / 320 GB - Serial ATA-150 - 7200 rpm
PSU
6-cell Lithium ion { lasts 1.5 hours }
Case
ASUS G60 Laptop
Keyboard
Chicklet type back-lit (white light) keyboard
Mouse
Logitech G9 Laser Mouse 3200dpi and 1000 reports per minute
Internet Speed
Comcast 8.60mb/s up - 3.11mb/s down
Antivirus
MSE
Browser
Firefox
Other Info
General mid-budget gaming Comp. Low batterylife - High FrameRates - currently overheating problems :(

2nd Rig: Case: Rosewill BLACKHAWK Gaming ATX Mid Tower Computer Case

Mobo: GIGABYTE GA-990FXA-UD3
CPU: AMD FX-6200 Zambezi 3.8GHz (4.1GHz Turbo)
Heatsink: COOLER MASTER V8 CPU Cooler
RAM: Patriot Viper 3 8GB (2 x 4GB) 240-Pin DDR3 SDRAM 1866 (PC3 15000)
GPU: SAPPHIRE Radeon HD 6850 1GB 2
Back
Top