14 March, 2018

Drozd CPU monitor in AHK

Continued from the network monitor post.
I made this CPU monitor, not only because of the need to get rid off the Vista sidebar dependency. I used to use this great gadget All CPU Meter, but I had some issues with it. I wanted to make a single bar for the CPU usage. I didn't want many bars for multi-core processor. That's too much unnecessary info, takes too much space. I added date and time, so I don't have to use another gadget and take more space.
The first one below is the simpler version.
BTW. This may be used as an example of how to use tic's Gdip library for new people.



I gradually made an extended version of the script that I use now.
I added CPU monitoring for two chosen processes and one for memory. It's good to know if one of the browsers is doing something suspicious. Or to check for memory leak.
Now the first extra bar monitors processes from a test list (or all processes) and shows the one that uses the most CPU.
I also used a timer for idle time. I didn't remove it from the script here, because I would have to change too much. I used it to check when some Windows background processes (on Windows 8) start doing some weird things. Also trojans activate during idle time or when monitor turns off, etc.



Drozd network monitor in AHK

Monitoring the CPU usage and network traffic is vital for keeping one's computer secure. If a program uses 50-100% of processor power for long time, it's important for the user to notice it. Whether it's a hanged program or a data encrypting ransomware. It's important to see the network traffic in case suspicious programs upload or download data.

There should always be indicators available in the operating system for the user to achieve this task. Unfortunately, Microsoft is not giving this option. Whether it's because of ineptitude or by choice as an NSA front (the Windows 8 design was an obvious attempt to deny the user control over his own operating system and making the users get used to "apps" connecting to the internet uncontrollably).
Firewall, network and CPU monitoring are as vital as dashboard in a car.

I had to make this network monitor, since I had some problems with the Network Meter gadget  in Vista sidebar. Network Meter is still very good and, as far as I know, the only gadget like that, btw.

I didn't want to be dependent on the sidebar, even though one can still get on the net the sidebar working on the newer shoddy versions of Windows (even on the Windows 8 abomination).
I needed separate history graphs for download and upload, because the same scale for both is not informative enough. I had some problems with readability, too. Anyway, it's always better to be able to customize a program to one's needs.
So this script does it. It depends on the great Gdip library by tic (graphics functions) and XNET module by SKAN for calculating traffic. AHK is about a team work so I have to link to Sean who started the work on this problem.

I copied the necessary functions in the script itself, so to save the trouble.
AHK limitation: program is suspended while the right click context menu is on. It's worth to remember.




Also posted on AutoHotkey forum here

Save the file in Unicode.
 

Stopper/timer in AHK



Alarm Timer in AHK

Some older AutoHotkey scripts.
First: Alarm Timer. Second script below is an auto alarm timer, run from another script.


17 October, 2016

Opera 12. "User Agent" (HTTP header) spoof. User JS and hack of opera.dll (hex edit)

Some websites no longer support Opera 12. For instance google.com shows up in a not useful way in Opera 12.
Sometimes a user script is good enough to fix it, if the website sends the same code to every browser and the selections is made by JavaScript (look example below).
Some websites, like Google, send different versions of the code for different browsers, though. So the spoof must be done by the browser itself. Opera 12 has a feature to do it for every site separately: right click menu | "Edit Site Preferences" | Tab : "Network" | "Browser identification" | Choose: "Mask as Firefox" or "Identify as Firefox" (or IE). It used to work well, but Opera 12 is no longer updated, so the hardcoded choices of "User Agent" strings are obsolete. The old versions of Firefox and Internet Explorer are no longer supported by many websites.
So the "User Agent" spoof choices which are hardcoded in opera.dll must be updated.
What's needed is a hex editor.

08 April, 2015

UserJS: Fix Tinypic and Photobucket on Opera 12.

Tinypic embedded images are not showing on Opera 12. Even on tinypic.com images are not visible. It's done on purpose, since the image container has an added class "imgtmp" (with "visibility: hidden") on Opera 12 only (not on Firefox).
This script can solve the problem, at least for a while (until they change something again).
Note: Requires jQuery (downloaded and put in User JS folder).

30 December, 2014

UserJS: Change plain url text to a clickable link

Change plain url text to a clickable link on a webpage.

03 July, 2014

AutoHotkey Scripts: Take quick screenshots (Snipping Tool) using "Gdip.ahk" library


 I often need to compare some things;  taking a quick screenshot is very useful for this purpose. Windows "Snipping Tool" is OK, but it doesn't run in multiple instances and it's somewhat bothersome to use.
I needed something quick.

29 June, 2014

UserJS: YouTube Video Download Button


 This script  makes a download button for videos on YouTube. It also shows available qualities.

UserJS: Force video playback quality and disable autoplay on YouTube


This script forces the chosen quality and disables the autoplay feature for videos on YouTube.com

UserJS: Disable autoplay on LiveLeak.com. Move controls bar under the video


I made this script to disable autoplay feature for videos on LiveLeak.com
The script also stops the absurd and annoying behavior of putting the controls bar on top of the video thus obscuring the video itself.

10 June, 2014

AutoHotkey Scripts: "Quick Notes"


I had to make my own script for notes, since Opera browser is going to the dogs and old version 12 won't be usable forever.
So I made my "Quick Notes" script.

● Script for AutoHotkey_L. Save file in Unicode.
● Eight notes/tabs with customizable names stored in separate files with backup.
● Borderless movable window.
● Always on top button.
● Switch small/bigger window.
● Letter and word count on any key press or button press (plus reverse text).
● No taskbar button. Press F1 or click on the script's tray icon to bring window to the front.

/on Windows 8 there is some discrepancy with icon numbering (wmploc.dll); so  icon "onTop" (Icon17) should be changed to Icon13 ;  icon "GoSettings" (Icon25) should be changed to Icon18  /

Download Quick Notes by Drozdman.ahk    ( Windows 8 version )
Compiled executable file: Quick Notes by Drozdman.exe

On AutoHotkey forum






17 August, 2013

12 August, 2013

UserJS for Flickr: center the full size picture and kill the topbar


  This script centers the full size picture vertically (if the photo is bigger than the screen) and kills the topbar that obscures the view. It's triggered with a click on the page (except links).


05 August, 2013

Flickr old design. Greasemonkey Script for Firefox

  Flickr is not usable with the new design, which is, btw, an example of the epidemy of moronic blunders made by big internet/computer companies: from Microsoft's Windows 8 Metro interface (created for cats and monkeys playing with tablets) to Opera 15 (a browser without... bookmarks - lol).

  To get some of the old, normal usability of the Flickr website, you can add "?details=1" suffix to the profile address and "detail/" to the "set" view address. This script (which works also in old Opera) can be used to do it automatically. Install the script and and press the key "q" or "5" to get to the old design on "photostream" and "set" (sometimes you have to press the key twice or more times to get it quickly).
/Note: I changed the shortcuts from "f" and "3", because flickr uses "f" as "favorite" and 3 may be already taken in Opera , too)/
The script also allows to get to the bigger-size version of the pictures after pressing the same keys.
  Another script below does this automatically after loading without the necessity to press any key (but may be buggy on some flickr pages).



03 August, 2013

UserJS: Google search inside a specific website

   Use this User JS.  The script asks for the search word and a website (it uses the selected word and  the current website as default).

29 July, 2013

UserJS: Check older version of websites with "Google cache"


UserJS: Remove annoying elements of a webpage with "Shift + click"

To remove annoying elements of a webpage (like animations) use this User JavaScript and click on the element while pressing Shift

21 July, 2013

Opera browser is dead, but the older version of the browser can still be used



  Opera browser is dead, but I cay still use the older version of the browser for some time before moving to Firefox or some other browser (Iron, Seamonkey).

  I reposted here (simply copy and paste) parts of the blog which has been deleted from my.opera.com by deranged people running Opera Software. Opera management, and even the informaticians making official statements on behalf of the company, have become increasingly nasty while dealing with the deluge of strong criticism of the Opera 15, coming from the shocked Opera users. They started banning users for that (deleting posts has been the norm since the beginning), which is something reminiscent of their new Big Brother partners (Google and apparently NSA). They behave like their new friends.
  Moreover, my blog has been deleted together with all forum posts, something that has not been done in case of other people criticizing Opera management for destroying von Tetzchner's legacy, even though they were using "foul language". Why was it done with my comments? I gather the pointed critique was painful...lol... I will repost some of the comments about the Opera 15 disaster.
  Opera management seeks enemies. The former  "power users" of Opera browser may become dreadful enemies. Not only will they stop promoting the browser, they will actively discourage other people from using the Opera 15 abomination. Not only Opera, since the version 15, has been worse than even the hillbilly browser Google Chrome in terms of looks, the spyware included (Speed Dial, Discover) and the complete lack of usability;  the betrayal of the original ideas of protecting user's privacy and giving him full control of the browser makes Opera Software worse than Google.

Useful buttons for old Opera

 

Buttons with "+" are dual action buttons. Press button for the first, press and hold for the second.
(drag the links onto a toolbar or edit toolbar.ini)