+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
Coding Thread, Can someone design me something please in Coding and Web Development; Hey guys need some help here Our ISP make us use a proxy, doesnt work without, teachers are having problem ...
  1. #1
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25

    Can someone design me something please

    Hey guys need some help here


    Our ISP make us use a proxy, doesnt work without, teachers are having problem now getting the internet at home, some can get on, some cant because they forgot to take the proxy off or they dont know how to

    is there a little app that can be made to select whether you are at home (to take the proxy off) and whether your at work (put proxy on)

    anyone able to make something for this little problem, thanks

  2. #2
    pooley's Avatar
    Join Date
    Sep 2005
    Location
    S Wales
    Posts
    1,129
    Thank Post
    77
    Thanked 118 Times in 99 Posts
    Rep Power
    66

  3. #3
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    thanks, that should work, dont know why I couldnt find anything when I looked ages ago about this


    +rep

    but is there anything better, dont really want more programs running in the memory

    a fair few teachers complain already there laptops run slow

    Is it possible for some sort of icon setup?

    One saying, home internet
    Second saying, work internet

    Double cick on one and it changess the settings has required


    anyone able to make something like this?

    So basiclly a registry file would do this, But cant have the yes no box coming up everytime

    so really it needs to be an exe with some sort of home logo and business logo for each, so the user does not get confussed when doing this

    needs to be idiot proof!!!!!!

    its a shame for the vista computers, when you have the home or public or work selection coming up, it doesnt save these sort of settings with that, would be a good idea
    Last edited by pritchardavid; 7th October 2009 at 08:41 PM.

  4. #4
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    updated

  5. #5

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    Edit to your requirements & compile [ AutoIT ] - will look like the picture under the script.
    Will change the proxy settings and then launch IE. When run takes VERY little memory.

    Code:
    ; AutoIt Version:  	3.2.0.1
    ; Language:        	English
    ; Platform:        	WinXP
    ; Author:          	Matt 
    ; Script Function: 	Proxy Switcher
    ; Version:			1.0
    ; Date:				Sept 2009
    
    #include <GUIConstants.au3>
    
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Proxy Switcher", 220, 110, 348, 309)
    $helpmenu = GUICtrlCreateMenu("Help")
    $infoitem = GUICtrlCreateMenuItem("About", $helpmenu)
    GUISetBkColor(0x0066FF)
    $Button1 = GUICtrlCreateButton("Proxy On", 10, 20, 89, 49)
    $Button2 = GUICtrlCreateButton("Proxy Off", 120, 20, 89, 49)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    
    While 1
    	$nMsg = GUIGetMsg()
    	Select
    		Case $nMsg = $Button1
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "First Home Page", "REG_SZ", "http://navaho")
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://navaho")
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyServer", "REG_SZ", "10.0.0.2:8080")
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "Proxyenable", "REG_DWORD", "1")
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "ProxyOverride", "REG_SZ", "intranet")
    			Run('C:\Program Files\Internet Explorer\iexplore.exe')
    			Exit
    		Case $nMsg = $Button2
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "First Home Page", "REG_SZ", "http://www.google.co.uk")
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Start Page", "REG_SZ", "http://www.google.co.uk")
    			RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings", "Proxyenable", "REG_DWORD", "0")
    			Run('C:\Program Files\Internet Explorer\iexplore.exe')
    			Exit
    		Case $nMsg = $infoitem
    			MsgBox(0, "Proxy Switcher 1.0", "Written By Matt " & @CRLF & "Comments & Suggestions to:" & @CRLF & "matt@#######.org.uk")
    	EndSelect
    	Switch $nMsg
    		Case $GUI_EVENT_CLOSE
    			Exit
    	EndSwitch
    WEnd
    Attached Images Attached Images
    Last edited by mattx; 7th October 2009 at 11:08 PM.

  6. Thanks to mattx from:

    Hacksawbob (7th October 2009)

  7. #6
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    WE have exactly this it's just two shortcuts to a batch files on the c drive, that imports .REG files also on the c drive into the registy (bypasses warnings that confuse people).

    will post it tommorow if someone else doesn't in the mean time...

    You mentioned you already have the reg files for this, so to bypass the yes/no boxes. Find the batch command that imports reg files. place the bat file on c drive then jsut shortcut to it job done.
    Last edited by mossj; 7th October 2009 at 09:05 PM.

  8. #7
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25
    Thanks for your help

    Copied your script has needed and edited for our proxy setting but keep getting this a message everytime when trying to make the exe


    error: variable used without being declared


    line 16

    even a stright copy and paste and trying to make the exe doesnt work without editing something, so dont think its something im doing wrong


    nope didnt make reg files, just saying that could be an option to use, but staff member would know what to do
    but your way would work, i'll try to get the method above working first, if not, i'll try what you have then
    Last edited by pritchardavid; 7th October 2009 at 09:43 PM.

  9. #8
    Hacksawbob's Avatar
    Join Date
    Apr 2008
    Location
    North West UK
    Posts
    192
    Thank Post
    13
    Thanked 20 Times in 16 Posts
    Blog Entries
    2
    Rep Power
    17
    Just the sort of thing I'm after but I get this when I run it.
    $BS_DEFPUSHBUTTON
    variable used without being declared

    I never really graduated from V2 am I doing something daft?

  10. #9

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,623
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by davep000 View Post
    Our ISP make us use a proxy
    Set up a transparent proxy between your network and the connection as provided by your ISP. We use Squid for this, running on a virtual machine.

    --
    David Hicks

  11. #10
    linkazoid's Avatar
    Join Date
    May 2007
    Location
    London
    Posts
    645
    Thank Post
    119
    Thanked 89 Times in 73 Posts
    Rep Power
    78
    we use this simple app:

    Attached!

    Even Senior Management can use it!
    Attached Files Attached Files

  12. #11

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    Sorry, thats what you get for using old bits of code from other stuff I've written -
    The lines [ 16 & 17 ] with the $Button1 & $Button var should read:

    Code:
    $Button1 = GUICtrlCreateButton("Proxy On", 10, 20, 89, 49)
    $Button2 = GUICtrlCreateButton("Proxy Off", 120, 20, 89, 49)
    Just tested it on my Windows 7 using version 3.3.0.0 & it works. [ Using just over 2 meg ] - which in my opinion is too much.....
    If you want the GUI to close after they have clicked on the button, just add an 'Exit' in....
    Last edited by mattx; 7th October 2009 at 11:40 PM.

  13. #12
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    For you - http://projects.localhosting.org.uk/proxySimples.zip

    Should work, if you need it. Just follow the instuctions it's a bish bash bosh job really but it is exactly as you asked. 2 shortcuts on the desktop click one and the proxy is one way, click the other and it that way. Doesn't run in the background so no memory eaten.

    Does require a browser restart but I expect all these scripts do...
    Last edited by mossj; 7th October 2009 at 11:30 PM.

  14. #13

    mattx's Avatar
    Join Date
    Jan 2007
    Posts
    9,240
    Thank Post
    1,058
    Thanked 1,068 Times in 625 Posts
    Rep Power
    740
    Lordy Mossj, your license details are larger than the .reg & .bat files !!

  15. #14
    pritchardavid's Avatar
    Join Date
    Sep 2009
    Location
    South Ockendon, Thurrock, United Kingdom
    Posts
    932
    Thank Post
    18
    Thanked 64 Times in 58 Posts
    Rep Power
    25

    Thumbs up

    Ok cheers, corrected scripping is working, thats one more thing off my to do list

  16. #15
    mossj's Avatar
    Join Date
    Dec 2008
    Location
    Leicester
    Posts
    1,466
    Thank Post
    157
    Thanked 189 Times in 174 Posts
    Rep Power
    52
    Quote Originally Posted by mattx View Post
    Lordy Mossj, your license details are larger than the .reg & .bat files !!
    Yup but the GNU seemed to state I had to include them somewhere

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Design Questionnaire
    By Hightower in forum Web Development
    Replies: 0
    Last Post: 14th October 2008, 10:07 AM
  2. Techsoft 2D Design
    By tosca925 in forum Educational Software
    Replies: 14
    Last Post: 10th September 2008, 11:47 AM
  3. Help with printing design
    By bio in forum Network and Classroom Management
    Replies: 2
    Last Post: 30th July 2008, 01:39 PM
  4. Database Design
    By Hightower in forum General Chat
    Replies: 6
    Last Post: 16th June 2008, 04:22 PM
  5. New 2D Design talking to the Old Mill Design
    By Sean in forum Educational Software
    Replies: 5
    Last Post: 15th January 2008, 09:26 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •