topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday November 12, 2025, 5:51 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 ... 48 49 50 51 52 [53] 54 55 56 57 58 ... 225next
1301
Living Room / Re: recommendations for a free web host
« Last post by 4wd on July 16, 2016, 07:46 PM »
Or if you want something a little more involved you can always get a cheap deal on a VPS and run your own web server, which is what I do for my own static sites.

Or possibly get some use out of that RasPi ;-)
1302
General Software Discussion / Re: Fake equivalent for Windows
« Last post by 4wd on July 10, 2016, 08:16 AM »
Just found this: Selenium

Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

From the above page, Selenium IDE for Firefox:
Features:
  • Easy record and playback
  • Intelligent field selection will use IDs, names, or XPath as needed
  • Autocomplete for all common Selenium commands
  • Walk through tests
  • Debug and set breakpoints
  • Save tests as HTML, Ruby scripts, or any other format
  • Support for Selenium user-extensions.js file
  • Option to automatically assert the title of every page
  • NEW! Easy customization through plugins


Selenium PowerShell eXtensions on CodePlex
1303
Living Room / Re: better battery life out of a laptop
« Last post by 4wd on July 10, 2016, 03:39 AM »
You could work from a small RAM drive, copying the contents to a flash drive every so often.  At the end of the day copy the contents of the flash drive to the HDD.

This should give you better security than running purely from a RAM drive, (in the case of a crash), plus allow the HDD to spin down for a greater length of time.
1304
You simply need to use the Window Spy to get the name of the control/window under the mouse cursor and add to the If statement.  It will vary with version of Windows etc..

Windows 10:
2016-07-07 13_07_56.png
2016-07-07 13_10_04.png
2016-07-07 13_10_22.png
2016-07-07 13_16_28.png

The control for the icon tray is determined by the particular Instance number, so I don't know if it's always going to be ToolbarWindow322 as shown in image 1, same with the control for the Input Method button in image 4, (and the button for Hidden icons if it exists).
Kind of why I went for area rather than a specific control.
1305
What part/line did you change ?

Code: AutoIt [Select]
  1. If IsArray($aTaskbar_Pos) Then ; Check if array is returned
1306
The script from 4wd worked only I got an error when I was double clicking the start menu button.

It's been fixed.  :)
1307
General Software Discussion / Re: Utility to track boots and uptime.
« Last post by 4wd on July 06, 2016, 07:05 AM »
I was hoping to avoid playing with logs at the command line, ...

Didn't need to, there's a filter attached to that post that you can import into the Windows Event Log Viewer that filters all power events.

2016-07-06 22_02_08.png

2016-07-06 22_04_24.png
1308
OK, I don't get that because I use ClassicShell to replace the Win10 Start Menu - I can see where it's happening, I'll have a look at it.

EDIT: Apparently the second click on the Start button doesn't result in an array being returned when the Taskbar position is fetched.  This should be easy to fix by just putting in a check and exiting the function if an array is not returned.

UPDATED
1309
This will block the LMB in the SysTray.

HOWEVER, there may possibly be unforeseen consequences, ie. how do you propose to use any tray icon menu item if it appears within the SysTray area?

Screenshot - 6_07_2016 , 15_12_59.png

The Exit menu item for BTLMB falls within the area covered by the SysTray, since the LMB is blocked there is no way to choose the menu item and exit the program.

This is why it has a hotkey of Ctrl+Shift+Alt+f to exit it  ;)

Ideally you'd check to see what is under the mouse and process depending on what's there, (menu, etc), but since I'm lazy ... the source is there to get you started  :P

You could probably fudge it by subtracting the number of pixels covered by what you don't want affected, (which will be static because the size of the Clock, etc aren't dynamic).

Only tested on Win10Pro x64.

BTLMB.au3 - Block Tray LMB
Code: AutoIt [Select]
  1. #include "MouseOnEvent.au3" ; MouseOnEvent UDF
  2.  
  3. HotKeySet("^!+f", "_Exit") ; Ctrl + Shift + Alt + f
  4. OnAutoItExitRegister("_Exit") ; Call the _Exit routine when the program is terminated somehow
  5.  
  6. ; Set up tray icon menu/tooltip
  7. Opt("TrayMenuMode", 3)
  8. Opt("TrayOnEventMode", 1)
  9. TrayCreateItem('Exit',-1,-1,0)
  10. TrayItemSetOnEvent(-1,'_Exit')
  11.  
  12. ; Display area
  13.  
  14. ; Hook into Primary Mouse Button down event
  15. _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "_PrimaryDown")
  16.  
  17. ;~      Twiddle twiddle
  18.  
  19. Func _Exit()
  20.         ; Release the event hooks and Exit
  21.         _MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT)
  22.         OnAutoItExitUnRegister("_Exit")
  23.         Exit
  24.  
  25. Func _PrimaryDown() ; PMB pressed
  26.         Local $bBlock = False
  27.         ; Get taskbar size and position, it should be visible if we're clicking on it
  28.         Local $aTaskbar_Pos = WinGetPos( "[Class:Shell_TrayWnd]")
  29.         ;~ $aTaskbar_Pos[0] = x
  30.         ;~ $aTaskbar_Pos[1] = y
  31.         ;~ $aTaskbar_Pos[2] = width
  32.         ;~ $aTaskbar_Pos[3] = height
  33.  
  34.         If IsArray($aTaskbar_Pos) Then ; Check if array is returned
  35.  
  36.                 ; Get location of Notification area but only interested in the width/height
  37.                 ; X/Y position returned is incorrect if Taskbar is Bottom or Right
  38.                 Local $aTray_Pos = ControlGetPos(WinGetHandle("[CLASS:Shell_TrayWnd]"), "", "[CLASS:TrayNotifyWnd]")
  39.                 ;~ $aTray_Pos[0] = x
  40.                 ;~ $aTray_Pos[1] = y
  41.                 ;~ $aTray_Pos[2] = width
  42.                 ;~ $aTray_Pos[3] = height
  43.  
  44.                 ; Check if Taskbar is visible
  45.                 If ( $aTaskbar_Pos[0] > -3) And ( $aTaskbar_Pos[1] > -3) And ( $aTaskbar_Pos[0] < ( @DesktopWidth - 5)) And ( $aTaskbar_Pos[1] < ( @DesktopHeight - 5)) Then
  46.                         $aMouse_Pos = MouseGetPos() ; Get current mouse position
  47.                 ;~ $aMouse_Pos[0] = x
  48.                 ;~ $aMouse_Pos[1] = y
  49.                         Select
  50.                                 Case $aTaskbar_Pos[2] = @DesktopWidth   ; Taskbar at Top or Bottom
  51.                                         If $aTaskbar_Pos[1] = 0 Then                    ; Top
  52.                                                 If ($aMouse_Pos[0] >= (@DesktopWidth - $aTray_Pos[2])) And ($aMouse_Pos[0] <= @DesktopWidth) Then
  53.                                                         If ($aMouse_Pos[1] >= 0) And ($aMouse_Pos[1] <= $aTray_Pos[3]) Then
  54.                                                                 $bBlock = True
  55.                                                         EndIf
  56.                                                 EndIf
  57.                                         Else ; Bottom
  58.                                                 If ($aMouse_Pos[0] >= (@DesktopWidth - $aTray_Pos[2])) And ($aMouse_Pos[0] <= @DesktopWidth) Then
  59.                                                         If ($aMouse_Pos[1] >= (@DesktopHeight - $aTray_Pos[3])) And ($aMouse_Pos[1] <= @DesktopHeight) Then
  60.                                                                 $bBlock = True
  61.                                                         EndIf
  62.                                                 EndIf
  63.                                         EndIf
  64.                                 Case $aTaskbar_Pos[3] = @DesktopHeight  ; Taskbar at Left or Right
  65.                                         If $aTaskbar_Pos[0] = 0 Then                    ; Left
  66.                                                 If ($aMouse_Pos[0] <= $aTray_Pos[2]) And ($aMouse_Pos[0] >= 0) Then
  67.                                                         If ($aMouse_Pos[1] >= (@DesktopHeight - $aTray_Pos[3])) And ($aMouse_Pos[1] <= @DesktopHeight) Then
  68.                                                                 $bBlock = True
  69.                                                         EndIf
  70.                                                 EndIf
  71.                                         Else ; Right
  72.                                                 If ($aMouse_Pos[0] >= (@DesktopWidth - $aTray_Pos[2])) And ($aMouse_Pos[0] <= @DesktopWidth) Then
  73.                                                         If ($aMouse_Pos[1] >= @DesktopHeight - ($aTray_Pos[3])) And ($aMouse_Pos[1] <= @DesktopHeight) Then
  74.                                                                 $bBlock = True
  75.                                                         EndIf
  76.                                                 EndIf
  77.                                         EndIf
  78.                                 Case Else
  79. ;~                                      ConsoleWrite("Mouse X: " & $aMouse_Pos[0] & "    Mouse Y: " & $aMouse_Pos[1] & @CRLF)
  80.                         EndSelect
  81.                 EndIf
  82.         EndIf
  83.         If $bBlock Then
  84. ;~              ConsoleWrite("SysTray click X: " & $aMouse_Pos[0] & "    Mouse Y: " & $aMouse_Pos[1] & @CRLF)
  85.                 Return 1 ; Block the default processing
  86.         EndIf
  87. EndFunc   ;==>_PrimaryDown

BTW, the reason I'm grabbing coords for the Taskbar and Tray on LMB click is because you can move the Taskbar around while the program is still running and it'll be happy.
The If...Then statements could probably be consolidated a bit better too, (did I mention I'm lazy?).

Might give someone an idea or two.

UPDATE:
  • Check if an array is returned for Taskbar position/size (Win 10 doesn't return array for second click on Start)
1310
General Software Discussion / Re: Utility to track boots and uptime.
« Last post by 4wd on July 04, 2016, 06:30 PM »
1311
Even if I dont have the slightest idea how to use what you posted

Download archive, extract, run program  :)

It'll keep displaying keys, (and the Tooltip will get bigger), until you hit Escape, then it terminates.  For what you want there is no need to have something running all the time.

Anyway, do I need to Download AutoIT also?

Nope, it's just there for people to peruse - it's not my source, I just modified it.
1312
Woops, I left a send Scroll Lock in there when I was playing around trying to use it as the hotkey.  I'll fix it tomorrow but it doesn't seem to cause any problem, (it didn't want to work for me so I went back to Escape).
1313
This wasn't written by me!

This is basically a modified keylogger, it doesn't do any logging it just displays any keys typed in a Tooltip as they are typed.  As soon as you hit Escape the program terminates, (the Escape isn't passed through AFAICT), or you can use the Exit menu item on the tray icon.

The source in AutoIt is available from here (easily found otherwise with a Google search): Pastebin

I've just turned off logging, stopped it displaying [SHIFT] as a key, and stopped it displaying which window is active.

Source for the main program:
Code: AutoIt [Select]
  1. #Region ;**** Directives created by AutoIt3Wrapper_GUI ****
  2. #AutoIt3Wrapper_Outfile=D:\My Documents\AutoIt\_Coding Snacks\KeyTip\KeyTip.exe
  3. #AutoIt3Wrapper_Compression=4
  4. #AutoIt3Wrapper_Res_Fileversion=2.0.0.0
  5. #AutoIt3Wrapper_Add_Constants=n
  6. #AutoIt3Wrapper_AU3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 6
  7. #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
  8.  
  9. #include <Misc.au3>
  10. #include "_KeyloggerUDF.au3"
  11.  
  12. Opt("TrayMenuMode", 3)
  13. Opt("TrayOnEventMode", 1)
  14.  
  15. TraySetToolTip("KeyTip")
  16. TrayCreateItem('Exit',-1,-1,0)
  17. TrayItemSetOnEvent(-1,'_Exit')
  18.  
  19. HotKeySet("{esc}", "_Exit")
  20. HotKeySet("{tab}", "_Exit")
  21. HotKeySet("{enter}", "_Exit")
  22. OnAutoItExitRegister("_Exit")
  23.  
  24. _SetHooks(True, False)
  25.  
  26.   ToolTip($__KL_CapturedKeys)
  27.   If _IsPressed("02") Then _Exit()
  28.  
  29. Func _Exit()
  30.   _SetHooks()
  31.   OnAutoItExitUnRegister("_Exit")
  32.   Exit

Lines modified in the UDF:

Line 236: Commented out
Code: Text [Select]
  1. ;~     $__KL_CapturedKeys &= @CRLF & @CRLF & "[" & WinGetTitle($hWnd) & "]" & @CRLF

Lines 282, 285, 296, 429 & 430: Changed a True to False (ie. the first Boolean value in the lines below was originally True)
Code: Text [Select]
  1. ["[ENTER]",                     False   ,       False], _               ;       13                      0000000D
  2. ["[SHIFT]",                     False   ,       False], _               ;       16                      00000010
  3. ["[ESC]",                       False   ,       False], _               ;       27                      0000001B
  4. ["[L-SHIFT]",                   False   ,       False], _               ;       160                     000000A0
  5. ["[R-SHIFT]",                   False   ,       False], _               ;       161                     000000A1

The Tooltip will appear near the mouse, eg.
P6304192.jpg

It will display things like [DELETE], [BACKSPACE], [PAUSE], etc, and it will eat things like [PRT SCN] - I had to take the screenshot with a camera - so it's pretty useless running all the time, (also because that Tooltip will just keep getting bigger).

So in it's current form it's just about the dumbest keylogger around - it doesn't log, it doesn't hide, it eats keys, and it will start obliterating the screen behind a huge Tooltip.

Source is in the archive, except the UDF which you can get from Pastebin and do the above modifications yourself.

And neither MS Defender nor MBAM complain about it.

UPDATE:
  • Removed Send('{scrolllock}') - wasn't required

UPDATE 2:
  • Exits on Escape, Enter, Tab, Right Mouse Button, and tray icon menu item (which will also cause a RMB exit).
1314
Might work, 4WD.  But I need it to function outside of a browser for my purposes.

It's not tied to a browser, it intercepts any LMB click that is held down for more than a certain period unless the program it's over institutes its own custom handler.
1315
General Software Discussion / Re: save my writings
« Last post by 4wd on June 29, 2016, 08:27 PM »
Form History Control (Firefox/Pale Moon/etc) - have used for ages.
1316
Greasemonkey/Tampermonkey + Show Password onMouseOver userscript - it's what I use.

Of course, that is browser only - the simplest method is to open a text document, type in the password, and then cut/paste it into the input field.

... many people are one step short of a blown fuse.

 ;D
1317
A bit of serendipity, clearance item ($129->$8.50), folder with detachable Bluetooth 3.0 keyboard/trackpad for MS Surface Pro came up a few days later.

P6304184_edited.jpg

Kind of cleaned out the shop  :-[

ADDENDUM: OK, running the C.H.I.P. with the Bluetooth keyboard works well, no shut downs so far.
A few figures measured on a USB voltage/current meter:
Current drawn at boot to GUI is a maximum of 540mA.
Current drawn when loading the browser is ~570mA.
Idling at around 320mA as I type this with the keyboard.
6 tabs open caused a spike of ~580mA when it was loading the contents of one.
1318
General Software Discussion / Re: save my writings
« Last post by 4wd on June 28, 2016, 08:55 PM »
I snuck in an edit  :P

Yeah, just strikes me as odd for something like that to happen so often  :huh:
-Stephen66515 (June 28, 2016, 08:50 PM)

He applies for a lot of jobs?
1319
Living Room / Re: Interesting "stuff"
« Last post by 4wd on June 28, 2016, 08:35 PM »
In the more interesting than practical category:

https://imgur.com/a/icKnR

Fully Programmable Binary Keyboard.  Supports Dvorak too.

[ Invalid Attachment ]

With that keyboard you really don't want to get distracted... :P

01011001 01100101 01100001 01101000 00101100 00100000 01001110 01101111 00100000 01010011 01101000 01101001 01101011 00100001

01011001 01100101 01100001 01101000 00101100 00100000 01001110 01101111 00100000 01010011 01100011 01101000 01101001 01100011 01101011 00100001

01000110 01010100 01000110 01011001

 :P
1320
General Software Discussion / Re: save my writings
« Last post by 4wd on June 28, 2016, 06:16 PM »
How many times does your browser crash, that you are thinking about needing a keylogger?
-Stephen66515 (June 28, 2016, 06:01 PM)

He didn't say the browser crashes, he said the webpage closes - this could be the result of hitting the Submit button on a page or some other trigger.

https://www.donation...ex.php?topic=34227.0

That being said, in the ~3.3 years since kalos last asked (and we never really did get an answer regarding the software suggested then) he could have searched for, downloaded, tested, and reviewed probably 90% of the keyloggers available.

Yes, I'm being indirectly facetious :P
1321
Did you try zipping up the downloaded website and sending it to your Send-to-Kindle email address?

https://www.amazon.c...p/sendtokindle/email

Mentioned on StackExchange.

Might be dependent on how complex the website is though.
1322
You're welcome, I think we can get skwire to move this thread  :)
1323
jity2's Strange PDF Thing (jsPDFt)  :P

Code: PowerShell [Select]
  1. <#
  2.   jsPDFt.ps1
  3.  
  4.   Concatenate PDFs in sub-folders
  5. #>
  6.  
  7. Function Get-Folder {
  8.   Add-Type -AssemblyName System.Windows.Forms
  9.   $FolderBrowser = New-Object System.Windows.Forms.FolderBrowserDialog
  10.   [void]$FolderBrowser.ShowDialog()
  11.   $temp = $FolderBrowser.SelectedPath
  12.   If($temp -eq '') {Exit}
  13.   If(-Not $temp.EndsWith('\')) {$temp = $temp + '\'}
  14.   Return $temp
  15. }  
  16.  
  17. Function Get-PDF {
  18.   Param(
  19.     [String]$folder,
  20.     [string]$source,
  21.     [string]$dest,
  22.     [string]$command
  23.   )
  24.   If(-Not $folder.EndsWith('\')) {$folder = $folder + '\'}
  25.  
  26. # If there are any PDFs in the folder then execute the concatenation
  27.   If(@(Get-ChildItem -Path ($folder + '*') -Include *.pdf -File).Count -gt 0) {
  28.     Write-Host 'Folder:' $folder -BackgroundColor Black -ForegroundColor Yellow
  29. # Create output file name
  30.     If((Split-Path -Path $folder -Leaf).EndsWith('\')) { # Input was root folder
  31.       $outFile = $dest + '\' + $source.Substring(0, 1) + '.pdf'
  32.     } else {
  33.       $outFile = $dest + $folder.Replace($source, "") + '\' + (Split-Path -Path $folder -Leaf) + '.pdf'
  34.     }
  35.     $outFile = $outFile.Replace('\\', '\')
  36.  
  37. # Otherwise, check if output folder exists and create if necessary
  38.     If(-Not (Test-Path (Split-Path -Path $outFile))) {
  39.       New-Item (Split-Path -Path $outFile) -Type Directory | Out-Null
  40.     }
  41.  
  42.     Write-Host 'File:  ' $outFile -BackgroundColor Black -ForegroundColor White
  43. # Compose argument string
  44.     $arguments = '"' + $folder + '*.pdf" cat output "' + $outFile + '"'
  45. # Execute pdftk.exe with arguments
  46.     Start-Process -FilePath $command -Wait -ArgumentList $arguments -NoNewWindow
  47.   }
  48. }
  49.  
  50. $console = $host.UI.RawUI
  51. $size = $console.WindowSize
  52. $size.Width = 80
  53. $size.Height = 30
  54. $console.WindowSize = $size
  55.  
  56. If($PSVersionTable.PSVersion.Major -lt 3) {
  57.     Write-Host '** Script requires at least Powershell V3 **'
  58.   } else {
  59.   Write-Host 'Choose folder with PDF files: ' -NoNewline -BackgroundColor DarkGreen -ForegroundColor White
  60.   $srcFolder = (Get-Folder)
  61.   Write-Host $srcFolder
  62.   Write-Host 'Choose output folder: ' -NoNewline -BackgroundColor DarkGreen -ForegroundColor White
  63.   Do {$dstFolder = (Get-Folder)} While($dstFolder -eq $srcFolder)
  64.   Write-Host $dstFolder
  65.  
  66. # Full path to pdftk.exe which should be in the same folder as Powershell script
  67.   $pdftk = '"' + (Split-Path $SCRIPT:MyInvocation.MyCommand.Path -Parent) + '\pdftk.exe"'
  68. # List of sub-folders
  69.   $aFolders = @(Get-ChildItem -Path $srcFolder -Recurse -Directory | Select-Object -ExpandProperty Fullname)
  70.   for($i=0; $i -lt $aFolders.Count; $i++) {
  71. # For each sub-folder call the routine
  72.     Get-PDF $aFolders[$i] $srcFolder $dstFolder $pdftk
  73.   }
  74. # Finally, call routine on source folder
  75.   Get-PDF $srcFolder $srcFolder $dstFolder $pdftk
  76. }
  77.  
  78. Write-Host ''
  79. Write-Host 'Close window to exit ...'
  80. cmd /c pause | out-null

Requires the files from PDF Toolkit either extract them from the setup file using UniExtract or install it and then copy the files into the same folder as the script, (then you can uninstall it).

So your folder will look like this:

2016-06-27 17_02_29.png

Run jsPDFt.ps1 using the shortcut.

Hopefully it'll work - it did here.

NOTES:
  • No provision for password protected PDFs, it'll probably die a horrible death while running if it finds one.
  • No provision for seeing if the output file already exists, if it does it will probably be overwritten.
1324
This may help, I capture the LMB click and change it to a RMB click if it's held down for a certain period.

https://www.donation....msg376883#msg376883

I guess for what you want you would just need to remove the delay check and see what was under the pointer at the time, then initiate an action.
1325
I had some difficulties (virus or hammering websites) finding the correct programs that you have recommended files in the thread (https://www.donation....msg374877#msg374877) but I finally found a work around with these links :
http://filehippo.com...rsal_extractor/4795/
http://web.archive.o...g/web/20140315000000*/http://www.adultpdf.com/products/txttopdf/txttopdf.exe
https://www.pdflabs....e-2.02-win-setup.exe
Universal extractor did not work with pdftk but I was able to find the correct file once I installed PDKtk in : "C:\Program Files (x86)\PDFtk\bin\".

Yes, probably need to update the innounp binary for UniExtract, I run a more updated version than what is available on the original site along with updated extractor binaries.  You can get it here, (17.51MB - link will expire in 72 hours).

I hope you can adapt it to subfolders. ;)

Should be easy, I'll have a play around.
Pages: prev1 ... 48 49 50 51 52 [53] 54 55 56 57 58 ... 225next