Ever want to share the clipboard between computers? Now you can!

share the clipboard

Share the clipboard

I wrote a small program with AHK that allows you to share the clipboard with another computer (regardless of where it is).   Sometimes I’m using my laptop and copy & then want to paste on my desktop while other times I’m collaborating with my friend in Denmark.  Either case is simple for me.  All I have to do on one computer is copy it to the clipboard. The other computer can simply paste and the text (or file if you’re in Windows Explorer) will be pasted!

The only requirement is to have a folder that is shared between them. (Use services like Dropbox or Google Drive or a network drive if you are at work. It has been tested on Win XP, Win 7, Win 8 and Windows 10.

Overall Explanation / Review:

ClipShare Intro – Explanation

How to use ClipShare:

ClipShare-How to use

 

Web Scraping with AutoHotKey 103-Leveraging the Document Object Model

web scraping

Leveraging the Document Object Model

This third video on Web Scraping gets a little advanced and shows how you can leverage the DOM to make extracting data from a webpage much easier and reliable.

Leveraging the Document Object Model (DOM)will take some practice (especially if you’re not familiar with Object oriented coding) but it is well worth it because it greatly reduces the amount of clean-up you have to do after you extract your data.  I used to write some pretty crazy regular expressions to try and clean up my code.  Once I learned how to better navigate the DOM it negated the need for cleaning!

The HTML Document Object Model (DOM)-Tree of Objects

Document Object Model

Video Leveraging the DOM plus looping over pages

Webscraping with AHK 103-Isolating sections and taking advantange of DOM

The syntax for writing the writing the web scraping code can be found on my first post here.  There is also an AutoHotKey forum thread you might wish to review here.

Create your own SciTE Hotkeys by hacking your user.properties file

SciTE hotkeyHotkeys are a great way to be more efficient!  AutoHotkey makes it easy to create a hotkey for nearly anything however you can easily create your own custom SciTE Hotkeys by making a tweak to your user.properties file.

Below is the text I have in my user.properties file which builds in hotkeys without needing AutoHotkey.  You can find additional commands by going here.  Just don’t forget you are not limited to these.  In the video I show how you can create your own!  Make sure you do not have any comments within your list.  In my video I have them but I realized, later, that this causes issues.

btw- To be able to highlight text and move it up or down you can add :

Ctrl+Shift+Up|2620|\
Ctrl+Shift+Down|2621|\

This video walks through the process of creating your own SciTE Hotkeys

Creatie custom SciTE hotkeys to be more efficient

Configuring SciTE language Property files- IntelliSense for most languages

Configuring SciTE language Property filesConfiguring SciTE language Property files

One of the main reasons I love SciTE is because of the ability to use the ~70 language property files which show Intellisense.  I’ve put around 70 of them in this zip file and I’ve listed out the names of them at the bottom of this post.

Configure SciTE language Property files is easy.  In your User.Properties file just add something like this

import Properties\html
import Properties\sql
import Properties\python

The Properties folder needs to be either in the same directory as where SciTE is installed, or needs to be located in the folder where you have configured your SciTE Home variable to point to.

After importing the properties you want, I also recommend importing them to your language menu as well.  This way you can select what language you want to apply to the open file (this can come in pretty handy at times).  To do this you’ll still need to be in your User.Properties file.  Add something like below.  (The & is what will make that letter become an accelerator key)

menu.language=\
&HTML|html||\
S&ql|sql||\
&Py|Python||

And here are some notes to help understand what can be done when Configuring SciTE language Property files:

#****************language***************************************.
# Define the Lexer menu, Each item contains three parts: menu string | file extension | keyboard equivelant
# The only keys allowed currently are based on F-keys and alphabetic keys and look like # [Ctrl+][Shift+][Fn|a] such as F12 or Ctrl+Shift+D.
# A ‘&’ may be placed before a letter to be used as an accelerator. Each element is terminated by ‘|’. For example: H&ypertext|html|F12|

Here are the language property files provided in my zip file.

abaqusescriptnimrodsmalltalk
asn1flagshipnncrontabsorcins
au3forthnsisspecman
avefortranopalspice
baanfreebasicothersspss
blitzbasicgappascalsql
bullanthaskellperltacl
camlhtmlpovtal
cmakeinnopowerprotcl
cobolkixpowershelltex
conflatexpstxt2tags
cpplisppurebasicvb
csoundlotpythonverilog
cssloutrvhdl
dmatlabrebolyaml
debug.pymetapostruby
eiffelmmixalSciTEUser
erlangmodula3scriptol