Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 89
» Latest member: furyvwilder3
» Forum threads: 56
» Forum posts: 118

Full Statistics

Online Users
There are currently 29 online users.
» 0 Member(s) | 28 Guest(s)
Google

Latest Threads
Error with download file
Forum: The Enterpad corner
Last Post: foscmgt
03-25-2020, 03:52 PM
» Replies: 9
» Views: 372
small problems
Forum: The Enterpad corner
Last Post: denilama
03-14-2020, 07:28 PM
» Replies: 1
» Views: 112
Keyboard Shortcut - Find ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
11-01-2019, 11:48 AM
» Replies: 1
» Views: 514
Keyboard Shortcut - Find ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
11-01-2019, 11:47 AM
» Replies: 1
» Views: 527
Keyboard Shortcut - Launc...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
10-18-2019, 12:43 PM
» Replies: 1
» Views: 645
Pay by mastercard
Forum: The Enterpad corner
Last Post: denilama
08-06-2019, 12:57 PM
» Replies: 1
» Views: 3,645
Keyboard Shortcut - Launc...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: Ma18
06-14-2019, 12:51 AM
» Replies: 1
» Views: 2,601
How to create a keyboard ...
Forum: Keyboard shortcuts with AutoHotkey code
Last Post: denilama
05-20-2019, 08:19 AM
» Replies: 2
» Views: 3,841
ShortKeeper in Egypt! (re...
Forum: ShortKeeper suggestions and feedback
Last Post: iamhja
03-30-2019, 12:59 PM
» Replies: 1
» Views: 2,811
Introduction
Forum: Need help with ShortKeeper?
Last Post: stefini3
03-14-2019, 07:54 AM
» Replies: 4
» Views: 3,498

 
Lightbulb Keyboard Shortcut - Set Font Size in MS Word
Posted by: denilama - 03-01-2018, 09:16 AM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

With AutoHotkey you can easily set properties in Microsoft Word (e.g., font size, font name, font style, font color, line spacing, etc.). The following script is designed to set font size. By adapting this script, you can set any property you want in Word using AutoHotkey.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

Critical
if WinActive("ahk_class OpusApp")
{
  ControlGet, hwnd, hwnd, , _WwG1, A
  if DllCall("oleacc\AccessibleObjectFromWindow", "Ptr", hwnd, "UInt", 0xFFFFFFF0, "Ptr", -VarSetCapacity(IID,16)+NumPut(0x46000000000000C0, NumPut(132096, IID, "Int64"), "Int64"), "Ptr*", pacc) = 0
    WordApp := ComObject(9, pacc, 1).Application
  WordApp.Selection.Font.Size := 24
}
else
  MsgBox 0x40040, ShortKeeper, There is no Word document window active.

You can replace line 7 in the above script with any of the following command lines to set these properties.

Set font name to Arial Black:
WordApp.Selection.Font.Name  := "Arial Black"
Set font style to italic:
WordApp.Selection.Font.Italic := 1
Set font style to bold:
WordApp.Selection.Font.Bold := 1
Unset bold font style:
WordApp.Selection.Font.Bold := 0
Set font color to red:
WordApp.Selection.Font.Color := 0xFF0000
Set line spacing to 10.5:
WordApp.Selection.ParagraphFormat.LineSpacing := 10.5

The script will set the font color if the Word document is the active window and is not busy (e.g. selecting a command).

If you want to set any other property in Word but don’t know how, the Word macro recorder can help. Start the macro recorder, set the property manually, and then view the resulting macro. This will give you an idea of how to do it with AutoHotkey.

This script is optimized to be used with ShortKeeper. As such, there is no exception handling, no “Return” at the end, and variable(s) don’t need to be cleared. ShortKeeper does all of this automatically. Just copy/paste the code in the PARAM field in ShortKeeper, set your hotkey, save, and you’re ready to use your new keyboard shortcut.

Print this item

Lightbulb Keyboard Shortcut - Open Link in a New Tab while Surfing
Posted by: denilama - 02-28-2018, 08:45 PM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

Are you looking for a way to quickly open links in new tabs while surfing? The following script will let you do just that without even having to click on your mouse. Simply hover your mouse over a link and use a keyboard shortcut. A new tab will be opened in the web browser, and the view will be switched to the new tab (the new tab will become active). It is the equivalent of holding down Ctrl+Shift while clicking the left mouse button OR right-clicking the link and selecting “Open link in new tab”.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

SendInput {ctrl down}{shift down}
Sleep 100
Click
Sleep 100
SendInput {shift up}{ctrl up}

This script was last tested on March 14, 2018 with Internet Explorer (IE), Firefox, and Chrome.

Print this item

Lightbulb Keyboard Shortcut - Set Font Color in Excel
Posted by: denilama - 02-27-2018, 02:32 PM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

The following AutoHotkey script lets you set a font color in Excel. The script can also be easily adapted to set several other useful commands (like protect/unprotect a worksheet, set a cell formula/color/border, set currency, set conditional formatting, and so on).

The script will set the font color if the Excel worksheet is the active window and is not busy (e.g. editing, selecting a command).

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

Critical
if WinActive("ahk_class XLMAIN")
{
  ControlGet, hwnd, hwnd, , Excel71, A
  if DllCall("oleacc\AccessibleObjectFromWindow", "Ptr", hwnd, "UInt", 0xFFFFFFF0, "Ptr", -VarSetCapacity(IID,16)+NumPut(0x46000000000000C0, NumPut(132096, IID, "Int64"), "Int64"), "Ptr*", pacc) = 0
    ExcelApp := ComObject(9, pacc, 1).Application
  ExcelApp.Selection.Font.ColorIndex := 3
}
else
  MsgBox 0x40040, ShortKeeper, There is no Excel worksheet window active.

The last number (3) at line #7 sets the color of the font to red. A decimal number from 0 to 56 allows for different color options. The following list includes some common color choices:
  • Auto, 0
  • Black, 1
  • White, 2
  • Red, 3
  • Bright Green, 4
  • Blue, 5
  • Yellow, 6
  • Pink, 7
  • Turquoise, 8
  • Dark Red, 9
  • Green, 10
  • Dark Blue, 11
  • Dark Yellow, 12
  • Violet, 13
  • Teal, 14
  • Grey 25, 15
  • Grey 50, 16

This script is optimized to be used with ShortKeeper. As such, there is no exception handling, no “Return” at the end, and variable(s) don’t need to be cleared. ShortKeeper does all of this automatically. Just copy/paste the code in the PARAM field in ShortKeeper, set your hotkey, save, and you’re ready to use your new keyboard shortcut.

Print this item

  Mouse click
Posted by: Philippe27 - 02-26-2018, 11:49 PM - Forum: Need help with ShortKeeper? - Replies (1)

Hi, I am trying to get to double click on my shortkeeper logo on my desktop to open it. When I press F1 it triggers my sound control instead of writing my screen coordinates (x, y). What can I do about it?

Print this item

Lightbulb Keyboard Shortcut - Quick WordPad for Notes
Posted by: denilama - 02-25-2018, 03:06 PM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

This AutoHotkey script quickly brings an existing WordPad file to the forefront of the desktop, allowing the user to type or read whatever they need and continue working where they left off with minimum disruption. Workflow does not suffer and concentration can be maintained.

A bonus feature of this script is that you do not need to think about whether the WordPad file is open or not. If the file is open, it will bring it to the forefront. The script will not open another copy of the same file (which could result in the loss of some information, if two concurrent versions of the file were edited at the same time).

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

FileName := "Path+FileName.rtf"
wmi := ComObjGet("winmgmts:")
queryEnum := wmi.ExecQuery("Select * from Win32_Process where Name = 'wordpad.exe'") ._NewEnum()
while queryEnum[process]
{
 LenCL := StrLen(process.CommandLine)
 LenFL := StrLen(FileName)
 if (LenCL >= LenFL)
   if (FileName = SubStr(process.CommandLine, -(LenFL-1)))
   {
     WinActivate % "ahk_pid" . process.ProcessId
     return
   }
}
Run % "wordpad.exe " . FileName

At line #1, “Path+FileName.rtf” must be replaced with the actual path and name of the WordPad file (do not remove quotation marks).

This script is optimized to be used with ShortKeeper. As such, there is no “Return” at the end and variable(s) don’t need to be cleared. ShortKeeper will do this automatically. Just copy/paste the code in the PARAM field in ShortKeeper, set your hotkey, save, and you’re ready to use your new keyboard shortcut.

Print this item

Lightbulb Keyboard Shortcut - Backing Up a File
Posted by: denilama - 02-22-2018, 01:48 PM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

If you’re constantly modifying an important file, you know you should be backing it up regularly, just in case. Starting File Explorer, locating the right folder, selecting the right file, copying the file, and then pasting it can be enough to make you want to skip this important task.

With the AutoHotkey script below, creating a shortcut in ShortKeeper will make backing up a file fast and easy. If something goes wrong with your working file, the backup will save you time and money.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

FolderName := "c:\folder"
FileNameWithoutExtension := "filename"
FileNameExtension := "ext"
 
IfNotExist, %FolderName%\%FileNameWithoutExtension%.%FileNameExtension%
{
  MsgBox, The file to back up does not exist:`n%FolderName%\%FileNameWithoutExtension%.%FileNameExtension%
}
else

  IfNotExist, %FolderName%\bak
    FileCreateDir, %FolderName%\bak
  FormatTime, CurrentDateTime,, yyyy-MM-dd_hh-mm
  FileCopy, %FolderName%\%FileNameWithoutExtension%.%FileNameExtension%, %FolderName%\bak\%FileNameWithoutExtension%_%CurrentDateTime%.%FileNameExtension%, 1
  if ErrorLevel
    MsgBox Unable to bak up the file %FileNameWithoutExtension%.%FileNameExtension%.
}

At line #1: "c:\folder" must be replaced with the actual name of the folder that contains the file that is to be backed up (do not include “\” at the end; do not remove quotation marks). 

At line #2: "filename" must be replaced with the actual name of the file that is to be backed up (do not include file extension; do not remove quotation marks).

At line #3: "ext" must be replaced with the actual extension of the file name (do not remove quotation marks).

This script will create (or use an existing) "\bak" folder to back up the file. It will include a date & time stamp in the backup filename.

Print this item

Lightbulb Keyboard Shortcut - Go to the Next Page in Google Search Results
Posted by: denilama - 02-22-2018, 09:47 AM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

If you use Google Search a lot, scrolling and clicking to bring up the next page of results can be a real pain. Using the "Run AutoHotkey code" command in ShortKeeper (with the following script) will allow you to easily create a keyboard shortcut to do this without having to use your mouse.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

LastTitleMatchMode := A_TitleMatchMode
SetTitleMatchMode 2
if WinActive("Google Search")
{
  Send ^l
  Sleep 200
  SendInput javascript: document.getElementById("pnnext").click()
  Sleep 200
  Send {enter}
}
SetTitleMatchMode %LastTitleMatchMode%

This script was last tested on February 19, 2018 with Internet Explorer (IE), Firefox, and Chrome.

The instructions to go to the next page (lines #5 to #9) will be executed only if the active window title includes "Google Search".

If ever Google changes the way its search webpage works, this script may stop working. Please report any problems here. This will allow someone to correct the script. Just subscribe to this thread to be notified of any updates.

Print this item

  Overlay | SB Pro PE Workstation
Posted by: denilama - 02-20-2018, 02:02 PM - Forum: The Enterpad corner - No Replies

Nice setup from SergeyPe

   

   

Found on http://www.steelbeasts.com/topic/4340-sb...on/?page=4

Print this item

  Logging to a website
Posted by: Philippe27 - 02-18-2018, 04:56 PM - Forum: Need help with ShortKeeper? - Replies (4)

Hi! I am looking to create a shortcut to login on websites. Let's say my username is Phil and my password is 27, how can I put it down in the insert text section to make it login to the website without even pressing enter?

Print this item

Lightbulb Keyboard Shortcut - Open a Web Page with a Non-default Web Browser
Posted by: denilama - 02-15-2018, 10:32 AM - Forum: Keyboard shortcuts with AutoHotkey code - No Replies

Creating a shortcut to open a web page with ShortKeeper’s "Open web page" command is easy. The shortcut will open the web page with your default web browser. But what if you want to open the web page with a non-default web browser? AutoHotkey has you covered. Instead of using ShortKeeper’s "Open web page" command, use the "Run AutoHotkey code" command with your own AutoHotkey code.

Need help creating a keyboard shortcut with ShortKeeper using the following AutoHotkey code? This 5-minute tutorial will help!

In the PARAM field, you could use one of the following examples:

Run % "firefox.exe " . "http://www.google.com"
Run % "chrome.exe " . "http://www.google.com"
Run % "iexplore.exe " . "http://www.google.com"

Simple enough!!

Print this item