Olish Posted July 25, 2006 Share Posted July 25, 2006 Hello everybody ! You want a source code for Wake On LAN without copyright ? It's here ! ENJOY ! expandcollapse popup$IPAddress = "192.168.1.255"; This is the broadcast address ! $MACAddress = "000D8787E226" UDPStartUp() $connexion = UDPOpen($IPAddress, 7) $res = UDPSend($connexion, GenerateMagicPacket($MACAddress)) MsgBox(0, "", $res) UDPCloseSocket($connexion) UDPShutdown() ; =================================================================== ; Functions ; =================================================================== ; This function convert a MAC Address Byte (e.g. "1f") to a char Func HexToChar($strHex) Return Chr(Dec($strHex)) EndFunc ; This function generate the "Magic Packet" Func GenerateMagicPacket($strMACAddress) $MagicPacket = "" $MACData = "" For $p = 1 To 11 Step 2 $MACData = $MACData & HexToChar(StringMid($strMACAddress, $p, 2)) Next For $p = 1 To 6 $MagicPacket = HexToChar("ff") & $MagicPacket Next For $p = 1 To 16 $MagicPacket = $MagicPacket & $MACData Next Return $MagicPacket EndFunc Thanks for your remarks... Next to see you ! grimmlock, coffeeturtle, mLipok and 1 other 4 Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
themax90 Posted July 25, 2006 Share Posted July 25, 2006 I do believe to wake on LAN you must set it in to bios. See the word "wake" means start-up. I am 99% sure it's a BIOS issue but I could be wrong. AutoIt Smith Link to comment Share on other sites More sharing options...
Wus Posted July 25, 2006 Share Posted July 25, 2006 yeh... hes saying that he made a way to create that 'message' that activates a comp to wake (iff WOL is enabled) Link to comment Share on other sites More sharing options...
themax90 Posted July 25, 2006 Share Posted July 25, 2006 Ok. Well, cool. Link to comment Share on other sites More sharing options...
b8bboi Posted July 25, 2006 Share Posted July 25, 2006 This is great. Thanks for sharing. Link to comment Share on other sites More sharing options...
ConsultingJoe Posted July 26, 2006 Share Posted July 26, 2006 This is great. Thanks for sharing.I love wake on lan but I couldn't test this yet. So it does work with you b8bboi? Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
Olish Posted July 26, 2006 Author Share Posted July 26, 2006 It's pleasure. I hope everybody will enjoy ! Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
rakudave Posted July 26, 2006 Share Posted July 26, 2006 havern't tested it eighter yet, but it looky cool, thanks 4 sharing... Pangaea Ruler new, UDF: _GUICtrlCreateContainer(), Pangaea Desktops, Pangaea Notepad, SuDoku, UDF: Table Link to comment Share on other sites More sharing options...
/dev/null Posted July 26, 2006 Share Posted July 26, 2006 I love wake on lan but I couldn't test this yet. So it does work with you b8bboi?At least it creates the same WOL packet than any other WOL tool (sniffed with Ethereal), so I guess it works.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Olish Posted July 26, 2006 Author Share Posted July 26, 2006 Yes it works good ! I tested on 2 subnets. And the Magic Packet is sniffed by WOL Monitor from depicus.com ! Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 26, 2006 Share Posted July 26, 2006 At least it creates the same WOL packet than any other WOL tool (sniffed with Ethereal), so I guess it works.CheersKurtTime to switch to wireshark So long,MegaThanks for sharing & others for testing. Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
GioVit Posted July 26, 2006 Share Posted July 26, 2006 I tested on my LAN, and it real works! Thanks for sharing. Link to comment Share on other sites More sharing options...
jftuga Posted July 26, 2006 Share Posted July 26, 2006 I noticed that WoL only boots up a machine if it is completely off. If a machine is in hybernate or standby, WoL will not work, at least for Dells. Has anyone else experienced this? Or is there another way to wake up a PC that is in standby or hibernate mode? Thanks, -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile Link to comment Share on other sites More sharing options...
/dev/null Posted July 26, 2006 Share Posted July 26, 2006 Time to switch to wireshark Yep, I'm just TOO used to the old name.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
Olish Posted July 26, 2006 Author Share Posted July 26, 2006 I noticed that WoL only boots up a machine if it is completely off. If a machine is in hybernate or standby, WoL will not work, at least for Dells. Has anyone else experienced this?Or is there another way to wake up a PC that is in standby or hibernate mode?Thanks,-JohnYes it runs when your PC is in "standby" or "hibernate" mode ! Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
ConsultingJoe Posted July 26, 2006 Share Posted July 26, 2006 Way cool then, someone should add this to an autoit remote control program Check out ConsultingJoe.com Link to comment Share on other sites More sharing options...
Borg_59 Posted July 28, 2006 Share Posted July 28, 2006 Hi, I am new try to use the script but he is return with this error: (7) : ==> Unknown function name.: UDPStartUp() ^ ERROR What's go wrong. Rob Link to comment Share on other sites More sharing options...
Zedna Posted July 28, 2006 Share Posted July 28, 2006 Hi,I am new try to use the script but he is return with this error:(7) : ==> Unknown function name.: UDPStartUp() ^ ERRORWhat's go wrong.RobYou need Beta version of AutoIt. Resources UDF Â ResourcesEx UDF Â AutoIt Forum Search Link to comment Share on other sites More sharing options...
BigDaddyO Posted July 28, 2006 Share Posted July 28, 2006 YESSSS!!!!Thanks you, Thank you, Thank you,This Wake on Lan script will wake up a comptuer on a seperate VLAN... You ROCK!! Mike Link to comment Share on other sites More sharing options...
Iznogoud Posted July 28, 2006 Share Posted July 28, 2006 Is it also possible to wake up 1 pc instead of all in your subnet? Some Wake On Lan tools you can enter the mac adress of the pc and that one and only that one will boot up. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now