Informatics stuff
Web browsers, User JavaScript, AutoHotkey scripts, etc...
17 January, 2019
10 January, 2019
Scripts management. AHK process list
A list of all running AHK scripts with options to close all of them or start a set of startup scripts.
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.
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.
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.
Alarm Timer in AHK
Some older AutoHotkey scripts.
First: Alarm Timer. Second script below is an auto alarm timer, run from another script.
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.
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).
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
Subscribe to:
Posts (Atom)