topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Sunday June 29, 2025, 11:45 pm
  • 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 ... 124 125 126 127 128 [129] 130 131 132 133 134 ... 225next
3201
General Software Discussion / Re: Raymond.cc compares antivirus memory usage
« Last post by 4wd on May 01, 2013, 12:30 AM »
My biggest problems with AV's are when downloading - they tend to not only check the download but also the contents of the download folder which tends to be over-full - or simply when navigating within any file dialogue (save/open).
I guess those two overlap.

MSE used to really slow things down as per above, but it has improved and stabilised the last few months.

It's too bad that it doesn't have the option to only scan files when they are opened - like most other AV programs.
3202
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on April 30, 2013, 11:24 PM »
I just tried it again and the icon is flashing between different colours and a cross, I opened Network Connections and the VPN that this is set up for shows no indication of trying to connect.

If it's flashing between an icon and a red cross that means the script is paused, ie. you clicked the RMB on it and the default AutoIt action is to bring up the Script Paused/Exit menu - just right-click it again and choose Script Paused to unpause.

The ON files contain the name of the VPN as well as username and password so each one is specific to a single VPN server, therefore I am going to need a different ON file for each VPN server, although I have no intention of creating files for all of them at the last count there were 40+.
This also means that I will need a separate X batch file for each one and that in turn means that I need separate scripts or apps to trigger the various X batch files as the path will be different for each one.

It sounds more like you need a decent Network Connection Manager but let's see if I can reduce the number of batch files required without doing much of anything :)

The way you've described it you need one "X" batch file for every ON batch file, is this correct?

The "X" batch file is there for the sole purpose of setting/deleting a flag file and choosing which of the following two, (ON or OFF), batch files to run based on the (non)existence of the flag file.

However, if you move the conditional test to the ON and OFF batch files there's no need for the "X" batch files at all.

Now you only need one ON batch file for each connection and the OFF batch file.

eg. The first few lines of each ON batch file would be:

Code: Text [Select]
  1. if not exist pptp-running.txt goto startvpn
  2. REM prog is already running
  3. start /D "C:\Batch Files\PPTP ON-OFF" PPTP-OFF.bat
  4. goto alldone
  5. :startvpn
  6. REM prog is not running
  7. copy NUL>pptp-running.txt
  8.  
  9. VPN connection commands
  10.  
  11. :alldone

For the OFF batch file, (PPTP-OFF.bat), the first few lines would be:
Code: Text [Select]
  1. if not exist pptp-running.txt goto alldone
  2. del pptp-running.txt
  3.  
  4. VPN disconnection commands
  5.  
  6. :alldone

Running any ON batch file with an already established connection would cause disconnection, so in effect every ON file becomes an OFF file if there is a connection.

If we add in a little program, (see below), that throws an icon into the SysTray when run and optionally runs the OFF batch file when clicked then all you require would be a program launcher, (Launchy, FARR, etc), to choose which ON batch file you want to run.

Would not this be easier?

NetConnected is a small program that will put an icon into your SysTray and then just sit there.  It takes one optional argument, a file to run when you click on it with the LMB or choose Exit from its menu - the file will then execute and NetConnected will exit.

eg. NetConnected.exe "C:\Batch Files\PPTP-OFF.bat"

If you run NetConnected without arguments then it will terminate any previous running instance then exit.  You can also rename the executable to anything you like, it will still work.  (I chose a generic network icon for it but if you want something else let me know - I might see if I can get it to change according to a supplied country code or icon.)

So your ON files would become:
Code: Text [Select]
  1. if not exist pptp-running.txt goto startvpn
  2. REM prog is already running
  3. start /D "C:\Batch Files\PPTP ON-OFF" PPTP-OFF.bat
  4. goto alldone
  5. :startvpn
  6. REM prog is not running
  7. copy NUL>pptp-running.txt
  8.  
  9. VPN connection commands
  10.  
  11. NetConnected.exe "C:\Batch Files\PPTP-OFF.bat"
  12. :alldone

And you could add it to the OFF file:
Code: Text [Select]
  1. if not exist pptp-running.txt goto alldone
  2. del pptp-running.txt
  3.  
  4. VPN disconnection commands
  5.  
  6. :alldone
  7. NetConnected.exe

Is that any better?
3203
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on April 29, 2013, 09:11 PM »
I just tried the EXE but apart from an icon appearing nothing happened, ......

That's exactly what should happen when you run it.......then it just sits there until you click the LMB on it at which point it goes and runs your batch file and the icon changes colour.

Simples  :)

I am trying to keep to AHK and batch files, they give me enough headaches. :(

Fair enough, I find the syntax used in AHK is too strange to get to grips with :)

My intention was to use a one of the Windows network icons and only have it show when the VPN is connected, the way it is on XP.

So what you want is something along the lines of the OpenVPN GUI which provides an indication in the SysTray and allows you to easily switch between VPNs?
3204
Post New Requests Here / Re: Turn a batch file into an AHK script.
« Last post by 4wd on April 29, 2013, 08:35 AM »
A simple AutoIt script, seems to work here, you may need to change the batch file folder and/or names if I got it wrong.

I'm sure you could think of something better to call it:

Code: AutoIt [Select]
  1. ; ToggleIcon
  2.  
  3. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  4. #AutoIt3Wrapper_Icon=OnOff.ico
  5. #AutoIt3Wrapper_UseUpx=n
  6. #AutoIt3Wrapper_Res_Icon_Add=On.ico
  7. #AutoIt3Wrapper_Res_Icon_Add=Off.ico
  8. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  9.  
  10. #include <Constants.au3>
  11. #include <GUIConstantsEx.au3>
  12. #include <WindowsConstants.au3>
  13. #include <StaticConstants.au3>
  14.  
  15. $flag = "C:\pptp-running.txt"
  16.  
  17.         TraySetIcon(@ScriptName, -6)
  18.         TraySetIcon(@ScriptName, -5)
  19.  
  20.         $msg = TrayGetMsg()
  21.         Switch $msg
  22.                 Case $TRAY_EVENT_PRIMARYUP
  23.                         _Toggle()
  24.                 Case Else
  25.                         ContinueLoop
  26.         EndSwitch
  27.         Sleep(500)
  28.  
  29. Func _Toggle()
  30.         If Not FileExists($flag) Then
  31.                 $file = FileOpen($flag, 2)
  32.                 FileClose($file)
  33.                 Run(@ComSpec & " /c " & '"C:\Batch Files\PPTP-US-ON.bat"', "C:\Batch Files", @SW_HIDE)
  34.                 TraySetIcon(@ScriptName, -5)
  35.         Else
  36.                 FileDelete($flag)
  37.                 Run(@ComSpec & " /c " & '"C:\Batch Files\PPTP-US-OFF.bat"', "C:\Batch Files", @SW_HIDE)
  38.                 TraySetIcon(@ScriptName, -6)
  39.         EndIf

Left-click the icon to toggle the connection, right-click to exit it via menu.

NOTE: This was knocked up before you mentioned hotkeys and different icons but it wouldn't be hard to change.

Changing icons is just a matter of changing the icon files and recompiling or you could probably go nuts and use a config file that specifies what images to use.
3205
Living Room / Re: What to do with an SSD after it fails
« Last post by 4wd on April 25, 2013, 07:48 PM »
I found the smily at the bottom right corner of the image to be illuminating ;)

 :Thmbsup:
3206
General Software Discussion / Re: What Android Apps Do You Use?
« Last post by 4wd on April 24, 2013, 08:55 PM »
A couple I don't think have been mentioned already:

3G Watchdog - Watches your mobile data usage.
Brightest Flashlight - Turns on anything that produces white light on the phone, (mine doesn't have a flash so the screen goes to maximum brightness).
WD TV Remote - Remote control for your WD TV Live device - works well.
WoL Wake on LAN WAN - So I can wake my servers up from anywhere to access something.
3207
Living Room / Re: What to do with an SSD after it fails
« Last post by 4wd on April 24, 2013, 07:36 PM »
dead-x25e-1.jpg
3208
General Software Discussion / Re: Anyone testing Daminion Media Manager ?
« Last post by 4wd on April 24, 2013, 07:39 AM »
We decided to drop the price for Daminion, and release multiple Daminion versions:
  • Daminion Free - Free (can be imported up to 15k files per one catalog)
  • Daminion Standard - $49 (can be imported up to 50k files per one catalog)
  • Daminion Pro - $99 (without limitations for number of files per catalog)

Just to clarify, with the Free and Standard versions you can only open one catalog ?

If so, is that one in total or one at a time ?
3209
Post New Requests Here / Re: IDEA: activate Windows (7) mapped network drives
« Last post by 4wd on April 23, 2013, 08:24 PM »
I'm a little bit lost how to use this, ....

For Onenote, instead of specifying the directory as Y:\ you'd specify it as \\Diskstation\office - Onenote should happily sync with that instead.  I don't use MS Office so maybe someone else can say exactly what you do.

I have been poking around, but if I don't have x:\ or y:\, then how do I select the directory on the NAS to move my files to, in Totalcommander?

Not sure about TC but in Directory Opus I can just specify a button that is the directory I want, eg.

2013-04-24 11_17_22-Computer.png

The button marked LAN will open three different remote shares depending on which mouse button I press:

Sue-PC = \\192.168.0.210        (or \\SUE-PC)
SABnzbd = \\192.168.0.208      (or \\SABNZBD)
WDLXTV = \\192.168.0.235      (or \\WDTVLIVE)

I would think that TC would allow you add drive buttons for specific destinations and then you can just use:

\\Diskstation\office
\\Diskstation\media

etc. and just label the buttons as you want.
3210
Post New Requests Here / Re: IDEA: activate Windows (7) mapped network drives
« Last post by 4wd on April 23, 2013, 05:15 AM »
what happens if you just use the UNC or IP address instead of mapping the drive?

If only I understood what you are saying, I am not so smart in these matters  :(

Would you mind explaning a little more what you mean?

No problem, UNC is Universal Naming Conventionw used to access a network shared resource which can be a file, folder, printer, etc.

eg. \\SomeComputer\SomeFolder\SomeFile

IP is what you've already posted above, \\192.168.7.44\media

Instead of mapping a NAS share so that you can use Y: or X: as a path to a file, just use the UNC path, (or IP), to access the folder\file, eg.

\\NAS\media          <- change NAS to whatever name your NAS shows up as, eg. Synology
\\192.168.7.44\media
\\NAS\office
\\192.168.7.44\office

and add them to your Favourites in Explorer, (or whatever filemanager you use).

I don't think Onenote would have any problem syncing if you specified either one of those forms, (I might be wrong though), most Windows programs since Win98 usually work with one or the other.
3211
Post New Requests Here / Re: IDEA: activate Windows (7) mapped network drives
« Last post by 4wd on April 22, 2013, 09:48 PM »
Just as a matter of interest, what happens if you just use the UNC or IP address instead of mapping the drive?

I don't think I've mapped a drive since Win98, it was easier to use the IP - seemed to be a little more reliable also.
3212
Post New Requests Here / Re: IDEA: activate Windows (7) mapped network drives
« Last post by 4wd on April 21, 2013, 06:05 AM »
What if you just set a Scheduled Task to run at user logon of:

dir Y: >NUL && dir X: >NUL

Attached is a task you can import into the Task Scheduler along with a cmd file to put in C:\.

Something to try and it's reasonably simple.

You could also make it only happen if the network is available by setting a condition:

2013-04-21 21_12_24-Dir NAS Properties (Local Computer).png
3213
Living Room / Re: The Coffee/Caffeine Thread!
« Last post by 4wd on April 20, 2013, 08:54 PM »
You can still get that in Tesco, ...
-Stephen66515 (April 20, 2013, 12:03 PM)

Good to know, must have just been out in the stores I visited.

but after me and a friend went through an entire jar in a night, then our boss almost calling the police on us cause he thought we was "coming down" off pretty much every drug you can think of (My god that was horrific), I have not touched the stuff since.

I'm lucky enough to be unaffected by caffeine, drink it all day and have no problem going to sl...  .........huh, wut?

I just drink it because I like the flavour but whether I have it or not doesn't bother me.  At home I get ~8-12 cups a day because my wife can't go for more than an hour without making a cup of tea, (so I end up with a cup of coffee whether I want it or not), but I just spent a month in Adelaide having one cup in the morning or none....basically comes down to whether or not I can be bothered boiling water  ;D
3214
Living Room / Re: The Coffee/Caffeine Thread!
« Last post by 4wd on April 19, 2013, 10:29 PM »
You used to be able to get Rocket Fuel Coffee in Tesco in the UK but the last time I was there, (2011), it didn't appear to be on the shelves.

818ASIPBQwL._SY606_.jpg

It tasted quite good but since my normal fare is Moccona Dark Roast, (or Nescafe Black Gold in the UK), take that as you will.
3215
Living Room / Re: What are your favorite movies?
« Last post by 4wd on April 18, 2013, 01:53 AM »
... or on trains (or in train stations) particularly enjoyable like I do?

Throwing up another one along the train theme:

MV5BMTI1MDU0NTI2Ml5BMl5BanBnXkFtZTcwNTkyNjY3MQ@@._V1_SX214_.jpg

Having traveled on the Transsiberian automatically meant I had to watch it and it turned out to be a surprisingly good film.
3216
General Software Discussion / Re: thunderbird alternative
« Last post by 4wd on April 17, 2013, 07:27 AM »
I still use Thunderbird but stopped upgrading at v10, the last version before they forced "tabs on top" onto everyone.

Anyway, it's still a WIP, but the same programmer who does the optimised Pale Moon browser also has MailNews v16, an optimised version of Thunderbird, available in x86 or x64.
3217
Living Room / Re: Raspberry Pi's $35 Linux PC
« Last post by 4wd on April 06, 2013, 08:10 PM »
^Yeah. I'm tired of being on a waiting list twice now. (The first time after, waiting three months, my order apparently vanished without a trace and I had to get back at the foot of the queue again.)

Send me your address and I'll send you my RPi Rev.A since it's now sitting around doing nothing....my waiting list is very short  ;D

Be a slight delay since I'm currently interstate but I can get it sent by remote.
3218
General Software Discussion / Re: 'Connect to Internet' shortcut needed.
« Last post by 4wd on March 30, 2013, 01:25 AM »
CleanTray: On 7 I could only get it to work by clicking on the EXE, when it was in the batch file the icons remained, in both cases it had changed the order of the icons the next time I ran the ON file.
-pilgrim-online (March 29, 2013, 05:03 AM)

Strange because that's how I run it on my W7 machine - in a batch file and it works OK.

Don't use 'start', just have a line:

<path if req>CleanTray.exe
3219
General Software Discussion / Re: 'Connect to Internet' shortcut needed.
« Last post by 4wd on March 28, 2013, 03:09 PM »
devcon.exe will work in XP but only after I used the full path.
-pilgrim-online (March 28, 2013, 11:55 AM)

Sounds like you don't have System32 in the PATH environment, ie.

C:\>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32
\WindowsPowerShell\v1.0\

C:\>

As for SysTray leftover icons, attached is a small program that will remove them, (works on XP, Vista & 7 - not tested on 8 ).

3220
General Software Discussion / Re: 'Connect to Internet' shortcut needed.
« Last post by 4wd on March 28, 2013, 02:49 AM »
And if you use the full instance ID?

eg. devcon disable "@PCI\VEN_8086&DEV_1503.................."
3221
General Software Discussion / Re: 'Connect to Internet' shortcut needed.
« Last post by 4wd on March 23, 2013, 11:41 PM »

UPDATE:


After much tinkering with Hotkeyz (the help file (online) is the worst part of the program) I now have a single hotkey to turn the programs on and another to turn them off.
Still no success with including the NIC.
-pilgrim-online (March 22, 2013, 10:14 AM)

Are you sure you're formatting the devcon command correctly?

eg.

devcon.exe disable =net "@PCI\VEN_10EC&DE
V_8136&SUBSYS_015B1025&REV_02\4&25F1891F&0&00E1"


That should work from a CLI, (substitute your particular hardware ID of course), so you should be able to put the command into a batch file.

The =net is not required, I include it to ensure that I'm only affecting a network class device, (just in case there's a non-network device with the same ID - which there never should be).
3222
Living Room / Re: Anti-Drone Technology
« Last post by 4wd on March 23, 2013, 11:09 PM »
Yeah, but as long as shotguns with 00 buck-shot is legal, they'll have a hell of a time keeping them in the air.  Honestly, I thought it was a hawk raiding my chickens!!!   >:D  lol

Considering the limited range of a shotgun with any anything except rifled slugs or sabot rounds, I think I'd rather have the Redback Weapon System.

It'd look right at home on your Hummer too....for those early morning rush hour slogs to work ;)
3223
Living Room / Re: Amazon creepy ...
« Last post by 4wd on March 13, 2013, 11:03 PM »
Interesting that you have a lot of 3rd party sites that show no connection to a visited site - are they due to cookies or referer?

EDIT: Forgot, are you still forging the referer 'cos that would explain it.
3224
Living Room / Re: What are your favorite movies?
« Last post by 4wd on March 13, 2013, 03:04 AM »
Battle Beneath the Earth - Those dastardly Chinese.



The Midnight Meat Train - Not too bad.
Urban Explorer - So so.
3225
Living Room / Re: Amazon creepy ...
« Last post by 4wd on March 12, 2013, 06:03 PM »
... spoofing is funnier :-[ (see attachment in previous post)

I think you may spawn a whole new competition: "Who can create the most artistic web of Big Data?"

 ;D

Still no idea why I get a completely blank graph but I do run a few anti-trackme addons, (don't forget to turn off 3rd party cookies also), and all cookies are session only, (all data is session only, I don't have any drive based cache).

Addons: AdBlock+, Better Privacy, Change Referer Button, Ghostery, HTTPS Everywhere, RefControl
Userscripts: Google Hit Hider by Domain, Google Search Better Privacy, Kill AddThis Mouseover, NoMiddleMan, RedirectionHelper, StraightGoogle

One day I'll have to go through them since I'm sure there's duplicated functionality there.
Pages: prev1 ... 124 125 126 127 128 [129] 130 131 132 133 134 ... 225next