Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;/*********
- ;@project gr4viton AHK script
- ;@filename gr4viton_latest
- ;@author gr4viton
- ;@date since 2011
- ;@brief This scirpt is the best script in the world.. for me!
- ;*********/
- SET_WIN7_SSD()
- starMsg()
- sleep 10
- ;; default programs
- web := opera
- web_new := web . " -newwindow"
- txteditor := vim
- ;; dirs
- log_dir = E:\GDRIVE\LOG\mind\
- ;ctrl ^
- ;super #
- ;alt !
- ;shift +
- ;$exp to let it send itselft without loop
- ;if you dont know name of some key you want to use as a hotkey, find out which scan code does it send (i.e. via Microsoft Keyboard Maker), and write the hotkey i.e #sc56::something
- SetCapsLockState, AlwaysOff
- ;;; to set the default script.. run the ah with parameters
- ;;; ah.exe->options-> [ah.exe "script.ahk"]
- ;#define obsah(x) ((3.14)*(x)*(x))
- ;main {
- ; int r = 10;
- ; int S = obsah(r);
- ; int S = ((3.14)*(r)*(r));
- ;}
- ;incl\ude
- dir_conf := "D:\BACKUP\app\control\autohotkey"
- ;dir_extras := "C:`\PROG`\control`\AutoHotkey`\Extras`\Scripts"
- ;dir_extras := "C:\PROG\control\AutoHotkey\Extras\Scripts"
- ;dir_extras = C:\PROG\control\AutoHotkey\Extras\Scripts
- ;dir_extras := "C:%\PROG%\control%\AutoHotkey%\Extras%\Scripts"
- aa := "asdasdas"
- ;conf = %dir_conf% + KDE_resizing.ahk
- ;#include %conf%
- ;MsgBox "aaa".aa."!!!"
- ;#include dir_extras."\KDE_resizing.ahk"
- ;#include %A_WorkingDir%KDE_resizing.ahk
- ;#include %ScriptFullPath% "KDE_resizing.ahk"
- ;#include C:\PROG\control\AutoHotkey\Extras\Scripts\KDE_resizing.ahk
- ;#include C:\PROG\control\AutoHotkey\Extras\Scripts\IntelliSense.ahk
- ;Run Explorer %A_ScriptDir%
- #include %A_ScriptDir%
- ;#include KDE_resizing.ahk
- ;#include %A_ScriptDir%\KDE_resizing.ahk
- #include E:\GDRIVE\control\gr4viton_latest\KDE_resizing.ahk
- ;#include E:\GDRIVE\control\gr4viton_latest\windowgrid.ahk
- ;#include E:\GDRIVE\control\ahk\macros\rozvrh m2 - ctrlT, f7 f8 f9 f10.ahk
- ;#include gr4viton_capslock.ahk
- ;#include backspace_altup.ahk
- ;#include IntelliSense.ahk
- starMsg(){
- MsgBox U have started gr4viton's AHK layout, the most usefull layout.. for me! %A_ScriptDir%
- return
- }
- ;#include comboAll.ahk
- ;+#!c::comboAll()
- #!+x::Run AutoHotkey.exe %A_ScriptDir%\comboAll.ahk
- ; always on top
- !F2:: Winset, AlwaysOnTop, Toggle, A
- #space:: Winset, AlwaysOnTop, Toggle, A
- ;Hotstrings
- ;;names
- :*:op]:: ; This hotstring replaces "]d" with the current date and time via the commands below.
- FormatTime, CurrentDateTime,, yyyy_MM_dd
- SendInput %CurrentDateTime%
- return
- :*:iop]::
- FormatTime, CurrentDateTime,, dd-MM-yyyy
- SendInput %CurrentDateTime%
- return
- :*:oop]::
- FormatTime, CurrentDateTime,, yyyy-MM-dd
- i = 0
- SendInput {F2}
- sleep 80
- loop 9{
- i := i+1
- char := SubStr(CurrentDateTime, i, 1)
- SendInput %char%
- sleep 40
- SendInput {LControl Down}{NumpadEnter}{LControl Up}
- sleep 40
- }
- char := SubStr(CurrentDateTime, 10, 1)
- SendInput %char%
- return
- ;; Form strings
- :*:uu]::7723354782
- :*:mo]::776753779
- :*:moo]::730989042
- :*:lm]::lordmutty
- :*:lmm]::[email protected]
- :*:kkkk]::danieldavidek
- :*:kk]::[email protected]
- :*:kkk]::xdavid10
- :*:kll]::[email protected]
- :*:kl[::910128
- :*:l;'::9101286062
- !+L::
- Send ^a{delete}
- Send 910128
- Send {tab}
- send Davidek
- Send {tab}
- return
- ;celistvé skupiny cifer seřaď pozpátku
- ;6173 339 218
- ^!+#k:: Send ^V{Enter}
- ;; parsing functions
- ;____________________________________________________
- ;change_slashes(str)
- ; changes the slashes of the string to {sc35}
- slashEm(str)
- {
- ;{sc35}
- return str
- }
- ; mapa dve�e brno
- ; :*:mpmp::slashEm(https://goo.gl/va1HRk)
- :*:mpmp::http:{sc35}{sc35}goo.gl{sc35}maps{sc35}va1HRk
- ;; Signal strings
- ;:*:oo[::[] `
- ;:*:ooo[::[] `
- ;^+z::Send [] `
- ;^+x::Send [x] `
- ;; Formating strings
- :*:op[::%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- :*:opp[::____________________________________________________
- :*:ppp1::
- (
- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>!!!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- )
- :*:ppp2::
- (
- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>???<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- )
- :*:ppp3::
- (
- ><}}}}}*> ><((*> <*))>< ><((*> <*))>< ><((*> <*))>< ><((*> <*))>< <*}}}}}><
- )
- :*R0:ppp4::
- (
- %%%%%%%%%%%%%%%%%%%%%> <%%%%%%%%%%%%%%%%%%%%%{left 23}
- )
- :*R0:ppp5::
- (
- _________>
- )
- :*R0:kkk1::
- (
- {sc35}****************
- @brief One line description.
- More thorough description...
- ****************{sc35}
- )
- :*R0:kkk2::
- (
- {sc35}****************************************************************************
- @function `
- @brief `
- @param[in] `
- @param[out] `
- @return `
- ************{sc35}
- )
- return
- CurrentDateTime =
- FormatTime, CurrentDateTime,, yyyy_MM_dd
- return
- a := 10
- :*R0:kkk3::
- (
- {sc35}*********
- @project `
- @filename `
- @author `
- @date `{%a%}
- @brief `
- *********{sc35}
- )
- return
- :*R0:kkk4::
- (
- {sc35}*********
- @project `
- @filename `
- @author `Daniel Davidek <[email protected]>
- @date `{%a%}
- @brief `
- *********{sc35}
- )
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; c#
- :*R0:###1::
- (
- catch (Exception ex)
- MessageBox.Show(ex.Message);
- )
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;matlab
- :*:mmm1::',num2str(),'
- :*:mmm2::
- (
- FI=FI+1; figure(FI); SI=0; SX=3; SY=1;
- )
- :*:mmm3::
- (
- global FI;
- FI =0;
- global SI;
- global SY;
- global SX;
- )
- :*:mmm4::
- (
- SI=SI+1;subplot(SI,SY,SX);
- )
- :*:mmm5::
- (
- SI=SI+1; subplot2(SY,SX,SI);
- imshow(im,[]); title(title_str); axis tight
- )
- ;c#
- :*:nnn1::%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{Enter}{#}region{Enter}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{Enter}{#}endregion{Enter}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- :*:lll1::
- (
- ;[!]alt|[^]ctrl|[+]shift|[#]super
- )
- :*:lll2::
- (
- :%s###gc
- )
- ;;heslo
- ;:*:svn@::h7EJcyY
- ;#z::Run www.autohotkey.com
- ;;;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;; VARIABLES
- ;- PROGRAM DIRECOTRIES
- ASSIGN_prog(a_app, a_progNum, a_path)
- {
- ; make it an array
- prog1 = C:\PROG\
- prog2 = B:\PROG\
- prog3 = E:\PROG\
- progf1 = C:\Program Files (x86)\
- if(a_progNum = "C")
- {
- progDir = %prog1%
- }
- if(a_progNum = "E")
- {
- progDir = %prog3%
- }
- if(a_progNum = "Cf")
- {
- progDir = %progf1%
- }
- if(a_progNum = "Q")
- {
- progDir = %prog2%
- }
- SetEnv, %a_app%, % progDir . a_path
- }
- SET_WIN7_SSD()
- {
- ASSIGN_prog( "foobar", "B", "B:\PROG\audio\foobar2000\foobar2000.exe")
- ASSIGN_prog( "chrome", "Cf", "Google\Chrome\Application\chrome.exe")
- ASSIGN_prog( "opera", "C", "internet\Opera\opera.exe")
- ;ASSIGN_prog( "thunderbird", "B", "internet\Thunderbird\thunderbird.exe")
- ;B:\_ESS\PROG\internet\ThunderbirdPortable\ThunderbirdPortable.exe
- ASSIGN_prog( "jdownloader", "E", "internet\JD2\JDownloader v2.0\JDownloader2.exe")
- ASSIGN_prog( "esmeska", "E", "internet\Esmska\esmska.exe")
- ;ASSIGN_prog( "vim", "B", "office\Vim\vim73\gvim.exe")
- ;SetEnv, vim, "B:\__ESS\PROG\GVimPortable\GVimPortable.exe"
- ASSIGN_prog( "vim", "B", "__ESS\PROG\GVimPortable\GVimPortable.exe")
- }
- ;;legend for standard modifiers couples
- ;Autohotkey = !+^
- ;files & web-pages = #!, #!+
- ;RC files = #+^!
- ;APPS = #!
- ;man = #!^
- ;Directories = #
- ;Autohotkey = !+^
- ;;relod
- !+^x::Reload
- ;!+^sc56::RUN3("gr4viton_latest.ahk","vim","E:\GDRIVE\control\gr4viton_latest\")
- !+^sc56::Run B:\_ESS\PROG\GVimPortable\GVimPortable.exe "E:\GDRIVE\control\gr4viton_latest\gr4viton_latest.ahk"
- ;!+^c::Run E:\PROG\control\AutoHotkey\AutoScriptWriter\AutoScriptWriter.exe
- ; ahk reload - old
- ;!+^r::Reload
- ;??
- ;sc - [] jak zistit? Abych mohl psat ďż˝ velky -> v microsoft keyboard creatoru
- ;!+^e::Run C:\PROG\control\AutoHotkey\Extras\Scripts\gr4viton_latest.ahk
- ;!+^w::Run C:\PROG\control\AutoHotkey\AutoScriptWriter\AutoScriptWriter.exe
- ;D:\BACKUP\app\control\autohotkey\gr4viton_latest.ahk
- ;Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d} ; Opens the "My Computer" folder.
- ;Run ::{645ff040-5081-101b-9f08-00aa002f954e} ; Opens the Recycle Bin.
- #!+z::Run D:\LOG\LOGBOOK\_log\logZuz.vim
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;MIND = #+^
- ;theBrain & webbrain
- #+^q::Run "http://webbrain.com/u/15RD"
- +!#sc56:: Run, E:PROG\dev\googlecl\google.exe docs edit "g_thisMonth"
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; GOOGLE DRIVE
- ;tmpArticle
- !+#^a:: Run %chrome% "https://docs.google.com/spreadsheets/d/1lGTZzCyRxhDS0wgoYiNH75lXLeWtNsVxpHmnljt-Z1Q/edit#gid=0"
- +#sc56:: RUN3("human.vim", "Vim", "E:\GDRIVE\LOG\mind\zzz\")
- #sc56:: RUN3("thisMonth.vim", "Vim", log_dir)
- ^#sc56::KILL("thisMonth.vim", "Vim")
- #z:: RUN3("inbox.vim", "Vim", log_dir)
- ^#z:: KILL("inbox.vim", "Vim")
- #+z:: RUN3("fromStart.vim", "Vim", log_dir)
- ^#+z:: KILL("fromStart.vim", "Vim")
- #+x:: RUN3("todo.vim", "Vim", log_dir)
- RUN2(a_file, a_ahkClass){
- SplitPath, a_file, OutFileName, OutDir
- ;msgbox %a_file%, %OutFileName%, %OutDir%
- RUN3(%OutFileName%, %a_ahkClass%, %OutDir%)
- }
- RUN3(a_title, a_ahkClass, a_path){
- IfWinExist, ahk_class %a_ahkClass%
- {
- IfWinExist, %a_title%
- {
- WinActivate
- return 0
- }
- }
- ;msgbox %a_path%%a_title%
- Run, % a_path . a_title
- return 1
- }
- KILL(a_title, a_ahkClass){
- IfWinExist, ahk_class %a_ahkClass%
- {
- IfWinExist, %a_title%
- {
- WinClose
- return 0
- }
- }
- return 1
- }
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;^sc56::
- ;Run, cmd.exe
- ;IfExist, Administrator
- ;WinActivate, Administrator
- ;Send, E:PROG\dev\googlecl\google.exe %clipboard% {Enter}
- ;Sleep, 5000
- ;WinClose, Administrator
- ;return
- ;evernote - old
- ;;https://www.evernote.com/Login.action?targetUrl=%2FHome.action#st=p&x=katka&n=ca7f9f75-7c07-4495-9339-862054e7e01e
- ;; criticalendar
- ;#+^q::Run evernote:///view/4759899/s44/a5e5804f-84a6-40e4-871d-d3ea3523dd27/a5e5804f-84a6-40e4-871d-d3ea3523dd27/
- ;; doing list
- ;!#+^w::Run evernote:///view/4759899/s44/1625f2ee-08e2-4d02-935a-4d5c155f2e28/1625f2ee-08e2-4d02-935a-4d5c155f2e28/
- ;;actual month
- #+!q::Run evernote:///view/4759899/s44/5db33d2d-5ca1-483a-aee4-8ba8375bc342/5db33d2d-5ca1-483a-aee4-8ba8375bc342/
- ; #+^a -add note
- ; #+^s - search note
- ;[] evernote https://www.evernote.com/Home.action#st=p
- ; odorik
- !+#o::
- Run https://www.odorik.cz/ucet/rychle_kontakty.html
- Run https://www.odorik.cz/ucet/nastaveni_volani.html#cb_prozv
- Run https://www.odorik.cz/ucet/platby.html
- return
- ;;;files & web-pages = #!, #!+
- ;; watch
- ; serial
- broke = "http://www.tubeplus.me/player/2153644/2_Broke_Girls/season_4/episode_4/And_the_Old_Bike_Yarn/"
- simps = "http://www.tubeplus.me/player/2154602/The_Simpsons/season_26/episode_8/Covercraft/?huid=yk31wcbmryzd"
- suits = "http://www.teevee.sk/serialy/suits-1/2-omyly-errors-and-omissions#1492"
- ;:*:__ser::http://www.tubeplus.me/player/2152741/2_Broke_Girls/season_4/episode_2/And_The_DJ_Face/
- url = a
- #!+^p::
- run % "chrome.exe" ( winExist("ahk_class Chrome_WidgetWin_1") ? " --new-window " : " " ) url
- return
- ;;educ - web
- ;rozvrh
- ;;#!r::Run %chrome% "D:\EDUC\_INFO\rozvrh\m1\Student.mht"
- #!r::Run D:\EDUC\_INFO\rozvrh\m4\TT0.png
- #!i::Run D:\DEV\PYTHON\2014_08_28 - pyInventory
- ;index
- #!e::Run %chrome% "https://www.vutbr.cz/studis/student.phtml?sn=el_index"
- ;terminy
- #!+r::Run %chrome% "https://www.vutbr.cz/studis/student.phtml?sn=terminy_zk"
- ;elearning
- #!+e::Run %chrome% "https://www.vutbr.cz/elearning/"
- ;git
- #+!g::Run "https://github.com/gr4viton"
- ;;google - web
- ;kontakty
- #!,::Run %chrome% "https://www.google.com/contacts/"
- ; https://mail.google.com/mail/u/0/h/grse9jhujerg/?&v=cl&pnl=a
- ;calendar
- #!c::Run %chrome% "https://www.google.com/calendar/render?tab=wc"
- ;mapy
- #!m::Run %chrome% "https://maps.google.com/maps?q=brno"
- ;translate
- #!x::Run %chrome% "http://translate.google.com/#submit"
- #!+j::Run %chrome% "goo.gl/D9bnK3"
- ;drive
- ;#!+z::Run %chrome% "https://drive.google.com/"
- ;+#!z::Run %chrome% "https://drive.google.com/#starred"
- ;;RC files = #+^!
- ;bash CYGWIN
- ;%editor% E:\PROG\dev\cygwin\home\graviton\.bashrc
- ;#+^!b::Run E:\PROG\dev\cygwin\home\graviton\.bashrc
- ;APPS = #!
- ;audio - video
- ;#!+a::Run C:\PROG\audio\MediaMonkey\MediaMonkey.exe
- #!a::Run %foobar%
- ;#!o::Run C:\PROG\audio\Audacity\audacity.exe
- #!v::Run B:\PROG\video\vlc\vlc.exe
- ;disc
- #!sc56::Run B:\PROG\disc\totalcmd\TOTALCMD.EXE
- ;net
- #!t::Run B:\_ESS\PROG\internet\ThunderbirdPortable\ThunderbirdPortable.exe
- ;%thunderbird%
- #!f::Run firefox.exe
- #!!::Run %chrome%
- #!j::Run %jdownloader%
- ;edit
- ;#!g::Run %vim%
- #!g::Run B:\_ESS\PROG\GVimPortable\GVimPortable.exe
- #+c::Run B:\PROG\office\vim\vim73\runvim.vbs
- ;gamesy
- #!h::Run D:\GAMESY\SMALL\golly-2.4-win\Golly.exe
- ;terminals
- +#!p::Run D:\DATA\dev\terminaly\putty.exe
- #!p::Run D:\DATA\dev\terminaly\Terminal 1.9b.exe
- ;;terminal & win apps
- ;googlecl
- !`::Run E:\PROG\dev\googlecl\google.exe
- ;cygwin - terminal; setup
- #`::Run E:\PROG\dev\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
- ;#+`::Run E:\PROG\dev\cygwin64\cygwin.bat
- #+`::Run D:\DATA\dev\cygwin\setup
- ;windows - terminal; taskmanager
- +!`::Run cmd
- #!`::Run taskmgr
- ;#!;::Run taskmgr
- ; autoruns
- #!break::Run D:\DATA\win\Autoruns\autoruns.exe
- ; text for teh windows
- +#v::Run C:\PROG\control\AutoHotkey\Extras\Scripts\tftw.exe
- ;;not so widely used
- #!d::Run B:\PROG\office\Lingea%A_Space%2002\lexicon.exe
- #!s::Run %esmeska%
- #!u::Run E:\GDRIVE\LOG\mind\ucet.ods
- ;D:\ELE\circuit\circuit.jar
- ;#!x::Run C:\PROG\life\XMind\xmind.exe
- #!y::Run E:\PROG\ele\ResistorColorCoder\Res_Color_Code.exe
- #!k::Run B:\PROG\educ\Calcute\calcute.exe
- +#!k::Run calc.exe
- ;;bench
- #!Insert::Run D:\DATA\bench\hw64_393\HWiNFO64.exe
- ;#!break::Run E:\PROG\bench\CPU-Z\cpuz.exe
- ;#!b::Run E:\PROG\mind\TheBrain\TheBrain.exe
- ;#!+^sc56::Run %web_new% "http://webbrain.com/brainpage/brain/398005B6-6FA3-D2AD-8AC7-0CA3F9990DA9"
- ;full_path = D:\ELE\circuit\circuit.jar
- ;Run, cmd /K cd /D "%full_path%"
- ;Run, cmd java %full_path%
- ;Return
- ;;man = #!^
- ;http://www.opera.com/docs/switches/
- ;#!m::Run D:\EDUC\_INFO\mapy\t_12.jpg
- ;office
- ;#!^v::Run D:\READ\MAN\office\VIM\vim.txt
- #!^g::Run B:\_ESS\PIC\vim\url.png
- #!^v::Run E:\GDRIVE\READ\MAN\man vim.vim
- #!^z::Run D:\READ\MAN\office\VIM\vim-cheat-sheet.gif ;vi-vim-tutorial-1.gif
- #!^l::Run D:\READ\MAN\office\LATEX\howto\latexsheet-a4.pdf
- #!^k::Run D:\READ\MAN\office\LATEX\howto\lshort2e.pdf
- ;#!^g::Run D:\READ\git_cmds.txt
- #!^j::Run D:\READ\MAN\office\LATEX\OLD\TUT\bkez.tex
- ;#!j::Run D:\EDUC\_MAN\LATEX\math\siunitx.pdf
- ;#!^s::Run D:\READ\ele\KnihyElektro\THIS_Power Supply Cookbook.pdf
- ;Directories = #
- !#^+s::Run Explorer C:\ProgramData\Microsoft\Windows\Start Menu\Programs
- ; C:\Users\spare\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
- ; %A_AppData%\Roaming\Microsoft\Windows\Start Menu\Programs
- +#!break::Run Explorer C:\ProgramData\Microsoft\Windows\Start Menu\Programs
- ^#!break::Run %SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
- +#2::Run %chrome% http://goo.gl/3lGYJX
- ;https://docs.google.com/spreadsheet/ccc?key=0Aq-xEfRBVw0EdENCZFA5ZS1YUFNXS19PN2pMVE9IY0E&usp=drive_web#gid=0
- #2::Run Explorer E:\GDRIVE\PROJECTS\m2\RobotDalek_MRBT
- ;#3::Run Explorer E:\GDRIVE\EDUC\m2\Am2_MAPV
- +#3::Run %chrome% https://docs.google.com/spreadsheet/ccc?key=0Aq-xEfRBVw0EdG5LcWx2TFVlVGFRT0JCb3ZPWnFXN1E#gid=0
- #4::Run Explorer E:\GDRIVE\EDUC\m2\Em2_MEMT
- #w::Run Explorer E:\GDRIVE\EDUC\m4
- +#w::Run %chrome% https://drive.google.com/#folders/0B6-xEfRBVw0EYVV5UWtEMVVSNEE
- #+e::Run Explorer D:\LOG\EVENTS
- #q::Run Explorer D:\LOG\LOGBOOK\2015
- #!l::Run Explorer D:\LOG\LOGBOOK\2015
- ;#sc56::Run Explorer D:\CREATION\ELE\EAGLE
- ;#sc56::Run Explorer D:\EDUC\bak_bakalarka\
- ;#b::Run Explorer D:\BACKUP\
- #b::RUN3("dip_main.vim","Vim","B:\__DIP\text\_main_text\LOG\")
- +#b::RUN3("logDip.vim","Vim","B:\__DIP\dev\_main_dev\_LOG\")
- ;#b::Run B:\__DIP\dip_main.vim
- #!b::Run Explorer B:\__DIP\
- #!w::Run Explorer B:\__DIP\text\_main_text\
- ;#!b::Run D:\EDUC\bak_bakalarka\texnic\bakalarka.tcp
- ;#+!b::Run D:\EDUC\bak_bakalarka\texnic\bakalarka.pdf
- #!+w::Run B:\__DIP\text\_main_text\sablona.tex
- #!+b::Run B:\__DIP\text\_main_text\sablona.tex
- #!+^b::Run B:\__DIP\text\_MAN\serva MX-64AR DYNAMIXEL\ControlTable_RX-64_manual.png
- ^+!#d::Run Explorer E:\GDRIVE\CREATION\ELE\DATASHEETS\DATASHEETS_shared
- #a::Run Explorer D:\DATA\
- #r::Run Explorer D:\READ
- ;#s::Run Explorer D:\SOUND\
- #s::Run Explorer D:\SKILL\AUDIO\SONGBOOK
- #v::Run Explorer.exe D:\VIEW\
- #f::Run Explorer D:\WATCH\FILM\
- #x::Run Explorer D:\DN\
- #g::Run Explorer D:\GAMESY
- #3::Run Explorer E:\GDRIVE\3D_MODELS
- #c::Run Explorer D:\CREATION
- #!z::Run Explorer E:\GDRIVE
- #h::Run Explorer C:\users\gr4viton
- #o::Run Explorer C:\PROG\
- #!o::Run, control Microsoft.ProgramsAndFeatures
- path := "D:`\MIND\space"
- ;path := D:\MIND\space
- ;#q::Run Explorer -dir %path%
- ;#q::Run Explorer D:\MIND\space
- ;#q::Run %SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
- ;mediamonkey
- ;^#\::WinResore 'MediaMonkey'
- ;Keymapping
- ;nefunguje alt na hp 620 od baryb
- ;;alt f4
- ;~rctrl::lalt
- ;~#tab::!tab
- #F4::Send {ALTDOWN}{F4}{ALTUP}
- ;;altab
- ;#TAB::Send {ALTDOWN}{TAB}{ALTUP}
- ;#TAB::
- ; Send {ALTDOWN}{TAB}
- ; KeyWait, {TAB} ; wait until the button is released
- ; Send, {ALTUP}
- ;Return
- ;;;;;;ZJISTI jak s tim tabenm asbys mohl altabovat = supertabovat
- ;;;;;;Vyt�skni BRR1 str 49�
- ;APPSKEY::Send {ALTUP}
- ;!p::Send {ALTUP}
- ;capslock to ctrl
- ;Capslock::Ctrl
- ;+Capslock::Capslock
- ;this is the key under esc
- ;sc29::
- ; Send {Escape Down}
- ; KeyWait, Capslock ; wait until the Capslock button is released
- ; Gui, 93:Cancel
- ; Send, {Escape Up}
- ;Return
- #+D::
- Send, {LWINDOWN}y{LWINUP}{Escape}{SHIFTDOWN}01{SHIFTUP}
- Return
- ;How can a prefix key be made to perform its native function rather than doing nothing?
- ;Consider the following example, which makes Numpad0 into a prefix key:
- ; Numpad0 & Numpad1::MsgBox, You pressed Numpad1 while holding down Numpad0.
- ;Now, to make Numpad0 send a real Numpad0 keystroke whenever it wasn't used to launch a hotkey such as the above, add the following hotkey:
- ; $Numpad0::Send, {Numpad0}
- ;The $ prefix is needed to prevent a warning dialog about an infinite loop (since the hotkey "sends itself"). In addition, the above action occurs at the time the key is released.
- #!n::
- IfWinExist Untitled - Notepad
- WinActivate
- else
- Run Notepad
- return
- SetTitleMatchMode RegEx
- return
- ; Stuff to do when Windows Explorer is open
- ;
- #IfWinActive ahk_class ExploreWClass|CabinetWClass
- ; create new text file
- ;
- #!+t::Send !fwt
- ; open 'cmd' in the current directory
- ;
- #!+c::
- OpenCmdInCurrent()
- return
- #IfWinActive
- ; Opens the command shell 'cmd' in the directory browsed in Explorer.
- ; Note: expecting to be run when the active window is Explorer.
- ;
- OpenCmdInCurrent()
- {
- ; This is required to get the full path of the file from the address bar
- WinGetText, full_path, A
- ; Split on newline (`n)
- StringSplit, word_array, full_path, `n
- ; Take the first element from the array
- full_path = %word_array1%
- ; strip to bare address
- full_path := RegExReplace(full_path, "^Address: ", "")
- ; Just in case - remove all carriage returns (`r)
- StringReplace, full_path, full_path, `r, , all
- IfInString full_path, \
- {
- Run, cmd /K cd /D "%full_path%"
- }
- else
- {
- Run, cmd /K cd /D "C:\ "
- }
- }
- ; Opens the windows shell (cmd.exe) in the designated destination
- ; if you hover over a text or a textbox or a url line it gets the path from it
- ; if you have a path in a clipboard it gets it
- ; path:
- ; - FTP: connects to it via preselected app (putty / tcmd / ..)
- ; - URL: opens it via preselected app (opera / firefox / chrome / "iexplorer")
- ; - LOCAL DIR: opens directory it via preselected app (explorer / tcmd / ..)
- OpenCmdInCursor()
- {
- }
- ; Note: From now on whenever you run AutoHotkey directly, this script
- ; will be loaded. So feel free to customize it to suit your needs.
- ; Please read the QUICK-START TUTORIAL near the top of the help file.
- ; It explains how to perform common automation tasks such as sending
- ; keystrokes and mouse clicks. It also explains more about hotkeys.
- ;dyz neni okno gvimu tak
- ;caps+h back caps+j enter
- ; caps+ALT+hjkl = arrows
- ;open flash key
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;; Windows fitting
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- #!^+n::
- Run, notepad.exe
- WinWait, Untitled - Notepad, , 3
- if ErrorLevel
- {
- MsgBox, WinWait timed out.
- return
- }
- else
- WinMinimize ; Minimize the window found by WinWait.
- WinMove, 0, 0
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;; CAPSLOCKing -> this works without modifiers
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- Capslock & F1::
- SetCapsLockState, AlwaysOff
- MsgBox SetCapsLockState, AlwaysOff
- return
- Capslock & F2::
- SetCapsLockState, AlwaysOn
- MsgBox SetCapsLockState, AlwaysOn
- return
- ;vim
- ;hjkl
- Capslock & h::Send {Left}
- Capslock & j::Send {Down}
- Capslock & k::Send {Up}
- Capslock & l::Send {Right}
- ;emacs
- ;ctrl-ae jh=mn
- Capslock & n::Send {BS}
- Capslock & m::Send {Enter}
- ;Capslock & e::Send {END}
- ;Capslock & a::Send {HOME}
- ;mine
- ; vim-conf
- ^#!+g::Send {ESC}:set guifont=Consolas:h9{Enter}
- ;ESC
- Capslock & q::Send {ESC}
- ;^XCV
- Capslock & 2::
- ;XShift(0)
- Send {Ctrl Down}{x}{Ctrl Up}
- return
- Capslock & 3::
- ;XShift(0)
- Send {Ctrl Down}{c}{Ctrl Up}
- return
- Capslock & 4::
- ;XShift(0)
- Send {Ctrl Down}{v}{Ctrl Up}
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;; CAPSLOCKing -> XSHIFT -> not used anymore
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;Capslock & v::
- ;XShift()
- ;return
- ;Capslock & y::
- ;Shifted:=!Shifted
- ;If (shifted)
- ; Send,{Shift Down}
- ;else
- ; Send,{Shift UP}
- ;return
- ;Capslock & z::
- ;Shifted:=!Shifted
- ;If (shifted)
- ; Send,{Shift Down}
- ;else
- ; Send,{Shift UP}
- ;return
- ;Alt & Capslock & e::
- ;Send {Alt}{Up}
- ;MsgBox altup
- ;return
- ;Capslock & SPACE::
- ;XShift(0)
- ;Send {Enter}
- ;return
- ;Capslock & w::
- ;XShift(0)
- ;Send {BS}
- ;return
- ;Capslock & r::
- ;XShift(0)
- ;Send {Delete}
- ;return
- ;;shift triggering function
- ;XShift(a=2){
- ;global
- ;shchange:= (a==Shifted) ? 0:1
- ;If (a == 2){
- ;Shifted:=!Shifted
- ;shchange:=1
- ;}
- ;else{
- ;Shifted:= a
- ;}
- ;If(shchange)
- ;If (Shifted )
- ;Send,{Shift Down}
- ;else
- ;Send,{Shift UP}
- ;}
- ;;*LCtrl::Send {Blind}{LCtrl}
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;; CAPSLOCKing -> this works WITH modifiers - but its blocking hotstrings on those keys
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;CapSend(KEY, KEY2) NO/, KEY3)
- ; Function to trigger different keys when pressed with shift, alowing other modifiers ( shift+arrows)
- ; caps + key = KEY
- ; key = KEY2
- ; NO/ caps + key + alt = KEY3
- ;---------------------------------------------------------------------------
- CapSend2(KEY, KEY2){
- if GetKeyState("Capslock","P") {
- SetKeyDelay -1
- Send {Blind}{%KEY% DownTemp}{Backspace}
- }
- return
- }
- CapSend(KEY, KEY2){
- if GetKeyState("Capslock","P") {
- SetKeyDelay -1
- Send {Blind}{%KEY% DownTemp}
- }
- ;if GetKeyState("Capslock","P") && GetKeyState("alt","P"){
- ;SetKeyDelay -1
- ;Send {Blind}{%KEY3% DownTemp}
- ;}
- ;; not functional on super-arrow moving windows
- ;else if GetKeyState("Super","P") && GetKeyState("Capslock","P")
- ; Send #%KEY2%
- else
- Send {Blind}{%KEY2% DownTemp}
- return
- }
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; first row
- ;*s::CapSend("Left", "s")
- ;*d::CapSend("Down", "d")
- ;*e::CapSend("Up", "e")
- ;*f::CapSend("Right", "f")
- ; second row
- ;*t::CapSend("Tab", "t")
- *space::CapSend("Enter", "space")
- ;*w::CapSend("Backspace", "w")
- ;*r::CapSend("Delete", "r")
- ; third row
- ;*g::CapSend("END", "g")
- ;*a::CapSend("HOME", "a")
- ;*sc56::CapSend("PgUp", "sc56")
- ;*z::CapSend("PgDn", "z")
- ; fourth row
- ;*x::CapSend("^Left", "x")
- ;*c::CapSend("^Right", "c")
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; CAPSLOCKing -> this works WITH modifiers
- ;does not allow easy multiple modificators with capslocked alternative keys
- ;but maybe would not interfere with hot strings -> to try? why bother??
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;;sendshift function
- ;sendshift(key)
- ;{
- ;send +%key%
- ;send % getkeystate("shift","p") ? +%key%: %key%
- ;if getkeystate("shift","p")
- ;send +%key%
- ;else
- ;send %key%
- ;send "%key%"
- ;send "{".%key%."}"
- ;}
- ;;sendmodified function
- ;sendmod(key)
- ;{
- ;if getkeystate("ctrl","p") && getkeystate("shift","p") && getkeystate("alt","p")
- ;send !^+%key%
- ;if getkeystate("ctrl","p") && getkeystate("shift","p")
- ;send ^+%key%
- ;else if getkeystate("shift","p")
- ;send +%key%
- ;else if getkeystate("control","p")
- ;send ^%key%
- ;else if getkeystate("alt","p")
- ;send !%key%
- ;else if getkeystate("super","p")
- ;send #%key%
- ;else
- ;send %key%
- ;send "%key%"
- ;send "{".%key%."}"
- ;}
- ;; first row:
- ;capslock & s::sendmod("{left}")
- ;capslock & d::sendmod("{down}")
- ;capslock & e::sendmod("{up}")
- ;capslock & f::sendmod("{right}")
- ;; second row
- ;;capslock & t::send {tab}
- ;; third row
- ;;capslock & g::sendmod("{end}")
- ;;capslock & a::sendmod("{home}")
- ;;capslock & x::sendmod("{pgdn}")
- ;;capslock & c::sendmod("{pgup}")
- ;; fourth row
- ;;capslock & x::sendmod("^{left}")
- ;;capslock & c::sendmod("^{right}")
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; mouse buttons -> now covered in "KDE Intell move"
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;XButton1::
- ;Send {win down}{LButton down}
- ;msgbox is dn
- ;return
- ;#XButton1::
- ;Send {LWin Down}{LButton down}
- ;MsgBox ah
- ;return
- ;XButton1 Up::Send {Lwin Up}{LButton up}
- ;XButton2::Send {LWin}{RButto down}
- ;XButton2 Up::Send {Super}{RButton up}
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; others
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; ďż˝::Send \
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; joypad
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- Joy1::
- Send {Left down} ; Hold down the left-arrow key.
- KeyWait Joy1 ; Wait for the user to release the joystick button.
- Send {Left up} ; Release the left-arrow key.
- return
- Joy2::
- Send {Right down} ; Hold down the left-arrow key.
- KeyWait Joy2 ; Wait for the user to release the joystick button.
- Send {Right up} ; Release the left-arrow key.
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;tf2
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;DelaySend(Key, Interval=200, SendMethod="Send") {
- ; static KeyStack := []
- ; KeyStack[Key] := IsObject(KeyStack[Key]) ? KeyStack[Key] : {base: {LastTickCount: 0}}
- ; ObjInsert( KeyStack[Key], { Key: Key, Interval: Interval, SendMethod: SendMethod })
- ; Gosub, Label_DelaySend
- ; Return
- ;
- ; Label_DelaySend:
- ; For Key in KeyStack {
- ; if !(MinIndex := KeyStack[Key].MinIndex())
- ; Continue
- ; Span := A_TickCount - KeyStack[Key].LastTickCount
- ; if (Span < KeyStack[Key][MinIndex].Interval) ;loaded too early
- ; SetTimer,, % -1 * (KeyStack[Key][KeyStack[Key].MinIndex()].Interval - Span) ;[v1.1.01+]
- ; else {
- ; SendMethod := KeyStack[Key][MinIndex].SendMethod
- ; SendingKey := KeyStack[Key][MinIndex].Key
- ; if (SendMethod = "SendInput")
- ; SendInput, % SendingKey
- ; Else if (SendMethod = "SendPlay")
- ; SendPlay, % SendingKey
- ; Else if (SendMethod = "SendRaw")
- ; SendRaw, % SendingKey
- ; Else if (SendMethod = "SendEvent")
- ; SendEvent, % SendingKey
- ; Else
- ; Send, % SendingKey;
- ; ObjRemove(KeyStack[Key], MinIndex) ;decrement other elements
- ; if KeyStack[Key].MinIndex() ;if there is a next queue
- ; SetTimer,, % -1 * KeyStack[Key][KeyStack[Key].MinIndex()].Interval ;[v1.1.01+]
- ; KeyStack[Key].base.LastTickCount := A_TickCount
- ; }
- ; }
- ;
- ;}
- ;tf2 wsad not functional
- ;$w::SendInput {7}
- ;w::SendPlay {7}
- ;a::SendPlay {y}
- ;s::SendPlay {u}
- ;d::SendPlay {i}
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; printing void month
- ; WDay - monday=2
- ; YWeek
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;Function LDOM()
- ; Derives & Returns the Last Day Of Month
- ; Examples:
- ; TotalDays := LDOM() ; uses System date
- ; TotalDays := LDOM("20040219") ; returns 29 as 2004 is a leap year
- LDOM(TimeStr="")
- {
- If TimeStr=
- TimeStr:=A_Now
- StringLeft,Date,TimeStr,6
- Day = 28
- Date = %Date%%Day%
- FormatTime,cMonth,%Date%,M
- Loop,3
- {
- Date+=1,days
- FormatTime,tMonth,%Date%,M
- if tMonth != %cMonth%
- break
- else
- Day+=1
- }
- Return Day
- }
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;printDayTitle(
- ; Function to print day title
- ;---------------------------------------------------------------------------
- printDayTitle(yyyy,MM,dd){
- yyyyMMdd = %yyyy%%MM%%dd%
- ; MsgBox {%yyyyMMdd%}
- FormatTime, tim, %yyyyMMdd%, '#>'dd'd_'ddd'<'
- FormatTime, wday, %yyyyMMdd%, WDay
- if wday = 2
- str = <<<<<<<<<<<<<<<< ; monday
- else
- str = `%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%
- endline = `%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`n
- tim = %tim%%str%%endline%
- ; MsgBox {%tim%}
- return tim
- }
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;printVoidMonth(
- ; Function to print void month
- ; add is a parameter for printing next months
- ;---------------------------------------------------------------------------
- printVoidMonth(add=0){
- ; current date
- FormatTime, yyyy, , yyyy
- FormatTime, MM, , MM
- dd = 1
- MM += add
- if MM = 13 ; only for plus one in December
- {
- MM = 01
- yyyy+=1
- }
- if(StrLen(MM) = 1){
- MM = 0%MM%
- }
- if(StrLen(dd) = 1){
- dd = 0%dd%
- }
- ; msgbox % yyyy . ":" . MM . ":" . dd
- ddMax := LDOM( %yyyy%%MM%%dd% )
- tim = thisMonth
- tim = %tim%`n%yyyy%_%MM%`n`n
- Loop %ddMax%
- {
- ddStr := printDayTitle(yyyy,MM,dd)
- tim = %tim%%ddStr%h`n
- ; tim = %tim%%ddStr%h`n[] %MM%0 kliku! jinak seš máslo`n
- ; MsgBox %ddStr%,%dd%
- dd++
- Sleep, 10
- ; return
- }
- MsgBox %tim%
- return %tim%
- }
- !#.::
- printVoidMonth()
- return
- ;%%%
- !^p::
- str := printVoidMonth()
- clipboard = %str%
- return
- !+^p::
- str := printVoidMonth(1)
- clipboard = %str%
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; BACKSPACE AS UP-DIR
- ;#IfWinActive ahk_class CabinetWClass
- ; ^l::Send {F4}
- ; Backspace::
- ;;msgbox ha
- ;SendInput {Alt Down}{Up}{Alt Up}
- ;return
- ;#IfWinActive
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; just sandbox
- ^#F6::
- ;app = opera
- ;SetEnv, %app%, C:\%app%
- Run %chrome%
- return
- !#^.::
- ;Okay, now that you've got all that, here is a practical application. We will force the value of the text string to be a variable. Since we've actually defined what "alert" is, then the gosub will call that definition. Pop this into a script and run it:
- eval := "opera1"
- gosub % eval
- return
- opera1:
- msgbox %eval%
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; MOUSE
- ; HAMA Roma
- ; side buttons
- ; front = XButton2
- ; back = XButton1
- ;XButton1:: Msgbox ahoj
- ; upper
- ; middle = MButton
- ; left = RButton
- ; right LButton
- ; wheel
- ; wheel left = WheelLeft
- ; wheel up = WheelRight
- ; wheel up = WheelUp
- ; wheel down = WheelDown
- ; find out how much it scrolled - typically by 1
- ;~WheelDown::ToolTip %A_EventInfo%
- ;; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; tabing
- ; XButton2::
- ; If (Toggler := !Toggler )
- ; {
- ; ToolTip, RButton Down
- ; Send, {RButton Down}
- ; Return
- ; }
- ; ToolTip, RButton Up
- ; Send {RButton Up}
- ; Send {Alt up}{Shift up}
- ; Return
- ;XButton2 & WheelUp:: Send {Alt down}{Tab}
- ;XButton2 & WheelDown:: Send {Alt down}{Shift down}{Tab}
- ;XButton2 & MButton::AltTabMenu
- ;XButton1 & LButton::AltTabMenu
- XButton1 & LButton::AltTabMenu
- WheelDown::AltTab
- WheelUp::ShiftAltTab
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; scrolling in presentation - left right
- ;XButton2 & WheelLeft:: Send {Left}
- ;XButton2 & WheelRight:: Send {Right}
- XButton2 & WheelUp:: Send {Left}
- XButton2 & WheelDown:: Send {Right}
- ;MButton & WheelLeft:: Send {Left}
- ;MButton & WheelRight:: Send {Right}
- ;MButton & RButton:: Send {Left}
- ;MButton & LButton:: Send {Right}
- ;; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; scrolling horizontal
- ;~LControl & WheelUp:: ; Scroll left.
- WheelLeft::
- ControlGetFocus, fcontrol, A
- Loop 2 ; <-- Increase this value to scroll faster.
- SendMessage, 0x114, 0, 0, %fcontrol%, A ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINELEFT.
- return
- ;~LControl & WheelDown:: ; Scroll right.
- WheelRight::
- ControlGetFocus, fcontrol, A
- Loop 2 ; <-- Increase this value to scroll faster.
- SendMessage, 0x114, 1, 0, %fcontrol%, A ; 0x114 is WM_HSCROLL and the 1 after it is SB_LINERIGHT.
- return
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- add_(){
- send {F2}^{Home}{right 4}_{Enter}
- }
- add_2(){
- send {F2}^{Home}_{Enter}
- }
- #!^w::add_()
- +#!^w::add_2()
- ; tilde for normal function also
- ~^b::UNIQ_CODE_WRITING()
- return
- UNIQ_CODE_WRITING(){
- ; will have switch
- ; will analyze win title for name of IDE
- ; will rewrite it to have the binding keys stored in separate array - associative for the best
- ; if WinExist("ahk_class " . "wxWindowClassNR") and WinActive("ahk_class " . "wxWindowClassNR")
- WinGetActiveTitle, act_tit
- tit = Code::Blocks
- key = ^{F11}
- regex := ".*" . tit . ".*"
- if RegExMatch(act_tit,regex)
- {Send %key%
- }
- }
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; default keystrokes in programs
- ; CODE BLOCKS
- ; build ^F11
- ; goto declaration ^+.
- ; goto implementation ^.
- ; find references !.
- ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- ; temporary
- ; 2014_04_19 - copying to dictionary
- WTF()
- {
- Send {control down}{c}{control up}{alt down}{tab}{alt up}{control down}{v}{control up}{alt down}{tab}{alt up}
- }
- MATLAB_OCR1()
- {
- Send ^+{tab}F_OCR_DEBUG{enter}^{tab}
- }
- MATLAB_OCR2()
- {
- Send ^+{tab}F_learnClassifiee{enter}^{tab}
- }
- pythoneer()
- {
- ;Send START "" "d:\DEV\PYTHON\scripts\2014_06_17 - generate all pins\a.py"
- ;Run %comspec% /k, python.exe "d:\DEV\/PYTHON\scripts\2014_06_17 - generate all pins\a.py"
- ;Run "c:\bin\python27\python e:/copytimeinbuffer.py"
- ;Run "C:\MinGW\Python33\python.exe" d:\a.py
- Run "C:\MinGW\Python33\python.exe" "d:\DEV\PYTHON\scripts\2014_06_17 - generate all pins\a.py"
- ;Send !{Space}ep
- }
- ^!#a::pythoneer()
- ; DIPLOMKA - latex
- :*:jjch::\chapter{}
- :*:jjse::\section{}
- :*:jjsse::\subsection{}
- :*:jjssse::\subsubsection{}
- :*:jjpar::\paragraph{}
- :*:nu1::Install-Package NuGetPackageFolderOverride
- :*R0:nu2::
- (
- Install-NuGetPackageFolderOverride {sc28}..{sc35}_packages{sc35}{sc28}
- )
- :*R0:scsc1::
- (
- sc00 {sc00}{sc01}{sc02}{sc03}{sc04}
- sc05 {sc05}{sc06}{sc07}{sc08}{sc09}
- sc10 {sc10}{sc11}{sc12}{sc13}{sc14}
- sc15 {sc15}{sc16}{sc17}{sc18}{sc19}
- sc20 {sc20}{sc21}{sc22}{sc23}{sc24}
- sc25 {sc25}{sc26}{sc27}{sc28}{sc29}
- sc30 {sc30}{sc31}{sc32}{sc33}{sc34}
- sc35 {sc35}{sc36}{sc37}{sc48}{sc39}
- sc40 {sc40}{sc41}{sc42}{sc43}{sc44}
- sc45 {sc45}{sc46}{sc47}{sc48}{sc49}
- jedna z nich zap�n� aj numlock.. dal�� je tam n�jak� alt
- )
- :*R0:scsc2::
- (
- {sc43}
- )
- ; sc = fn+ = what
- ;57435 = down = play
- ;57413 = insert = numlock
- ;57423 = end
- ;57425 = PgDn
- ;57417 = PgUp
- ;57415 = Home
- ;70 = delete = scroll lock
- ;57399 = notfn+PrtSc
- ;574 =
- ;numlock = fn+ key = blue effect with numlock - without numlock
- ; 82 = m = 0 - insert
- ; 51 = , = . - ,
- ; 83 = . = delete - .
- ; 79 = j = j - nothing
- ; 90 = k =
- ; win7 registry folder
- ;B:\__BACKUP_win7 - 2015_01_25\Windows\System32\config
- ; \winnt\profiles\username
- :*:@@rebel::czech rebel2: goo.gl{sc35}Af9IPw
- ;#+^!b::Run D:\GAMESY\SMALL\kbang\kbang-client.exe
- #+n::
- {
- Send {home}{Shift down}{end}{shift up}^C
- sleep 200
- Send !{Tab}
- sleep 100
- send ^V
- sleep 100
- Send !{Tab}
- sleep 100
- send {down}
- }
- ;#!+s::
- ;{
- ;;Send ^c
- ;;sleep 100
- ;send <s><{sc35}s>{space}
- ;send {left 5}
- ;return
- ;}
- #!+a::
- {
- send {home}
- sleep 100
- send {shift down}{end}{shift up}
- sleep 100
- Send ^c
- sleep 100
- send <k>^v
- sleep 100
- send <{sc35}k>
- return
- }
- #!+f::
- {
- ;Send ^c
- ;sleep 100
- send <f><{sc35}f>
- send {left 4}
- return
- }
- #!+d::
- {
- send {down 1}{F2}
- sleep 20
- send {home}6;{left}
- return
- }
- #!+s::
- {
- send {enter}
- sleep 20
- send {down 1}{F2}
- sleep 20
- send {home}6;{left}
- return
- }
- ;j::SendInput {Left}
- ;k::SendEvent {Down}
- ;l::SendInput {Right}
- ;i::SendInput {Up}
- ;u::SendInput {Right Control}
Advertisement
Add Comment
Please, Sign In to add comment