Labels

Showing posts with label autohotkey. Show all posts
Showing posts with label autohotkey. Show all posts

March 16, 2016

Auto_Refresh

Auto_Refresh

An Autothotkey Script to refresh the current active tab on Google Chrome with a Hotkey(or group of keys).

March 2, 2016

Launch-X (v2.1.0) : Recent Updates

A quick launcher for your loving apps, you use more often.
LaunchX enables you to have a group of button linked directlyv to different destinations you set. You can have reach the destinations(folder/file) on your system just by clicking the button.
All you need to do is to set up a button and set its destination. :bravo: 

[Some Recent Improvements]:
1. New delete buttons added. You can add/ remove buttons as per your wish. Just double click the button name you want to delete on 'delete.ahk' window.
2. Some unnecessary lines of code have been removed.
3. better dealing with .ini files.
4. use of Tf library functions has been removed as they made the code too long.
5. some GUI improvements.
6. Other minor bug fix.

Launch-X github repo

February 18, 2016

Exe files for Caps Lock Status Tootip

I have uploaded the exe file for Caps Lock Status Tooltip. Now non-autohotkey user can also download and use the script. Download the .zip and extract the file. The script can be run by double clicking the 'caps' file.

for ahk user: ahk_files/caps.ahk

for non-autohotkey users: exe_files/caps.exe.

February 15, 2016

Hidden Explorer

Hide your files with a simple popup menu and then manage them.
You can open a hidden file(without unhiding it) or unhide a file.
A simple list to mange all the hidden hidden files.
Setup a password to add the security layer to prevent disclosure of important files.

HotKey:[Ctrl]+[RightClick]

Library used:
[Libcript.ahk]
used for encrypting the file list and password.

Code: https://github.com/KamalAwasthi/Hidden-Explorer

Now, no need to go for a long procedure to hide or unhide a file. :dance: :bravo:  

February 13, 2016

Controlling the Script run and Overwrite

When a script is running already, and we need to see the changes we made after the last run, '#SingleInstance' can save us the time and effort of clicking everytime the ok button that we are asked to.

#SingleInstance force ;skips the dialog box and replaces the old instance automatically
#SingleInstance ignore ;skips the dialog box and leaves the old instance running
#SingleInstance off ;allows multiple instances of the script to run concurrently

February 7, 2016

Removing Side Scroll Bar from Edit

You can make our Edit Gui ScrollBar free, by adding a
just one key word at the end:

Gui, Add, Edit, vMainEdit WantTab W180 R14 -VScroll

This will create an edit gui of width 180px and height 14 characters, without any scroll bar.

January 27, 2016

Managing Tabs in Autohotkey

Tabs represent different sub-categories of a main category or topic like a table having results of all the students has many sub domains of a major domain, Subject:
    1.)Subject
          i) Mathematics ii)English iii) Science  iv)Social Science

You can handle each type doing different things, like each subject displays marks of each student, hence you need to read a different file for each tab. You can do many things in each tab without applying a common setting that appears in every tab:

Loop, parse, mainTabNames, |
{
    Gui, Tab, %A_Index% ;Lets you handle each tab separately  
 
      Gui, Add, ListView, r15 w450 Grid, Name of File/Folder                   |Shortcut(HotKey)
      
    Loop, Read,%A_Index%.ini                       ;Load the marks of each subject from                                 {                                                                   ;files names as per the subject i.e.- <Subjectname>.ini
      LV_Add("",A_LoopReadLine,A_LoopReadLine)
    }

  

January 17, 2016

Reading a File and placing each line in One Tab in reverse order

Like, you wanna make some customised 'Tab' window where you can add or delete one or more tabs as per the requirement, You need to save a list of all the tabs in a file and then read it each time you launch your script:

Loop, Read, settings.ini                                      
{
    mainTabNames= %A_LoopReadLine%  | %mainTabNames% 

Gui,font,S12 cGreen,Calibri
Gui, Add, Tab,x%mainTabX% y%mainTabY% w%mainTabWidth% h%mainTabHeight%, %mainTabNames%
Gui,Show

Note: the tabs will be added in reverse order of the index of lines in the file.

January 7, 2016

Reading a File Name and Display its Name

Just copy the file and read the clipboard:

Send,{ctrl down}c{ctrl up} ;to copy the file/folder path
ClipWait
FileFullPath=%Clipboard%  ;stores the clipboard in FileFullPath
SplitPath,FileFullPath, name, dir, ext, name_no_ext, drive
MsgBox, ,Selected file,The selected file is %name%

December 14, 2015

My Shortcuts

 A mini-shortcut manager for the most frequently visited places in your systems, like :
   My Documents, CMD, Windows Media Player, Control Panel etc.
You can make them launch whnever you want, with the hotkey designated to a partcular place.
Not only this, You can also go directly to you home page, Github page or LinkedIN Page with a single hotkey. Choose whatever Hotkey you want and change them as per your need.

                                                       Github Repository



November 27, 2015

Direct your [Left Arrow Key] to [Shift]+[Right Arrow Key]

Just a few days ago, one of my friend faced a problem. [Left Arrow Key] of his Laptop Key Board stopped working. I helped him to solve this problem by redirecting that key to [Shift]+[Right Arrow Key].

This is the script to do so:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#SingleInstance,force
Menu, Tray, NoStandard
Menu, Tray, Add, Run at Startup, startup
Menu,Tray,Add,About,about
Menu,Tray,Add,exit,closescript
+Right::
Send {Left}
return

closescript:
ExitApp
return

about:
MsgBox,This script directs the Shift+Right Arrow Key to LeftArrow key`n{Shift}+{Right Arrow Key}={Left Arrow Key}
return

startup:
FileCreateShortcut,%A_ScriptFullPath%,%A_Startup%/mapping.lnk
IfExist,%A_Startup%/mapping.lnk
{
FileDelete,%A_Startup%/mapping.lnk
FileCreateShortcut,%A_ScriptFullPath%,%A_Startup%/mapping.lnk
}
 return

For Non-AhkScript users, just ask for the .exe file at my Google+ wall and I will send you the .exe file to run the script.

November 14, 2015

Launch-X(v2.2.0):New Delete Button

Long awaited a very new 'Remove A Button' feature added facilitating the user to remove a Button he/she no longer uses or was added by mistake. Launch-X(v2.2.0)



 

November 3, 2015

TF Library for Strings

As the name suggest this is an AutoHotkey (AHK) Library with a number of functions to "manipulate"text, both files such as *.txt, *.ahk, *.html, *.css etc AND Strings (or variables). For example you can delete specific lines, replace words or specific lines, number lines, remove or insert columns of text, etc. See the list of functions below for a complete overview.

I faced problems while having work with files to store lists or file name in a text file, I came to know about this library and started using it. Though it is a long set of functions and need to be included as whole as functions randomly call other functions to have a task done. But overall it solves problems and saves our labour.   

October 21, 2015

Selecting a File or Folder

To select a file/folder or to get the full path of a file/folder, You can follow the following the lines in your script :

Send,{ctrl down}c{ctrl up} ;to copy the file/folder path
ClipWait
FileFullPath=%Clipboard%  ;stores the clipboard in FileFullPath
SplitPath,FileFullPath, name, dir, ext, name_no_ext, drive
MsgBox, ,Selected file,The selected file is %name%.

September 28, 2015

Sending commands to cmd in Autohotkey

we can send direct commands to cmd thru autohotkey and can get our work done at cmd level.
To send the command we can use the following code:

run cmd.exe
WinWait, ahk_exe cmd.exe
; to make some time difference in the execution of next line
Send cd Desktop{Enter} ; it will change the current directory to the Desktop.

September 23, 2015

Gitter Chat room for Launch-X

A new chat room for Launch-X is open. You can have an open discussion about the topic and express your thoughts to help to build the project better and together.
 
                                                      GITTER CHAT ROOM

September 18, 2015

Launch-X(v2.1.0)

#New Version Release:

What's new?
1. Totally new look and better GUI version.
2. A new shortcut setting window added.
3. New tray menu and icon added.
4. Better stability and some minor bug fixes.
5.No need to relaunch the app to see your new button added. Its added instantly now
 
To have look follow: Launch-X (v2.1.0)
 
 
Adjust Your Shortcut
Launch-X(v2.1.0)
 

September 15, 2015

Adding Background color to a Gui Button

 

Normally Buttons do not follow the general rule to set the color at their background, like,
 
      [ Gui,Add,Button, glabel x100 y140 cBlue,MyButton]
 
You can add a background color with the cute little trick, by using the Progress.Script can be found at the link given below:

                                            "Color your Button"

 
 

September 10, 2015

LaunchX (version release 1.2.01)

 
New version(v1.2.01):What's new?
1. Some minor bug fixes.
2. LunchX gets closed when you launch any application.
3. You are prompted a message on each addition a new button.