topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 10, 2026, 7:31 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 175 176 177 178 179 [180] 181 182 183 184 185 ... 225next
4476
Living Room / Re: Contact information in one's profile
« Last post by 4wd on December 23, 2010, 11:39 PM »
I'd like ICBM!   ;D
4477
What's the Best? / Re: Video Splitter: What's the best AND easiest?
« Last post by 4wd on December 23, 2010, 10:19 PM »
Actually, i said yes to one of those messages, and after that, I wasn't able to select the "Copy" setting in the video part.  So I knew that meant lossless was not going to be possible.

That would have been the question about unpacking a packed bitstream, as soon as you answer Yes the output format changes to AVI-Unp, (IIRC).  It doesn't actually encode it, if you then hit Save the file will be saved as an uncompressed AVI resulting in a file many times larger than the original - no video encoding is applied so it's effectively RAW.

This stuff is all too technical for me.  I just want to split a video.  I just want to enter the start and end point, press split, and it splits it in a lossless way.  Whatever it has to do to reindex and get the AV syncing right, just do it.  Don't ask me about it, don't tell me about it, just do it.  I just want the clip split.

A little more involved with AVIDemux since it wasn't really aimed at that kind of one shot wonder appliance.

To split the file you need to cut the end bit off of the first section, save it, Edit->Reset Edits, cut the start bit off of the second bit and then save that.

However, you can queue these things up in the joblist and have it do numerous files all together.  Otherwise, I could possibly look at modifying one of the scripts to make it a bit easier, ie. select a split point and then run the script to have it do the above steps.
4478
What's the Best? / Re: Video Splitter: What's the best AND easiest?
« Last post by 4wd on December 23, 2010, 08:01 PM »
I think you mean AVIDemux.

AVIDemux does lossless splitting, like so:

2010-12-24_12-43-49.jpg

1. Open your file.
2. Enter your time.
3. Hit 'A' for the start of the clip.
4. Hit 'B' for the end of the clip, then use Control-X to remove it.
5. Save file.

Points to note, starting from top and going down, left -> right:
* Volume control for preview playback
* Set Video to Copy
* Set Audio to Copy
* Set Format to same as input file format
* Play/Pause button
* Stop
* Frame type - this is important - if the initial cut frame type is not I, (key frame), then no matter what program you use the first few frames will have to be re-encoded until the next key frame.

You will see three type of framesw represented by the following three letters:
  • I - frames are the least compressible but don't require other video frames to decode.
  • P - frames can use data from previous frames to decompress and are more compressible than I-frames.
  • B - frames can use both previous and forward frames for data reference to get the highest amount of data compression.

I always aim to start a cut on a key frame.

If you don't start the cut on a key then when you go to save there will be a dialogue asking if you want to enable Smart Copy - choose Yes if your cut doesn't start on a key frame, otherwise you can safely choose No, (if that doesn't work, save it again and choose Yes).  Just answer OK for the next dialogue about quantizer.

Any program that allows frame-accurate cuts will need to re-encode any section of video if it doesn't start with a key frame.

ADDENDUM:
If the program detects a packed bitstream when you open the file, it will offer to unpack it - the correct answer is NO.
If the program detects H.264 video encoding, it will offer to open the file in a 'Safe' manner - the correct answer is CANCEL.  Be aware that this might cause the program to crash, however the alternative 'Safe'  method can cause a loss of sync between video/audio streams.

I suggest the following preferences for opening of files:

2010-12-24_13-18-02.jpg

I use AVIDemux for all my MPEG4-ASP editing without a problem.  I also use it for some MPEG4-AVC edits but I now upgraded to VideoReDo TV Suite H.264 from v3 which can do frame accurate on MPEG2 and now MPEG4-AVC.
4479
Worked here, put in a Youtube URL (actually it just grabbed it out of the clipboard when I selected URL input), selected AVI, it downloaded and converted - quality was very good too.
4480
Tacking another program onto this thread that I just discovered: Free Video Converter from freemake.com

2010-12-23_12-16-00.jpg

Not only does it have all the usual output options, (DVD, BluRay, MKV, AVI, Apple, Sony, Android, Youtube and more), deal with quite a few input formats, (200+ on the website) - it can also take URL input from a variety of video websites, (eg. Youtube, Nicovision, etc - 40 odd) download and then convert.

2010-12-23_12-15-23.jpg
Red light sites not listed in above grab, full list at the website.
4481
Living Room / Re: Why I Don't Want an iPad for Christmas
« Last post by 4wd on December 22, 2010, 05:40 PM »
Jobbs Brian: "You are all individuals!"
Fanboys Crowd: "We are all individuals!"
Renegade Old Man: "I'm not."
4482
Living Room / Re: Why I Don't Want an iPad for Christmas
« Last post by 4wd on December 22, 2010, 04:36 PM »
well now,
if you really want to buy me one I wouldnt say no :p :)

Just tell me where to send it :)

lol, that'd impress the rest ;-)

As someone commented:
Spoiler
All the sad loser pose value of the iPad, with non of the nanny-state interference from Apple.

Look like a dickhead - but maintain independance - it's a win-win situation.

4483
Living Room / Re: Why I Don't Want an iPad for Christmas
« Last post by 4wd on December 22, 2010, 12:52 PM »
well now,
if you really want to buy me one I wouldnt say no :p :)

Just tell me where to send it :)
4484
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 22, 2010, 06:08 AM »
Does a wired connection really need anything like this?  I do not know, I am just asking.   :D :o

Actually it doesn't, the routine I'm going to try doesn't seem to differentiate between the two types, (well here it doesn't), and it should be friendlier that what I was using previously since it just interrogates Windows itself.

I've attached a simple executable that says Connected or Not Connected if you want to try it - if it works OK I'll incorporate it into a service.  Just run from the command line both when you have and haven't a WiFi connection.
4485
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 22, 2010, 02:28 AM »
@techidave: Haven't forgotten you but don't expect anything before Christmas.

Just a question at the moment:

Is connection only going to be via WiFi, (I might script in wired later but I'm trying to get one thing reliably working) ?
4486
DC Gamer Club / Re: SteamPrices - a better way to shop for bargains on Steam?
« Last post by 4wd on December 21, 2010, 11:58 PM »
Because EVERYTHING is more expensive in Australia...

You should try buying fuel in the UK then :)

VPNSteel is free and you'll get a USA IP.  Haven't looked for one for the UK/EU.

You can create a dummy Steam account and use it to gift purchases to your 'real' account.....or use the skwire and Deozaan gifting service  ;D
4487
Living Room / Re: DC Cool Sites List
« Last post by 4wd on December 21, 2010, 11:29 PM »
For my 2 cents:

* News
newsmap.jp - the best at-a-glance news site I've found

Oh that's good - the SpaceSniffer of the News world  :Thmbsup:
4488
DC Gamer Club / Re: SteamPrices - a better way to shop for bargains on Steam?
« Last post by 4wd on December 21, 2010, 09:38 PM »
I've seen that one, and didimatic.com, but I still go back to just the regular steam site.  These improvements that the third party sites give are pretty incremental, and the regular steam site is so convenient that I don't even peruse these sites any more.

But you're in the USA, as such you're not getting so blatantly ripped off - the regular Steam site is convenient for you but it can be extortion for the rest of us, (non-USA).

eg. Soldier of Fortune: Payback is 5+ times higher priced than the in the UK for the exact same game, delivered the same way - if anything it should be cheaper because the electrons can roll downhill.
4489
DC Gamer Club / Re: SteamPrices - a better way to shop for bargains on Steam?
« Last post by 4wd on December 21, 2010, 08:29 PM »
Nice site but I still blaime Valve. When they list a price as 59 Euros equals 59$ they are accepting and promoting the trick. They could refuse to include game but they don't. VAT is included when dealing in Euros but still a trick. Is there any documentation about why poor Valve must bend over to other game companies? I think they share.

It happens everywhere, eg. Why is Windows OS more expensive in Australia?

And Microsoft will go on about transport, (yeah right), government taxes, market forces, etc, etc - but what it comes down to is: Because they can screw more out of us and accept that we'll take it.  The majority of people are too dumb to go look online for a better deal in another part of the world.

So yes, I am agreeing with you in a round about way :)
4490
DC Gamer Club / SteamPrices - a better way to shop for bargains on Steam?
« Last post by 4wd on December 21, 2010, 06:17 PM »
SteamPrices - I mentioned it at the end of this thread but it's probably better making it a bit more prominent.

2010-12-22_11-15-14.jpg

You can see how much you're being ripped off in your part of the world compared to another Steam store.

But the Top Savings selection will also let you find the bargains, eg. Battlefield 2: Complete Collection is actually US$3.75 cheaper from the Australian Steam store.

Addendum: Better add this from the site.

A short note for the easily angry people: Don't blame Valve, they don't make the prices.

And now it's off to spend yet more money  :(
4491
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 21, 2010, 05:38 PM »
The script doesn't send any pings, it just tries to open a connection to a server, (any type of server, just need an IP and port), if it can't make one within 100ms, (default value), then it fails and the script continues.  So in theory, it's not actually waiting for anything to come back unless its connection is accepted in which case the script will continue to progress in under the 100ms wait time.  I could make the 5 second delay between connection attempts shorter, (I didn't want it to get flagged by any security programs as excessive pings sometimes do), or configuable - if I took out the delay then it would attempt connections every 100ms or less.

Ah! (Port Connection) ...Therein lying the gotcha I mentioned at the beginning.Port Connection's do a 3-way handshake:
SYN (outbount request)
SYN-ACK (target response)
ACK (outbound acceptance)

Slamming the socket shut without the SYN-ACK requires a non-blocking raw socket connection that creates its own thread and uses select(...) to check for writability before timingout and slamming shut... (Which still isn't 100% reliable after XP SP2...) ...otherwise the default timeout (graceful closure) is in the 3-5 min range.

I guess that explains the delay for techidave then, changing the timeout value and/or choosing a local server should ameliorate that?

Also, maybe AVG needs to told that the program is allowed Raw Socket access?

That's why I'd suggested using something strictly local for the initial (test) loop like a system call level iteration of the adapter statuses. While not directly related (it only pulls address info from the first adapter it finds - but you could loop it to get the others), here's an example of the type of function you would need:
Code: C++ [Select]
  1. .....

Note: that is actually the code that Page Countster uses to get the default LM IP address range for the Scan for Printers dialog box.

I can almost understand C++, (only written one very short program in C on the Amiga), but AutoIt has a WiFi UDF that has a lot of functions so I'll see if I can get a status check out of them.

Well, it kinda is at the moment because the instance running from the Startup script event terminates on detection of 'explorer.exe' process.  And the instance running at Logon event is terminated when the 'explorer.exe' process terminates.

So when it drops back to the logon screen, there is no NetCheck program running - this is why I would like to run it as a service if I could get the damn thing to interact with the display  :mad:
-4wd

Damn, that is a sticky one. Apparently "Allow service to interact with desktop" was depricated a while back due to the need for more complete Session 0 isolation - which quickly sinks out-of-my-depth (f0dder...?) - So the new more correct(er) way is to use two applications that pitch-N-catch. The service does the test & pitch, and the User GUI does the catch & display.

Maybe use WMI to look for (signs of life) a wake event?

That's a good idea, thanks.

I did have the connection check part running as a service, (it was just writing an empty file which another program checked for - existance depending on connection), and it worked.  Except I still couldn't get it to work after a logoff, (so it would redisplay on the logon screen again), anything I launched at the logoff inherited the users permissions and was killed on logoff, (just thought of one more idea), and anything I tried to launch when the logon screen was up just didn't interact any more.

Maybe I'll try just putting the program run at Startup to sleep when a logon event is detected and wake it up at a logoff event and see what happens.

Argh!  Windows!
4492
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 20, 2010, 11:19 PM »
I have joined my domain but now it takes forever to "run the startup script".  Like 5 or 6 minutes.

Here it only takes a few seconds to run it, the tooltip shows up after the login screen, however it looks like you're using the 'classic' login screen and not the newer XP Welcome type - something that I ought to of thought of but didn't  :-[    So a bit more testing.

Does 5 or 6 minutes sound about right for the WiFi card init? I'm wondering if the script is waiting for the program to return. If the ping is every 5 sec, can you (just as a test value) add a sending ping X message to the prog so it's "pulse" can be checked?

The script doesn't send any pings, it just tries to open a connection to a server, (any type of server, just need an IP and port), if it can't make one within 100ms, (default value), then it fails and the script continues.  So in theory, it's not actually waiting for anything to come back unless its connection is accepted in which case the script will continue to progress in under the 100ms wait time.  I could make the 5 second delay between connection attempts shorter, (I didn't want it to get flagged by any security programs as excessive pings sometimes do), or configuable - if I took out the delay then it would attempt connections every 100ms or less.

I guess I can do that as a test case.

EDIT:  Actually, I guess that is 'ping like' in its behaviour.

Caveat: Currently it doesn't reinitialise itself to display on the logon screen if the current user logs off - that's about it.  I'm still looking at fixing this by calling it again, (probably needs higher privileges so it can display on the logon screen again).

Running it on logoff isn't really the issue, because the WiFi card stays on. The trick is to get it to run on wakeup from sleep/hibernation when the connection has dropped because the WiFi card was napping.

Well, it kinda is at the moment because the instance running from the Startup script event terminates on detection of 'explorer.exe' process.  And the instance running at Logon event is terminated when the 'explorer.exe' process terminates.

So when it drops back to the logon screen, there is no NetCheck program running - this is why I would like to run it as a service if I could get the damn thing to interact with the display  :mad:
4493
Living Room / Re: Fatuous Advertising
« Last post by 4wd on December 20, 2010, 09:57 PM »
What the hell will an accident do to a vacation then, enhance it?
-cranioscopical (December 20, 2010, 07:25 PM)

Since you learn by your mistakes, then yes, I guess it will.  :P
4494
Living Room / Re: Need a New Mouse
« Last post by 4wd on December 20, 2010, 06:32 PM »
I don't know what it is about Australia, but a LOT of companies think a web site means putting up a PDF catalog.

That's because it's colloquial for 'online retailer'.

This country has gone backwards in so many ways in the last 20 years it's not funny any more.

I think the reason there is so little in the way of decent online retailers here is because the population in this country is mostly centralised and, having a high number of stores in those areas, major retailers don't feel the need to put any effort into online selling.

And then they complain to the Federal government that their turnover is falling because people have found it's cheaper and more convenient to buy from overseas online, from companies that don't have all the overheads of so many ground assets, (plus the exchange rate is good atm).

The only thing the local stores are good for these days are being able to see/touch what you want to buy - then you go home and look online for somewhere cheaper.
4495
DC Gamer Club / Re: Could a US gamer help me with gifting the "2k mega pack" on steam?
« Last post by 4wd on December 20, 2010, 06:17 PM »
hello,The "game" I am looking for is the 2k mega pack.

Link please - some of us other geo-challenged game nuts might want to throw money at Deozaan  :P


nvm, found 'em - ooooohhhhhhh, goodies galore!

EDIT: BTW, if anyone not in the US of A is interested, (or even if you are), in just how much Steam rip you off: SteamPrices

Especially useful is the Top Savings lists - some things are actually cheaper than the US....who'd a thunk it!
4496
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 20, 2010, 05:32 PM »
But 4wd, you said to copy "it", what is "it"?  In the zip file, I only see 5 files of which one is the netcheck.exe.  perhaps that is it?

Yes, sorry, just copy the NetCheck.exe file to the two locations.

AVG just caught it as a virus.  I am sure that there isn't one.  Probably just the autoit script?

Possibly because AutoIt packs it with UPX by default - attached is a non-packed version.  Try that, if it still complains then the only thing I can think of is because it writes an ini file to the Windows directory - which seems a bit to militant for a anti-virus program - if so, then I can change from an ini file to all command line arguments.

I have joined my domain but now it takes forever to "run the startup script".  Like 5 or 6 minutes.

Here it only takes a few seconds to run it, the tooltip shows up after the login screen, however it looks like you're using the 'classic' login screen and not the newer XP Welcome type - something that I ought to of thought of but didn't  :-[    So a bit more testing.

EDIT: Just tried again with classic logon and it works OK here.  The logon prompt shows up immediately with tooltip showing up a few seconds later, both when there is and isn't a connection.  The NetCheck.exe should return immediately, (well, it does from a normal CLI), I wonder if it's possible to try running with the RunAs command, (sorry, no experience with that - perhaps SJ can help)?

I don't suppose anyone could tell me how to set up a simple Domain that I could try and replicate this with, (I can set up another laptop as a Domain Controller under XP Pro)?

Caveat: Currently it doesn't reinitialise itself to display on the logon screen if the current user logs off - that's about it.  I'm still looking at fixing this by calling it again, (probably needs higher privileges so it can display on the logon screen again).

So the short question is can the icon show up any other time the login window is there without doing a restart or power on?

That's what I'm still looking at fixing ;)
4497
Living Room / Re: Need a New Mouse
« Last post by 4wd on December 20, 2010, 12:07 AM »
U-Mart in Melbourne is a bit closer and you can pick up thereby saving on their rather exorbitant postage costs.

The M950 is also available at Centre.com for $89 - always my next alternative after MSY.

Reasonably close to you at Hawthorn.

i like love mx518 very much because it has a nice balance between functionality and fluff (e.g. overloading of features, etc). in fact, i have 3 of them (2 actively using and a spare)..

.... They don't carry it at MSY though,.....

Don't they?   MSY - $38
4498
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 19, 2010, 10:43 PM »
Here's the current NetCheck program that seems to work reasonably well here on my netbook with both wired and wireless connection, it requires use of Group Policy Editor and as such it's restricted to Pro+ versions of Windows - I've only tested it on XP Pro SP3.

Caveat: Currently it doesn't reinitialise itself to display on the logon screen if the current user logs off - that's about it.  I'm still looking at fixing this by calling it again, (probably needs higher privileges so it can display on the logon screen again).

#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=n
#AutoIt3Wrapper_Res_Icon_Add=On.ico
#AutoIt3Wrapper_Res_Icon_Add=Off.ico
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Global $inifile = @WindowsDir & "\NetCheck.ini"

If Not FileExists($inifile) Then _Initialise()
$TIP=IniRead($inifile,"Main","TestServer","8.8.8.8")
$TPort=IniRead($inifile,"Main","TestPort","53")
$TTime=IniRead($inifile,"Main","TimeOut","100")
$HotKey=IniRead($inifile,"Main","Hotkey","+!\")

HotKeySet($HotKey, "_Exit")

If $CmdLine[0] > 0 Then
Select
Case $CmdLine[1] = "logon"
$logon = 1
Case $CmdLine[1] = "startup"
$logon = 0
Case Else
EndSelect
Else
$logon = 0
EndIf


Opt('TCPTimeout', $TTime)
TCPStartup()

If $logon Then TraySetState()

While 1
If (ProcessExists("explorer.exe") > 0) And (Not $logon) Then ExitLoop
$socket = TCPConnect($TIP, $TPort)
If $socket = -1 Then
If $logon Then
TraySetIcon(@ScriptName, -6)
TraySetToolTip("Network disconnected!")
Else
ToolTip("Not Connected", 0, 0,"Network Status", 3, 5)
EndIf
Else
TCPCloseSocket($socket)
If $logon Then
TraySetIcon(@ScriptName, -5)
TraySetToolTip("Network connected")
Else
ToolTip("Connected", 0, 0,"Network Status", 1, 5)
EndIf
EndIf
Sleep(5000)
WEnd

Func _Exit()
TCPShutdown()
Exit
EndFunc

Func _Initialise()
IniWrite($inifile, "Main", "TestServer", "8.8.8.8")
IniWrite($inifile, "Main", "TestPort", "53")
IniWrite($inifile, "Main", "TTime", "100")
IniWrite($inifile, "Main", "Hotkey", "+!\")
$file = FileOpen($inifile, 1)
FileWrite($file, @CRLF & "; Where: TestServer = IP address of a server to make a test connection to." & @CRLF & ";        TestPort   = Server port to make a test connection to." & @CRLF & ";        TimeOut    = Test connection timeout value in milliseconds.  Test will" & @CRLF & ";                     fail if it can't make a connection in this time." & @CRLF & ";        Hotkey     = Key sequence to terminate program." & @CRLF & ";                             + = Shift" & @CRLF & ";                             ! = Alt" & @CRLF & ";                             ^ = Control" & @CRLF & ";                             # = Windows")
FileClose($file)
EndFunc

To set it up, copy it to both of the following directories, (not really required in two locations, just makes the script dialogue easier later):

C:\Windows\System32\Group Policy\Machine\Scripts\Startup
C:\Windows\System32\Group Policy\User\Scripts\Logon

Run the Group Policy Editor, (eg. Start->Run->gpedit.msc):

2010-12-20_14-47-29.jpg

Specify a Windows Startup script as follows:

2010-12-20_14-50-23.jpg

and a User Logon script as follows, (Note the 'logon' parameter):

2010-12-20_14-49-56.jpg

On first run it will create the file C:\Windows\NetCheck.ini for which the defaults are:

[Main]
TestServer=8.8.8.8
TestPort=53
TimeOut=100
Hotkey="+!\"


It'll try connecting to Googles' DNS server, if it doesn't make a connection within 100ms it assumes there's no access.  You can change it to use your local DHCP server, (port 67 by default), since that's where your laptop IPs come from.
It only reads from the file upon execution, so if you make a change you need to stop then start it again.   You can run it from the CLI - just remember to add the 'logon' parameter since you'll be logged in.
Nothing bad will happen if you forget, it'll just exit immediately because it sees the explorer.exe process.

You can kill it either by right-clicking on the tray icon and selecting Exit, or the default hotkey combination of Shift+Alt+\ .

It still only tries to connect every 5 seconds, I didn't see a need to make it any faster.

The ini file is the only thing it writes to the drive, the tray icons are stored in the exe - I've only added them to the archive in case you want to do some fiddling and recompile.

In theory, if all goes well, on the next reboot you should end up with:
IMG_1801.JPG

And after log on:
IMG_1799.JPG


Still thinking of trying to make it a service but I couldn't get it to interact with the Desktop - installed and ran OK, was getting all the right answers just didn't display anything - more reading required me thinks.
4499
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 18, 2010, 08:53 PM »
No, it doesn't have to.  By default, the answer is no.  There is a policy that can be set by using group policy or active directory.  I have tried changing it to wait, but that doesn't always help either.

[Sorry if I get a bit Captain Obvious here, I'm just trying to make sure we're on the same page]

That's OK, be as Captain Obvious as you like :)   I've zero experience with anything other than a "normal" LAN setup, (ie. anything more than you'd find in a home).

Um... If you're driving at the distinction between a Workgroup and Domain networks ...Then yes...Sort of. In a workgroup environment you initially authenticate to local machine, and then to network resources later if/when you access them. In a domain you're authenticated by the domain controller before you access anything, including local machine. There are exceptions for cached credentials/domain accounts...But those aren't important right now.

The key here is to look for a media connection first, then "verify" it by testing for an IP connection. So the program should continue looping through the adapter iteration until it finds one with a default gateway that isn't 0.0.0.0. Then and only then it should do the (IP to MAC Address) ARP lookup to verify that the IP network is "live" making it a relatively safe assumption that (the hounds can be released) a domain controller is then available.

Using the DOS 'arp -a' gave 'No ARP.......' when testing the wireless connection on my netbook, whether it was connected or not - same with it's wired connection.  So I switched to using 'ipconfig' and just parse it's output for the gateway IP and that seems to work OK but that can be manually set of course, so doesn't guarantee connectivity.

Hint: Gateway connection isn't really required or guaranteed at this stage, hence the ARP test could fail even with a valid connection because no traffic has as of yet been sent to the gateway. SendARP(...) is a local machine query of the ARP cache, not an on-the-wire query for remote data.

...Which makes me an idiot. :wallbash: Sorry... :-[  ...Ping would (/will have to) be the correct answer as a last stage validation of IP connectivity. Just don't start with it in/as the initial loop timeouts are a nightmare.

...and this is what my experimentation with both the DOS 'arp -a' and the AutoIt SendARP routine seems to bear out - so as you've said, it looks like a fallback to Ping as being the 'best' solution.

And I think I'll have to create it as a service because I believe that's the reason I can't get it to stick an icon in the SysTray when the user logs in or display ToolTips when they log off - no interaction with the Desktop.

As of right now, I'm just trying to make sure the network detection works 100% - then comes the service part which should be easier.....famous last words.

Thanks guys, if nothing else it's an adventure :)

@techidave: Can you tell me if there are any servers on your network, (Web, Mail, DNS, etc), that are on 24/7 that would normally be contactable from the laptops?
Reasoning: I'm trying to avoid having to use external programs, (eg. Ping, Arp, etc), it saves me having to parse intermediate output files and AutoIt provides a TCPConnect function which will fail if it's unable to connect to a server, (any server), it just needs an IP and port to try and connect to - for that matter I suppose I could just try connecting to Googles' DNSs, (works here), for a test and make it configurable in the ini file.
4500
Post New Requests Here / Re: IDEA: Wireless sensor
« Last post by 4wd on December 17, 2010, 11:02 PM »
2) Displays a Tooltip on the logon screen with network status - I can't test whether it has connected since it doesn't connect until I've logged on here, (just a LAN network).

I could be missing something, but couldn't you just start the comp with the network cable unpluged, then plug it in to see the status change? The media connection state change is (basically) the same wired vs. WiFi.

DOH!  I was testing it with the WiFi on the netbook, completely forgot about the wired connection.  :-[

However, it doesn't seem to work - I'm wondering, with a Domain Controller doesn't a network connection have to be established before logon, whereas with a normal LAN network the connection is established after logon?

Have to do some debug output to see if the arp command is actually being called that early.

The following snippet is from T-Clock, it checks for a valid system tray/clock window handle before the hook is inserted. A stripped down version should be just what you're after:

Check for the Tray, I'm afraid that's way too obvious.  Thanks for that SJ - I should just let you carry on writing it :P

EDIT2: Argh!  The Tooltip doesn't come back when you log off  :wallbash:

Relaunch with logoff script?

Yes, a definite possibility - check for already existing process and kill it if necessary, thanks again.

Right, back to the drawing board.

Addendum: I've found an AutoIt routine equivalent to your GetMAC C snippet above, so I can get rid of the dependence on the arp command.
Pages: prev1 ... 175 176 177 178 179 [180] 181 182 183 184 185 ... 225next