gr4viton

gr4ahk laptop

Oct 2nd, 2015
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.43 KB | None | 0 0
  1. ;/*********
  2. ;@project gr4viton AHK script
  3. ;@filename gr4viton_latest
  4. ;@author gr4viton
  5. ;@date since 2011
  6. ;@brief This scirpt is the best script in the world.. for me!
  7. ;*********/
  8.  
  9. SET_WIN7_SSD()
  10. starMsg()
  11. sleep 10
  12.  
  13. ;; default programs
  14. web := opera
  15. web_new := web . " -newwindow"
  16. txteditor := vim
  17. ;; dirs
  18. log_dir = E:\GDRIVE\LOG\mind\
  19.  
  20.  
  21. ;ctrl ^
  22. ;super #
  23. ;alt !
  24. ;shift +
  25. ;$exp to let it send itselft without loop
  26. ;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
  27.  
  28. SetCapsLockState, AlwaysOff
  29.  
  30.  
  31. ;;; to set the default script.. run the ah with parameters
  32. ;;; ah.exe->options-> [ah.exe "script.ahk"]
  33.  
  34. ;#define obsah(x) ((3.14)*(x)*(x))
  35.  
  36. ;main {
  37. ; int r = 10;
  38. ; int S = obsah(r);
  39. ; int S = ((3.14)*(r)*(r));
  40. ;}
  41.  
  42.  
  43.  
  44. ;incl\ude
  45. dir_conf := "D:\BACKUP\app\control\autohotkey"
  46. ;dir_extras := "C:`\PROG`\control`\AutoHotkey`\Extras`\Scripts"
  47. ;dir_extras := "C:\PROG\control\AutoHotkey\Extras\Scripts"
  48. ;dir_extras = C:\PROG\control\AutoHotkey\Extras\Scripts
  49. ;dir_extras := "C:%\PROG%\control%\AutoHotkey%\Extras%\Scripts"
  50. aa := "asdasdas"
  51. ;conf = %dir_conf% + KDE_resizing.ahk
  52. ;#include %conf%
  53.  
  54. ;MsgBox "aaa".aa."!!!"
  55. ;#include dir_extras."\KDE_resizing.ahk"
  56. ;#include %A_WorkingDir%KDE_resizing.ahk
  57.  
  58.  
  59. ;#include %ScriptFullPath% "KDE_resizing.ahk"
  60. ;#include C:\PROG\control\AutoHotkey\Extras\Scripts\KDE_resizing.ahk
  61. ;#include C:\PROG\control\AutoHotkey\Extras\Scripts\IntelliSense.ahk
  62.  
  63. ;Run Explorer %A_ScriptDir%
  64.  
  65. #include %A_ScriptDir%
  66. ;#include KDE_resizing.ahk
  67. ;#include %A_ScriptDir%\KDE_resizing.ahk
  68. #include E:\GDRIVE\control\gr4viton_latest\KDE_resizing.ahk
  69. ;#include E:\GDRIVE\control\gr4viton_latest\windowgrid.ahk
  70.  
  71. ;#include E:\GDRIVE\control\ahk\macros\rozvrh m2 - ctrlT, f7 f8 f9 f10.ahk
  72.  
  73. ;#include gr4viton_capslock.ahk
  74. ;#include backspace_altup.ahk
  75.  
  76. ;#include IntelliSense.ahk
  77.  
  78.  
  79. starMsg(){
  80. MsgBox U have started gr4viton's AHK layout, the most usefull layout.. for me! %A_ScriptDir%
  81. return
  82. }
  83.  
  84. ;#include comboAll.ahk
  85. ;+#!c::comboAll()
  86.  
  87. #!+x::Run AutoHotkey.exe %A_ScriptDir%\comboAll.ahk
  88.  
  89.  
  90. ; always on top
  91. !F2:: Winset, AlwaysOnTop, Toggle, A
  92. #space:: Winset, AlwaysOnTop, Toggle, A
  93.  
  94.  
  95.  
  96. ;Hotstrings
  97. ;;names
  98.  
  99. :*:op]:: ; This hotstring replaces "]d" with the current date and time via the commands below.
  100. FormatTime, CurrentDateTime,, yyyy_MM_dd
  101. SendInput %CurrentDateTime%
  102. return
  103.  
  104. :*:iop]::
  105. FormatTime, CurrentDateTime,, dd-MM-yyyy
  106. SendInput %CurrentDateTime%
  107. return
  108.  
  109.  
  110.  
  111. :*:oop]::
  112. FormatTime, CurrentDateTime,, yyyy-MM-dd
  113. i = 0
  114. SendInput {F2}
  115. sleep 80
  116. loop 9{
  117. i := i+1
  118. char := SubStr(CurrentDateTime, i, 1)
  119. SendInput %char%
  120. sleep 40
  121. SendInput {LControl Down}{NumpadEnter}{LControl Up}
  122. sleep 40
  123. }
  124. char := SubStr(CurrentDateTime, 10, 1)
  125. SendInput %char%
  126. return
  127.  
  128. ;; Form strings
  129. :*:uu]::7723354782
  130. :*:mo]::776753779
  131. :*:moo]::730989042
  132.  
  133. :*:lm]::lordmutty
  134. :*:kkkk]::danieldavidek
  135. :*:kkk]::xdavid10
  136.  
  137. :*:kl[::910128
  138. :*:l;'::9101286062
  139. !+L::
  140. Send ^a{delete}
  141. Send 910128
  142. Send {tab}
  143. send Davidek
  144. Send {tab}
  145. return
  146.  
  147. ;celistvé skupiny cifer seřaď pozpátku
  148. ;6173 339 218
  149.  
  150. ^!+#k:: Send ^V{Enter}
  151. ;; parsing functions
  152. ;____________________________________________________
  153. ;change_slashes(str)
  154. ; changes the slashes of the string to {sc35}
  155. slashEm(str)
  156. {
  157. ;{sc35}
  158. return str
  159. }
  160. ; mapa dve�e brno
  161. ; :*:mpmp::slashEm(https://goo.gl/va1HRk)
  162. :*:mpmp::http:{sc35}{sc35}goo.gl{sc35}maps{sc35}va1HRk
  163.  
  164.  
  165. ;; Signal strings
  166. ;:*:oo[::[] `
  167. ;:*:ooo[::[] `
  168. ;^+z::Send [] `
  169. ;^+x::Send [x] `
  170.  
  171. ;; Formating strings
  172.  
  173. :*:op[::%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  174. :*:opp[::____________________________________________________
  175. :*:ppp1::
  176. (
  177. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>!!!<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  178. )
  179. :*:ppp2::
  180. (
  181. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>???<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  182. )
  183.  
  184. :*:ppp3::
  185. (
  186. ><}}}}}*> ><((*> <*))>< ><((*> <*))>< ><((*> <*))>< ><((*> <*))>< <*}}}}}><
  187. )
  188.  
  189. :*R0:ppp4::
  190. (
  191. %%%%%%%%%%%%%%%%%%%%%> <%%%%%%%%%%%%%%%%%%%%%{left 23}
  192. )
  193.  
  194. :*R0:ppp5::
  195. (
  196. _________>
  197. )
  198.  
  199. :*R0:kkk1::
  200. (
  201. {sc35}****************
  202. @brief One line description.
  203. More thorough description...
  204. ****************{sc35}
  205. )
  206.  
  207.  
  208. :*R0:kkk2::
  209. (
  210. {sc35}****************************************************************************
  211. @function `
  212. @brief `
  213. @param[in] `
  214. @param[out] `
  215. @return `
  216. ************{sc35}
  217. )
  218. return
  219.  
  220. CurrentDateTime =
  221. FormatTime, CurrentDateTime,, yyyy_MM_dd
  222. return
  223. a := 10
  224.  
  225. :*R0:kkk3::
  226. (
  227. {sc35}*********
  228. @project `
  229. @filename `
  230. @author `
  231. @date `{%a%}
  232. @brief `
  233. *********{sc35}
  234. )
  235. return
  236.  
  237.  
  238. :*R0:kkk4::
  239. (
  240. {sc35}*********
  241. @project `
  242. @filename `
  243. @author `Daniel Davidek <[email protected]>
  244. @date `{%a%}
  245. @brief `
  246. *********{sc35}
  247. )
  248. return
  249.  
  250. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  251. ; c#
  252.  
  253. :*R0:###1::
  254. (
  255. catch (Exception ex)
  256. MessageBox.Show(ex.Message);
  257. )
  258.  
  259. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  260. ;matlab
  261. :*:mmm1::',num2str(),'
  262. :*:mmm2::
  263. (
  264. FI=FI+1; figure(FI); SI=0; SX=3; SY=1;
  265. )
  266. :*:mmm3::
  267. (
  268. global FI;
  269. FI =0;
  270.  
  271. global SI;
  272. global SY;
  273. global SX;
  274.  
  275. )
  276. :*:mmm4::
  277. (
  278. SI=SI+1;subplot(SI,SY,SX);
  279. )
  280. :*:mmm5::
  281. (
  282. SI=SI+1; subplot2(SY,SX,SI);
  283. imshow(im,[]); title(title_str); axis tight
  284. )
  285.  
  286. ;c#
  287. :*:nnn1::%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{Enter}{#}region{Enter}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{Enter}{#}endregion{Enter}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  288.  
  289.  
  290. :*:lll1::
  291. (
  292. ;[!]alt|[^]ctrl|[+]shift|[#]super
  293. )
  294. :*:lll2::
  295. (
  296. :%s###gc
  297. )
  298.  
  299.  
  300. ;;heslo
  301. ;:*:svn@::h7EJcyY
  302.  
  303.  
  304. ;#z::Run www.autohotkey.com
  305. ;;;;;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  306.  
  307. ;; VARIABLES
  308. ;- PROGRAM DIRECOTRIES
  309.  
  310. ASSIGN_prog(a_app, a_progNum, a_path)
  311. {
  312. ; make it an array
  313. prog1 = C:\PROG\
  314. prog2 = B:\PROG\
  315. prog3 = E:\PROG\
  316. progf1 = C:\Program Files (x86)\
  317.  
  318. if(a_progNum = "C")
  319. {
  320. progDir = %prog1%
  321. }
  322. if(a_progNum = "E")
  323. {
  324. progDir = %prog3%
  325. }
  326. if(a_progNum = "Cf")
  327. {
  328. progDir = %progf1%
  329. }
  330. if(a_progNum = "Q")
  331. {
  332. progDir = %prog2%
  333. }
  334.  
  335. SetEnv, %a_app%, % progDir . a_path
  336. }
  337.  
  338. SET_WIN7_SSD()
  339. {
  340.  
  341. ASSIGN_prog( "foobar", "B", "B:\PROG\audio\foobar2000\foobar2000.exe")
  342.  
  343. ASSIGN_prog( "chrome", "Cf", "Google\Chrome\Application\chrome.exe")
  344. ASSIGN_prog( "opera", "C", "internet\Opera\opera.exe")
  345. ;ASSIGN_prog( "thunderbird", "B", "internet\Thunderbird\thunderbird.exe")
  346. ;B:\_ESS\PROG\internet\ThunderbirdPortable\ThunderbirdPortable.exe
  347. ASSIGN_prog( "jdownloader", "E", "internet\JD2\JDownloader v2.0\JDownloader2.exe")
  348.  
  349. ASSIGN_prog( "esmeska", "E", "internet\Esmska\esmska.exe")
  350.  
  351. ;ASSIGN_prog( "vim", "B", "office\Vim\vim73\gvim.exe")
  352. ;SetEnv, vim, "B:\__ESS\PROG\GVimPortable\GVimPortable.exe"
  353. ASSIGN_prog( "vim", "B", "__ESS\PROG\GVimPortable\GVimPortable.exe")
  354. }
  355.  
  356.  
  357.  
  358.  
  359.  
  360. ;;legend for standard modifiers couples
  361. ;Autohotkey = !+^
  362. ;files & web-pages = #!, #!+
  363. ;RC files = #+^!
  364. ;APPS = #!
  365. ;man = #!^
  366. ;Directories = #
  367.  
  368.  
  369. ;Autohotkey = !+^
  370. ;;relod
  371. !+^x::Reload
  372.  
  373.  
  374. ;!+^sc56::RUN3("gr4viton_latest.ahk","vim","E:\GDRIVE\control\gr4viton_latest\")
  375. !+^sc56::Run B:\_ESS\PROG\GVimPortable\GVimPortable.exe "E:\GDRIVE\control\gr4viton_latest\gr4viton_latest.ahk"
  376. ;!+^c::Run E:\PROG\control\AutoHotkey\AutoScriptWriter\AutoScriptWriter.exe
  377. ; ahk reload - old
  378. ;!+^r::Reload
  379.  
  380.  
  381. ;??
  382. ;sc - [] jak zistit? Abych mohl psat ďż˝ velky -> v microsoft keyboard creatoru
  383. ;!+^e::Run C:\PROG\control\AutoHotkey\Extras\Scripts\gr4viton_latest.ahk
  384. ;!+^w::Run C:\PROG\control\AutoHotkey\AutoScriptWriter\AutoScriptWriter.exe
  385. ;D:\BACKUP\app\control\autohotkey\gr4viton_latest.ahk
  386.  
  387. ;Run ::{20d04fe0-3aea-1069-a2d8-08002b30309d} ; Opens the "My Computer" folder.
  388. ;Run ::{645ff040-5081-101b-9f08-00aa002f954e} ; Opens the Recycle Bin.
  389.  
  390. #!+z::Run D:\LOG\LOGBOOK\_log\logZuz.vim
  391.  
  392. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  393. ;MIND = #+^
  394. ;theBrain & webbrain
  395. #+^q::Run "http://webbrain.com/u/15RD"
  396.  
  397. +!#sc56:: Run, E:PROG\dev\googlecl\google.exe docs edit "g_thisMonth"
  398. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  399. ; GOOGLE DRIVE
  400. ;tmpArticle
  401. !+#^a:: Run %chrome% "https://docs.google.com/spreadsheets/d/1lGTZzCyRxhDS0wgoYiNH75lXLeWtNsVxpHmnljt-Z1Q/edit#gid=0"
  402.  
  403. +#sc56:: RUN3("human.vim", "Vim", "E:\GDRIVE\LOG\mind\zzz\")
  404.  
  405. #sc56:: RUN3("thisMonth.vim", "Vim", log_dir)
  406. ^#sc56::KILL("thisMonth.vim", "Vim")
  407.  
  408. #z:: RUN3("inbox.vim", "Vim", log_dir)
  409. ^#z:: KILL("inbox.vim", "Vim")
  410.  
  411. #+z:: RUN3("fromStart.vim", "Vim", log_dir)
  412. ^#+z:: KILL("fromStart.vim", "Vim")
  413.  
  414. #+x:: RUN3("todo.vim", "Vim", log_dir)
  415.  
  416.  
  417.  
  418. RUN2(a_file, a_ahkClass){
  419. SplitPath, a_file, OutFileName, OutDir
  420. ;msgbox %a_file%, %OutFileName%, %OutDir%
  421. RUN3(%OutFileName%, %a_ahkClass%, %OutDir%)
  422.  
  423. }
  424.  
  425. RUN3(a_title, a_ahkClass, a_path){
  426. IfWinExist, ahk_class %a_ahkClass%
  427. {
  428. IfWinExist, %a_title%
  429. {
  430. WinActivate
  431. return 0
  432. }
  433. }
  434. ;msgbox %a_path%%a_title%
  435. Run, % a_path . a_title
  436. return 1
  437. }
  438.  
  439. KILL(a_title, a_ahkClass){
  440. IfWinExist, ahk_class %a_ahkClass%
  441. {
  442. IfWinExist, %a_title%
  443. {
  444. WinClose
  445. return 0
  446. }
  447. }
  448. return 1
  449. }
  450.  
  451.  
  452. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  453.  
  454. ;^sc56::
  455. ;Run, cmd.exe
  456. ;IfExist, Administrator
  457. ;WinActivate, Administrator
  458. ;Send, E:PROG\dev\googlecl\google.exe %clipboard% {Enter}
  459. ;Sleep, 5000
  460. ;WinClose, Administrator
  461. ;return
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469. ;evernote - old
  470.  
  471. ;;https://www.evernote.com/Login.action?targetUrl=%2FHome.action#st=p&x=katka&n=ca7f9f75-7c07-4495-9339-862054e7e01e
  472.  
  473. ;; criticalendar
  474. ;#+^q::Run evernote:///view/4759899/s44/a5e5804f-84a6-40e4-871d-d3ea3523dd27/a5e5804f-84a6-40e4-871d-d3ea3523dd27/
  475. ;; doing list
  476. ;!#+^w::Run evernote:///view/4759899/s44/1625f2ee-08e2-4d02-935a-4d5c155f2e28/1625f2ee-08e2-4d02-935a-4d5c155f2e28/
  477. ;;actual month
  478. #+!q::Run evernote:///view/4759899/s44/5db33d2d-5ca1-483a-aee4-8ba8375bc342/5db33d2d-5ca1-483a-aee4-8ba8375bc342/
  479. ; #+^a -add note
  480. ; #+^s - search note
  481. ;[] evernote https://www.evernote.com/Home.action#st=p
  482.  
  483. ; odorik
  484. !+#o::
  485. Run https://www.odorik.cz/ucet/rychle_kontakty.html
  486. Run https://www.odorik.cz/ucet/nastaveni_volani.html#cb_prozv
  487. Run https://www.odorik.cz/ucet/platby.html
  488. return
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. ;;;files & web-pages = #!, #!+
  496.  
  497. ;; watch
  498. ; serial
  499. broke = "http://www.tubeplus.me/player/2153644/2_Broke_Girls/season_4/episode_4/And_the_Old_Bike_Yarn/"
  500. simps = "http://www.tubeplus.me/player/2154602/The_Simpsons/season_26/episode_8/Covercraft/?huid=yk31wcbmryzd"
  501.  
  502. suits = "http://www.teevee.sk/serialy/suits-1/2-omyly-errors-and-omissions#1492"
  503.  
  504. ;:*:__ser::http://www.tubeplus.me/player/2152741/2_Broke_Girls/season_4/episode_2/And_The_DJ_Face/
  505.  
  506.  
  507. url = a
  508.  
  509. #!+^p::
  510. run % "chrome.exe" ( winExist("ahk_class Chrome_WidgetWin_1") ? " --new-window " : " " ) url
  511. return
  512.  
  513.  
  514. ;;educ - web
  515. ;rozvrh
  516. ;;#!r::Run %chrome% "D:\EDUC\_INFO\rozvrh\m1\Student.mht"
  517. #!r::Run D:\EDUC\_INFO\rozvrh\m4\TT0.png
  518. #!i::Run D:\DEV\PYTHON\2014_08_28 - pyInventory
  519.  
  520. ;index
  521. #!e::Run %chrome% "https://www.vutbr.cz/studis/student.phtml?sn=el_index"
  522. ;terminy
  523. #!+r::Run %chrome% "https://www.vutbr.cz/studis/student.phtml?sn=terminy_zk"
  524. ;elearning
  525. #!+e::Run %chrome% "https://www.vutbr.cz/elearning/"
  526.  
  527. ;git
  528. #+!g::Run "https://github.com/gr4viton"
  529.  
  530. ;;google - web
  531. ;kontakty
  532. #!,::Run %chrome% "https://www.google.com/contacts/"
  533. ; https://mail.google.com/mail/u/0/h/grse9jhujerg/?&v=cl&pnl=a
  534.  
  535. ;calendar
  536. #!c::Run %chrome% "https://www.google.com/calendar/render?tab=wc"
  537. ;mapy
  538. #!m::Run %chrome% "https://maps.google.com/maps?q=brno"
  539. ;translate
  540. #!x::Run %chrome% "http://translate.google.com/#submit"
  541.  
  542. #!+j::Run %chrome% "goo.gl/D9bnK3"
  543.  
  544.  
  545. ;drive
  546. ;#!+z::Run %chrome% "https://drive.google.com/"
  547. ;+#!z::Run %chrome% "https://drive.google.com/#starred"
  548.  
  549.  
  550.  
  551.  
  552. ;;RC files = #+^!
  553. ;bash CYGWIN
  554.  
  555.  
  556. ;%editor% E:\PROG\dev\cygwin\home\graviton\.bashrc
  557. ;#+^!b::Run E:\PROG\dev\cygwin\home\graviton\.bashrc
  558.  
  559.  
  560.  
  561.  
  562.  
  563. ;APPS = #!
  564. ;audio - video
  565. ;#!+a::Run C:\PROG\audio\MediaMonkey\MediaMonkey.exe
  566. #!a::Run %foobar%
  567. ;#!o::Run C:\PROG\audio\Audacity\audacity.exe
  568.  
  569. #!v::Run B:\PROG\video\vlc\vlc.exe
  570. ;disc
  571. #!sc56::Run B:\PROG\disc\totalcmd\TOTALCMD.EXE
  572.  
  573. ;net
  574. #!t::Run B:\_ESS\PROG\internet\ThunderbirdPortable\ThunderbirdPortable.exe
  575. ;%thunderbird%
  576.  
  577. #!f::Run firefox.exe
  578. #!!::Run %chrome%
  579. #!j::Run %jdownloader%
  580. ;edit
  581. ;#!g::Run %vim%
  582. #!g::Run B:\_ESS\PROG\GVimPortable\GVimPortable.exe
  583. #+c::Run B:\PROG\office\vim\vim73\runvim.vbs
  584. ;gamesy
  585. #!h::Run D:\GAMESY\SMALL\golly-2.4-win\Golly.exe
  586. ;terminals
  587. +#!p::Run D:\DATA\dev\terminaly\putty.exe
  588. #!p::Run D:\DATA\dev\terminaly\Terminal 1.9b.exe
  589.  
  590.  
  591. ;;terminal & win apps
  592.  
  593. ;googlecl
  594. !`::Run E:\PROG\dev\googlecl\google.exe
  595. ;cygwin - terminal; setup
  596. #`::Run E:\PROG\dev\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -
  597. ;#+`::Run E:\PROG\dev\cygwin64\cygwin.bat
  598. #+`::Run D:\DATA\dev\cygwin\setup
  599. ;windows - terminal; taskmanager
  600. +!`::Run cmd
  601. #!`::Run taskmgr
  602.  
  603. ;#!;::Run taskmgr
  604.  
  605. ; autoruns
  606. #!break::Run D:\DATA\win\Autoruns\autoruns.exe
  607.  
  608. ; text for teh windows
  609. +#v::Run C:\PROG\control\AutoHotkey\Extras\Scripts\tftw.exe
  610.  
  611.  
  612. ;;not so widely used
  613. #!d::Run B:\PROG\office\Lingea%A_Space%2002\lexicon.exe
  614. #!s::Run %esmeska%
  615. #!u::Run E:\GDRIVE\LOG\mind\ucet.ods
  616. ;D:\ELE\circuit\circuit.jar
  617.  
  618. ;#!x::Run C:\PROG\life\XMind\xmind.exe
  619. #!y::Run E:\PROG\ele\ResistorColorCoder\Res_Color_Code.exe
  620.  
  621. #!k::Run B:\PROG\educ\Calcute\calcute.exe
  622. +#!k::Run calc.exe
  623. ;;bench
  624. #!Insert::Run D:\DATA\bench\hw64_393\HWiNFO64.exe
  625. ;#!break::Run E:\PROG\bench\CPU-Z\cpuz.exe
  626.  
  627.  
  628. ;#!b::Run E:\PROG\mind\TheBrain\TheBrain.exe
  629.  
  630. ;#!+^sc56::Run %web_new% "http://webbrain.com/brainpage/brain/398005B6-6FA3-D2AD-8AC7-0CA3F9990DA9"
  631. ;full_path = D:\ELE\circuit\circuit.jar
  632. ;Run, cmd /K cd /D "%full_path%"
  633. ;Run, cmd java %full_path%
  634. ;Return
  635.  
  636.  
  637.  
  638.  
  639. ;;man = #!^
  640. ;http://www.opera.com/docs/switches/
  641.  
  642. ;#!m::Run D:\EDUC\_INFO\mapy\t_12.jpg
  643.  
  644. ;office
  645. ;#!^v::Run D:\READ\MAN\office\VIM\vim.txt
  646. #!^g::Run B:\_ESS\PIC\vim\url.png
  647. #!^v::Run E:\GDRIVE\READ\MAN\man vim.vim
  648.  
  649. #!^z::Run D:\READ\MAN\office\VIM\vim-cheat-sheet.gif ;vi-vim-tutorial-1.gif
  650.  
  651. #!^l::Run D:\READ\MAN\office\LATEX\howto\latexsheet-a4.pdf
  652. #!^k::Run D:\READ\MAN\office\LATEX\howto\lshort2e.pdf
  653.  
  654.  
  655. ;#!^g::Run D:\READ\git_cmds.txt
  656.  
  657. #!^j::Run D:\READ\MAN\office\LATEX\OLD\TUT\bkez.tex
  658. ;#!j::Run D:\EDUC\_MAN\LATEX\math\siunitx.pdf
  659.  
  660. ;#!^s::Run D:\READ\ele\KnihyElektro\THIS_Power Supply Cookbook.pdf
  661.  
  662.  
  663.  
  664. ;Directories = #
  665. !#^+s::Run Explorer C:\ProgramData\Microsoft\Windows\Start Menu\Programs
  666. ; C:\Users\spare\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
  667. ; %A_AppData%\Roaming\Microsoft\Windows\Start Menu\Programs
  668.  
  669. +#!break::Run Explorer C:\ProgramData\Microsoft\Windows\Start Menu\Programs
  670. ^#!break::Run %SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
  671.  
  672. +#2::Run %chrome% http://goo.gl/3lGYJX
  673. ;https://docs.google.com/spreadsheet/ccc?key=0Aq-xEfRBVw0EdENCZFA5ZS1YUFNXS19PN2pMVE9IY0E&usp=drive_web#gid=0
  674. #2::Run Explorer E:\GDRIVE\PROJECTS\m2\RobotDalek_MRBT
  675. ;#3::Run Explorer E:\GDRIVE\EDUC\m2\Am2_MAPV
  676. +#3::Run %chrome% https://docs.google.com/spreadsheet/ccc?key=0Aq-xEfRBVw0EdG5LcWx2TFVlVGFRT0JCb3ZPWnFXN1E#gid=0
  677. #4::Run Explorer E:\GDRIVE\EDUC\m2\Em2_MEMT
  678.  
  679. #w::Run Explorer E:\GDRIVE\EDUC\m4
  680. +#w::Run %chrome% https://drive.google.com/#folders/0B6-xEfRBVw0EYVV5UWtEMVVSNEE
  681.  
  682. #+e::Run Explorer D:\LOG\EVENTS
  683. #q::Run Explorer D:\LOG\LOGBOOK\2015
  684. #!l::Run Explorer D:\LOG\LOGBOOK\2015
  685.  
  686. ;#sc56::Run Explorer D:\CREATION\ELE\EAGLE
  687. ;#sc56::Run Explorer D:\EDUC\bak_bakalarka\
  688. ;#b::Run Explorer D:\BACKUP\
  689.  
  690.  
  691. #b::RUN3("dip_main.vim","Vim","B:\__DIP\text\_main_text\LOG\")
  692. +#b::RUN3("logDip.vim","Vim","B:\__DIP\dev\_main_dev\_LOG\")
  693. ;#b::Run B:\__DIP\dip_main.vim
  694.  
  695. #!b::Run Explorer B:\__DIP\
  696. #!w::Run Explorer B:\__DIP\text\_main_text\
  697. ;#!b::Run D:\EDUC\bak_bakalarka\texnic\bakalarka.tcp
  698. ;#+!b::Run D:\EDUC\bak_bakalarka\texnic\bakalarka.pdf
  699.  
  700. #!+w::Run B:\__DIP\text\_main_text\sablona.tex
  701. #!+b::Run B:\__DIP\text\_main_text\sablona.tex
  702. #!+^b::Run B:\__DIP\text\_MAN\serva MX-64AR DYNAMIXEL\ControlTable_RX-64_manual.png
  703.  
  704. ^+!#d::Run Explorer E:\GDRIVE\CREATION\ELE\DATASHEETS\DATASHEETS_shared
  705.  
  706.  
  707. #a::Run Explorer D:\DATA\
  708. #r::Run Explorer D:\READ
  709. ;#s::Run Explorer D:\SOUND\
  710. #s::Run Explorer D:\SKILL\AUDIO\SONGBOOK
  711. #v::Run Explorer.exe D:\VIEW\
  712.  
  713. #f::Run Explorer D:\WATCH\FILM\
  714.  
  715. #x::Run Explorer D:\DN\
  716. #g::Run Explorer D:\GAMESY
  717. #3::Run Explorer E:\GDRIVE\3D_MODELS
  718. #c::Run Explorer D:\CREATION
  719.  
  720. #!z::Run Explorer E:\GDRIVE
  721.  
  722.  
  723. #h::Run Explorer C:\users\gr4viton
  724.  
  725.  
  726. #o::Run Explorer C:\PROG\
  727. #!o::Run, control Microsoft.ProgramsAndFeatures
  728.  
  729.  
  730.  
  731.  
  732. path := "D:`\MIND\space"
  733. ;path := D:\MIND\space
  734. ;#q::Run Explorer -dir %path%
  735. ;#q::Run Explorer D:\MIND\space
  736.  
  737.  
  738.  
  739.  
  740. ;#q::Run %SystemRoot%\explorer.exe /E,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
  741.  
  742. ;mediamonkey
  743. ;^#\::WinResore 'MediaMonkey'
  744.  
  745.  
  746. ;Keymapping
  747.  
  748. ;nefunguje alt na hp 620 od baryb
  749.  
  750.  
  751. ;;alt f4
  752. ;~rctrl::lalt
  753. ;~#tab::!tab
  754. #F4::Send {ALTDOWN}{F4}{ALTUP}
  755.  
  756. ;;altab
  757. ;#TAB::Send {ALTDOWN}{TAB}{ALTUP}
  758. ;#TAB::
  759. ; Send {ALTDOWN}{TAB}
  760. ; KeyWait, {TAB} ; wait until the button is released
  761. ; Send, {ALTUP}
  762. ;Return
  763.  
  764.  
  765. ;;;;;;ZJISTI jak s tim tabenm asbys mohl altabovat = supertabovat
  766. ;;;;;;Vyt�skni BRR1 str 49�
  767.  
  768. ;APPSKEY::Send {ALTUP}
  769. ;!p::Send {ALTUP}
  770.  
  771.  
  772.  
  773.  
  774. ;capslock to ctrl
  775. ;Capslock::Ctrl
  776. ;+Capslock::Capslock
  777.  
  778. ;this is the key under esc
  779. ;sc29::
  780. ; Send {Escape Down}
  781. ; KeyWait, Capslock ; wait until the Capslock button is released
  782. ; Gui, 93:Cancel
  783. ; Send, {Escape Up}
  784. ;Return
  785.  
  786.  
  787.  
  788. #+D::
  789. Send, {LWINDOWN}y{LWINUP}{Escape}{SHIFTDOWN}01{SHIFTUP}
  790. Return
  791.  
  792.  
  793.  
  794.  
  795.  
  796. ;How can a prefix key be made to perform its native function rather than doing nothing?
  797.  
  798. ;Consider the following example, which makes Numpad0 into a prefix key:
  799. ; Numpad0 & Numpad1::MsgBox, You pressed Numpad1 while holding down Numpad0.
  800.  
  801. ;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:
  802. ; $Numpad0::Send, {Numpad0}
  803.  
  804. ;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.
  805.  
  806.  
  807. #!n::
  808. IfWinExist Untitled - Notepad
  809. WinActivate
  810. else
  811. Run Notepad
  812. return
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819. SetTitleMatchMode RegEx
  820. return
  821.  
  822. ; Stuff to do when Windows Explorer is open
  823. ;
  824. #IfWinActive ahk_class ExploreWClass|CabinetWClass
  825.  
  826. ; create new text file
  827. ;
  828. #!+t::Send !fwt
  829.  
  830. ; open 'cmd' in the current directory
  831. ;
  832. #!+c::
  833. OpenCmdInCurrent()
  834. return
  835. #IfWinActive
  836.  
  837.  
  838. ; Opens the command shell 'cmd' in the directory browsed in Explorer.
  839. ; Note: expecting to be run when the active window is Explorer.
  840. ;
  841. OpenCmdInCurrent()
  842. {
  843. ; This is required to get the full path of the file from the address bar
  844. WinGetText, full_path, A
  845.  
  846. ; Split on newline (`n)
  847. StringSplit, word_array, full_path, `n
  848. ; Take the first element from the array
  849. full_path = %word_array1%
  850.  
  851. ; strip to bare address
  852. full_path := RegExReplace(full_path, "^Address: ", "")
  853.  
  854. ; Just in case - remove all carriage returns (`r)
  855. StringReplace, full_path, full_path, `r, , all
  856.  
  857.  
  858. IfInString full_path, \
  859. {
  860. Run, cmd /K cd /D "%full_path%"
  861. }
  862. else
  863. {
  864. Run, cmd /K cd /D "C:\ "
  865. }
  866. }
  867.  
  868. ; Opens the windows shell (cmd.exe) in the designated destination
  869. ; if you hover over a text or a textbox or a url line it gets the path from it
  870. ; if you have a path in a clipboard it gets it
  871. ; path:
  872. ; - FTP: connects to it via preselected app (putty / tcmd / ..)
  873. ; - URL: opens it via preselected app (opera / firefox / chrome / "iexplorer")
  874. ; - LOCAL DIR: opens directory it via preselected app (explorer / tcmd / ..)
  875. OpenCmdInCursor()
  876. {
  877.  
  878. }
  879.  
  880.  
  881.  
  882.  
  883.  
  884. ; Note: From now on whenever you run AutoHotkey directly, this script
  885. ; will be loaded. So feel free to customize it to suit your needs.
  886.  
  887. ; Please read the QUICK-START TUTORIAL near the top of the help file.
  888. ; It explains how to perform common automation tasks such as sending
  889. ; keystrokes and mouse clicks. It also explains more about hotkeys.
  890.  
  891.  
  892.  
  893.  
  894. ;dyz neni okno gvimu tak
  895. ;caps+h back caps+j enter
  896. ; caps+ALT+hjkl = arrows
  897.  
  898.  
  899. ;open flash key
  900. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  901. ;; Windows fitting
  902. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  903. #!^+n::
  904. Run, notepad.exe
  905. WinWait, Untitled - Notepad, , 3
  906. if ErrorLevel
  907. {
  908. MsgBox, WinWait timed out.
  909. return
  910. }
  911. else
  912. WinMinimize ; Minimize the window found by WinWait.
  913.  
  914.  
  915. WinMove, 0, 0
  916.  
  917. return
  918.  
  919. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  920. ;; CAPSLOCKing -> this works without modifiers
  921. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  922. Capslock & F1::
  923. SetCapsLockState, AlwaysOff
  924. MsgBox SetCapsLockState, AlwaysOff
  925. return
  926. Capslock & F2::
  927. SetCapsLockState, AlwaysOn
  928. MsgBox SetCapsLockState, AlwaysOn
  929. return
  930.  
  931. ;vim
  932. ;hjkl
  933. Capslock & h::Send {Left}
  934. Capslock & j::Send {Down}
  935. Capslock & k::Send {Up}
  936. Capslock & l::Send {Right}
  937.  
  938. ;emacs
  939. ;ctrl-ae jh=mn
  940. Capslock & n::Send {BS}
  941. Capslock & m::Send {Enter}
  942. ;Capslock & e::Send {END}
  943. ;Capslock & a::Send {HOME}
  944.  
  945.  
  946. ;mine
  947. ; vim-conf
  948. ^#!+g::Send {ESC}:set guifont=Consolas:h9{Enter}
  949.  
  950. ;ESC
  951. Capslock & q::Send {ESC}
  952.  
  953. ;^XCV
  954. Capslock & 2::
  955. ;XShift(0)
  956. Send {Ctrl Down}{x}{Ctrl Up}
  957. return
  958. Capslock & 3::
  959. ;XShift(0)
  960. Send {Ctrl Down}{c}{Ctrl Up}
  961. return
  962. Capslock & 4::
  963. ;XShift(0)
  964. Send {Ctrl Down}{v}{Ctrl Up}
  965. return
  966.  
  967.  
  968. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  969. ;; CAPSLOCKing -> XSHIFT -> not used anymore
  970. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  971.  
  972.  
  973. ;Capslock & v::
  974. ;XShift()
  975. ;return
  976.  
  977. ;Capslock & y::
  978. ;Shifted:=!Shifted
  979. ;If (shifted)
  980. ; Send,{Shift Down}
  981. ;else
  982. ; Send,{Shift UP}
  983. ;return
  984.  
  985. ;Capslock & z::
  986. ;Shifted:=!Shifted
  987. ;If (shifted)
  988. ; Send,{Shift Down}
  989. ;else
  990. ; Send,{Shift UP}
  991. ;return
  992.  
  993. ;Alt & Capslock & e::
  994. ;Send {Alt}{Up}
  995. ;MsgBox altup
  996. ;return
  997.  
  998.  
  999. ;Capslock & SPACE::
  1000. ;XShift(0)
  1001. ;Send {Enter}
  1002. ;return
  1003.  
  1004. ;Capslock & w::
  1005. ;XShift(0)
  1006. ;Send {BS}
  1007. ;return
  1008.  
  1009.  
  1010. ;Capslock & r::
  1011. ;XShift(0)
  1012. ;Send {Delete}
  1013. ;return
  1014.  
  1015.  
  1016. ;;shift triggering function
  1017. ;XShift(a=2){
  1018. ;global
  1019. ;shchange:= (a==Shifted) ? 0:1
  1020. ;If (a == 2){
  1021. ;Shifted:=!Shifted
  1022. ;shchange:=1
  1023. ;}
  1024. ;else{
  1025. ;Shifted:= a
  1026. ;}
  1027. ;If(shchange)
  1028. ;If (Shifted )
  1029. ;Send,{Shift Down}
  1030. ;else
  1031. ;Send,{Shift UP}
  1032. ;}
  1033.  
  1034.  
  1035. ;;*LCtrl::Send {Blind}{LCtrl}
  1036.  
  1037. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1038. ;; CAPSLOCKing -> this works WITH modifiers - but its blocking hotstrings on those keys
  1039. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1040.  
  1041. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1042. ;CapSend(KEY, KEY2) NO/, KEY3)
  1043. ; Function to trigger different keys when pressed with shift, alowing other modifiers ( shift+arrows)
  1044. ; caps + key = KEY
  1045. ; key = KEY2
  1046. ; NO/ caps + key + alt = KEY3
  1047. ;---------------------------------------------------------------------------
  1048. CapSend2(KEY, KEY2){
  1049. if GetKeyState("Capslock","P") {
  1050. SetKeyDelay -1
  1051. Send {Blind}{%KEY% DownTemp}{Backspace}
  1052.  
  1053. }
  1054. return
  1055. }
  1056.  
  1057. CapSend(KEY, KEY2){
  1058. if GetKeyState("Capslock","P") {
  1059. SetKeyDelay -1
  1060. Send {Blind}{%KEY% DownTemp}
  1061.  
  1062. }
  1063. ;if GetKeyState("Capslock","P") && GetKeyState("alt","P"){
  1064. ;SetKeyDelay -1
  1065. ;Send {Blind}{%KEY3% DownTemp}
  1066. ;}
  1067. ;; not functional on super-arrow moving windows
  1068. ;else if GetKeyState("Super","P") && GetKeyState("Capslock","P")
  1069. ; Send #%KEY2%
  1070. else
  1071. Send {Blind}{%KEY2% DownTemp}
  1072. return
  1073. }
  1074.  
  1075. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1076.  
  1077.  
  1078. ; first row
  1079. ;*s::CapSend("Left", "s")
  1080. ;*d::CapSend("Down", "d")
  1081. ;*e::CapSend("Up", "e")
  1082. ;*f::CapSend("Right", "f")
  1083.  
  1084. ; second row
  1085. ;*t::CapSend("Tab", "t")
  1086. *space::CapSend("Enter", "space")
  1087.  
  1088. ;*w::CapSend("Backspace", "w")
  1089. ;*r::CapSend("Delete", "r")
  1090.  
  1091. ; third row
  1092. ;*g::CapSend("END", "g")
  1093. ;*a::CapSend("HOME", "a")
  1094. ;*sc56::CapSend("PgUp", "sc56")
  1095. ;*z::CapSend("PgDn", "z")
  1096.  
  1097. ; fourth row
  1098. ;*x::CapSend("^Left", "x")
  1099. ;*c::CapSend("^Right", "c")
  1100.  
  1101. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1102. ; CAPSLOCKing -> this works WITH modifiers
  1103. ;does not allow easy multiple modificators with capslocked alternative keys
  1104. ;but maybe would not interfere with hot strings -> to try? why bother??
  1105. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1106.  
  1107. ;;sendshift function
  1108. ;sendshift(key)
  1109. ;{
  1110. ;send +%key%
  1111. ;send % getkeystate("shift","p") ? +%key%: %key%
  1112. ;if getkeystate("shift","p")
  1113. ;send +%key%
  1114. ;else
  1115. ;send %key%
  1116. ;send "%key%"
  1117. ;send "{".%key%."}"
  1118. ;}
  1119.  
  1120. ;;sendmodified function
  1121. ;sendmod(key)
  1122. ;{
  1123. ;if getkeystate("ctrl","p") && getkeystate("shift","p") && getkeystate("alt","p")
  1124. ;send !^+%key%
  1125. ;if getkeystate("ctrl","p") && getkeystate("shift","p")
  1126. ;send ^+%key%
  1127. ;else if getkeystate("shift","p")
  1128. ;send +%key%
  1129. ;else if getkeystate("control","p")
  1130. ;send ^%key%
  1131. ;else if getkeystate("alt","p")
  1132. ;send !%key%
  1133. ;else if getkeystate("super","p")
  1134. ;send #%key%
  1135. ;else
  1136. ;send %key%
  1137. ;send "%key%"
  1138. ;send "{".%key%."}"
  1139. ;}
  1140.  
  1141.  
  1142.  
  1143. ;; first row:
  1144. ;capslock & s::sendmod("{left}")
  1145. ;capslock & d::sendmod("{down}")
  1146. ;capslock & e::sendmod("{up}")
  1147. ;capslock & f::sendmod("{right}")
  1148.  
  1149. ;; second row
  1150. ;;capslock & t::send {tab}
  1151.  
  1152. ;; third row
  1153. ;;capslock & g::sendmod("{end}")
  1154. ;;capslock & a::sendmod("{home}")
  1155. ;;capslock & x::sendmod("{pgdn}")
  1156. ;;capslock & c::sendmod("{pgup}")
  1157.  
  1158. ;; fourth row
  1159. ;;capslock & x::sendmod("^{left}")
  1160. ;;capslock & c::sendmod("^{right}")
  1161.  
  1162.  
  1163.  
  1164. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1165. ; mouse buttons -> now covered in "KDE Intell move"
  1166. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1167. ;XButton1::
  1168. ;Send {win down}{LButton down}
  1169. ;msgbox is dn
  1170. ;return
  1171. ;#XButton1::
  1172. ;Send {LWin Down}{LButton down}
  1173. ;MsgBox ah
  1174. ;return
  1175. ;XButton1 Up::Send {Lwin Up}{LButton up}
  1176. ;XButton2::Send {LWin}{RButto down}
  1177. ;XButton2 Up::Send {Super}{RButton up}
  1178.  
  1179. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1180. ; others
  1181. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1182. ; ďż˝::Send \
  1183.  
  1184. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1185. ; joypad
  1186. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1187. Joy1::
  1188. Send {Left down} ; Hold down the left-arrow key.
  1189. KeyWait Joy1 ; Wait for the user to release the joystick button.
  1190. Send {Left up} ; Release the left-arrow key.
  1191. return
  1192.  
  1193. Joy2::
  1194. Send {Right down} ; Hold down the left-arrow key.
  1195. KeyWait Joy2 ; Wait for the user to release the joystick button.
  1196. Send {Right up} ; Release the left-arrow key.
  1197. return
  1198.  
  1199.  
  1200. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1201. ;tf2
  1202. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1203. ;DelaySend(Key, Interval=200, SendMethod="Send") {
  1204. ; static KeyStack := []
  1205. ; KeyStack[Key] := IsObject(KeyStack[Key]) ? KeyStack[Key] : {base: {LastTickCount: 0}}
  1206. ; ObjInsert( KeyStack[Key], { Key: Key, Interval: Interval, SendMethod: SendMethod })
  1207. ; Gosub, Label_DelaySend
  1208. ; Return
  1209. ;
  1210. ; Label_DelaySend:
  1211. ; For Key in KeyStack {
  1212. ; if !(MinIndex := KeyStack[Key].MinIndex())
  1213. ; Continue
  1214. ; Span := A_TickCount - KeyStack[Key].LastTickCount
  1215. ; if (Span < KeyStack[Key][MinIndex].Interval) ;loaded too early
  1216. ; SetTimer,, % -1 * (KeyStack[Key][KeyStack[Key].MinIndex()].Interval - Span) ;[v1.1.01+]
  1217. ; else {
  1218. ; SendMethod := KeyStack[Key][MinIndex].SendMethod
  1219. ; SendingKey := KeyStack[Key][MinIndex].Key
  1220. ; if (SendMethod = "SendInput")
  1221. ; SendInput, % SendingKey
  1222. ; Else if (SendMethod = "SendPlay")
  1223. ; SendPlay, % SendingKey
  1224. ; Else if (SendMethod = "SendRaw")
  1225. ; SendRaw, % SendingKey
  1226. ; Else if (SendMethod = "SendEvent")
  1227. ; SendEvent, % SendingKey
  1228. ; Else
  1229. ; Send, % SendingKey;
  1230.  
  1231. ; ObjRemove(KeyStack[Key], MinIndex) ;decrement other elements
  1232. ; if KeyStack[Key].MinIndex() ;if there is a next queue
  1233. ; SetTimer,, % -1 * KeyStack[Key][KeyStack[Key].MinIndex()].Interval ;[v1.1.01+]
  1234. ; KeyStack[Key].base.LastTickCount := A_TickCount
  1235. ; }
  1236. ; }
  1237. ;
  1238. ;}
  1239.  
  1240.  
  1241. ;tf2 wsad not functional
  1242. ;$w::SendInput {7}
  1243.  
  1244. ;w::SendPlay {7}
  1245.  
  1246. ;a::SendPlay {y}
  1247. ;s::SendPlay {u}
  1248. ;d::SendPlay {i}
  1249.  
  1250.  
  1251. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1252. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1253. ; printing void month
  1254.  
  1255. ; WDay - monday=2
  1256. ; YWeek
  1257.  
  1258. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1259. ;Function LDOM()
  1260. ; Derives & Returns the Last Day Of Month
  1261. ; Examples:
  1262. ; TotalDays := LDOM() ; uses System date
  1263. ; TotalDays := LDOM("20040219") ; returns 29 as 2004 is a leap year
  1264. LDOM(TimeStr="")
  1265. {
  1266. If TimeStr=
  1267. TimeStr:=A_Now
  1268.  
  1269. StringLeft,Date,TimeStr,6
  1270. Day = 28
  1271. Date = %Date%%Day%
  1272. FormatTime,cMonth,%Date%,M
  1273.  
  1274. Loop,3
  1275. {
  1276. Date+=1,days
  1277. FormatTime,tMonth,%Date%,M
  1278. if tMonth != %cMonth%
  1279. break
  1280. else
  1281. Day+=1
  1282. }
  1283. Return Day
  1284. }
  1285.  
  1286.  
  1287. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1288. ;printDayTitle(
  1289. ; Function to print day title
  1290. ;---------------------------------------------------------------------------
  1291. printDayTitle(yyyy,MM,dd){
  1292. yyyyMMdd = %yyyy%%MM%%dd%
  1293. ; MsgBox {%yyyyMMdd%}
  1294.  
  1295. FormatTime, tim, %yyyyMMdd%, '#>'dd'd_'ddd'<'
  1296.  
  1297. FormatTime, wday, %yyyyMMdd%, WDay
  1298. if wday = 2
  1299. str = <<<<<<<<<<<<<<<< ; monday
  1300. else
  1301. str = `%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%
  1302.  
  1303. endline = `%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`%`n
  1304. tim = %tim%%str%%endline%
  1305. ; MsgBox {%tim%}
  1306. return tim
  1307. }
  1308.  
  1309.  
  1310. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1311. ;printVoidMonth(
  1312. ; Function to print void month
  1313. ; add is a parameter for printing next months
  1314. ;---------------------------------------------------------------------------
  1315. printVoidMonth(add=0){
  1316. ; current date
  1317. FormatTime, yyyy, , yyyy
  1318. FormatTime, MM, , MM
  1319. dd = 1
  1320. MM += add
  1321. if MM = 13 ; only for plus one in December
  1322. {
  1323. MM = 01
  1324. yyyy+=1
  1325. }
  1326. if(StrLen(MM) = 1){
  1327. MM = 0%MM%
  1328. }
  1329. if(StrLen(dd) = 1){
  1330. dd = 0%dd%
  1331. }
  1332. ; msgbox % yyyy . ":" . MM . ":" . dd
  1333.  
  1334.  
  1335. ddMax := LDOM( %yyyy%%MM%%dd% )
  1336.  
  1337. tim = thisMonth
  1338. tim = %tim%`n%yyyy%_%MM%`n`n
  1339. Loop %ddMax%
  1340. {
  1341.  
  1342. ddStr := printDayTitle(yyyy,MM,dd)
  1343. tim = %tim%%ddStr%h`n
  1344. ; tim = %tim%%ddStr%h`n[] %MM%0 kliku! jinak seš máslo`n
  1345. ; MsgBox %ddStr%,%dd%
  1346. dd++
  1347. Sleep, 10
  1348. ; return
  1349. }
  1350. MsgBox %tim%
  1351. return %tim%
  1352. }
  1353.  
  1354. !#.::
  1355. printVoidMonth()
  1356. return
  1357.  
  1358.  
  1359.  
  1360. ;%%%
  1361. !^p::
  1362. str := printVoidMonth()
  1363. clipboard = %str%
  1364. return
  1365.  
  1366. !+^p::
  1367. str := printVoidMonth(1)
  1368. clipboard = %str%
  1369. return
  1370.  
  1371. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1372. ; BACKSPACE AS UP-DIR
  1373.  
  1374.  
  1375. ;#IfWinActive ahk_class CabinetWClass
  1376. ; ^l::Send {F4}
  1377. ; Backspace::
  1378. ;;msgbox ha
  1379. ;SendInput {Alt Down}{Up}{Alt Up}
  1380. ;return
  1381. ;#IfWinActive
  1382.  
  1383.  
  1384.  
  1385. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1386. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1387. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1388. ; just sandbox
  1389.  
  1390.  
  1391. ^#F6::
  1392. ;app = opera
  1393. ;SetEnv, %app%, C:\%app%
  1394. Run %chrome%
  1395. return
  1396.  
  1397.  
  1398.  
  1399. !#^.::
  1400. ;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:
  1401. eval := "opera1"
  1402. gosub % eval
  1403. return
  1404.  
  1405. opera1:
  1406. msgbox %eval%
  1407. return
  1408.  
  1409.  
  1410. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1411. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1412. ; MOUSE
  1413. ; HAMA Roma
  1414.  
  1415. ; side buttons
  1416. ; front = XButton2
  1417. ; back = XButton1
  1418. ;XButton1:: Msgbox ahoj
  1419.  
  1420.  
  1421. ; upper
  1422. ; middle = MButton
  1423. ; left = RButton
  1424. ; right LButton
  1425.  
  1426. ; wheel
  1427. ; wheel left = WheelLeft
  1428. ; wheel up = WheelRight
  1429.  
  1430. ; wheel up = WheelUp
  1431. ; wheel down = WheelDown
  1432.  
  1433. ; find out how much it scrolled - typically by 1
  1434. ;~WheelDown::ToolTip %A_EventInfo%
  1435.  
  1436.  
  1437. ;; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1438. ; tabing
  1439.  
  1440. ; XButton2::
  1441. ; If (Toggler := !Toggler )
  1442. ; {
  1443. ; ToolTip, RButton Down
  1444. ; Send, {RButton Down}
  1445. ; Return
  1446. ; }
  1447. ; ToolTip, RButton Up
  1448. ; Send {RButton Up}
  1449. ; Send {Alt up}{Shift up}
  1450. ; Return
  1451.  
  1452. ;XButton2 & WheelUp:: Send {Alt down}{Tab}
  1453. ;XButton2 & WheelDown:: Send {Alt down}{Shift down}{Tab}
  1454.  
  1455.  
  1456. ;XButton2 & MButton::AltTabMenu
  1457. ;XButton1 & LButton::AltTabMenu
  1458. XButton1 & LButton::AltTabMenu
  1459. WheelDown::AltTab
  1460. WheelUp::ShiftAltTab
  1461.  
  1462. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1463. ; scrolling in presentation - left right
  1464. ;XButton2 & WheelLeft:: Send {Left}
  1465. ;XButton2 & WheelRight:: Send {Right}
  1466.  
  1467. XButton2 & WheelUp:: Send {Left}
  1468. XButton2 & WheelDown:: Send {Right}
  1469.  
  1470. ;MButton & WheelLeft:: Send {Left}
  1471. ;MButton & WheelRight:: Send {Right}
  1472.  
  1473. ;MButton & RButton:: Send {Left}
  1474. ;MButton & LButton:: Send {Right}
  1475.  
  1476. ;; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1477. ; scrolling horizontal
  1478.  
  1479. ;~LControl & WheelUp:: ; Scroll left.
  1480. WheelLeft::
  1481. ControlGetFocus, fcontrol, A
  1482. Loop 2 ; <-- Increase this value to scroll faster.
  1483. SendMessage, 0x114, 0, 0, %fcontrol%, A ; 0x114 is WM_HSCROLL and the 0 after it is SB_LINELEFT.
  1484. return
  1485.  
  1486. ;~LControl & WheelDown:: ; Scroll right.
  1487. WheelRight::
  1488. ControlGetFocus, fcontrol, A
  1489. Loop 2 ; <-- Increase this value to scroll faster.
  1490. SendMessage, 0x114, 1, 0, %fcontrol%, A ; 0x114 is WM_HSCROLL and the 1 after it is SB_LINERIGHT.
  1491. return
  1492.  
  1493. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1494.  
  1495. add_(){
  1496. send {F2}^{Home}{right 4}_{Enter}
  1497. }
  1498.  
  1499. add_2(){
  1500. send {F2}^{Home}_{Enter}
  1501. }
  1502.  
  1503. #!^w::add_()
  1504. +#!^w::add_2()
  1505.  
  1506. ; tilde for normal function also
  1507. ~^b::UNIQ_CODE_WRITING()
  1508. return
  1509.  
  1510.  
  1511. UNIQ_CODE_WRITING(){
  1512. ; will have switch
  1513. ; will analyze win title for name of IDE
  1514. ; will rewrite it to have the binding keys stored in separate array - associative for the best
  1515. ; if WinExist("ahk_class " . "wxWindowClassNR") and WinActive("ahk_class " . "wxWindowClassNR")
  1516. WinGetActiveTitle, act_tit
  1517. tit = Code::Blocks
  1518. key = ^{F11}
  1519. regex := ".*" . tit . ".*"
  1520.  
  1521. if RegExMatch(act_tit,regex)
  1522. {Send %key%
  1523. }
  1524. }
  1525.  
  1526. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1527. ; default keystrokes in programs
  1528. ; CODE BLOCKS
  1529. ; build ^F11
  1530. ; goto declaration ^+.
  1531. ; goto implementation ^.
  1532. ; find references !.
  1533.  
  1534.  
  1535.  
  1536. ;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  1537. ; temporary
  1538. ; 2014_04_19 - copying to dictionary
  1539.  
  1540. WTF()
  1541. {
  1542. Send {control down}{c}{control up}{alt down}{tab}{alt up}{control down}{v}{control up}{alt down}{tab}{alt up}
  1543. }
  1544.  
  1545. MATLAB_OCR1()
  1546. {
  1547. Send ^+{tab}F_OCR_DEBUG{enter}^{tab}
  1548. }
  1549.  
  1550. MATLAB_OCR2()
  1551. {
  1552. Send ^+{tab}F_learnClassifiee{enter}^{tab}
  1553. }
  1554.  
  1555. pythoneer()
  1556. {
  1557.  
  1558. ;Send START "" "d:\DEV\PYTHON\scripts\2014_06_17 - generate all pins\a.py"
  1559. ;Run %comspec% /k, python.exe "d:\DEV\/PYTHON\scripts\2014_06_17 - generate all pins\a.py"
  1560. ;Run "c:\bin\python27\python e:/copytimeinbuffer.py"
  1561. ;Run "C:\MinGW\Python33\python.exe" d:\a.py
  1562. Run "C:\MinGW\Python33\python.exe" "d:\DEV\PYTHON\scripts\2014_06_17 - generate all pins\a.py"
  1563.  
  1564.  
  1565. ;Send !{Space}ep
  1566.  
  1567. }
  1568.  
  1569. ^!#a::pythoneer()
  1570.  
  1571.  
  1572.  
  1573. ; DIPLOMKA - latex
  1574. :*:jjch::\chapter{}
  1575. :*:jjse::\section{}
  1576. :*:jjsse::\subsection{}
  1577. :*:jjssse::\subsubsection{}
  1578. :*:jjpar::\paragraph{}
  1579.  
  1580.  
  1581. :*:nu1::Install-Package NuGetPackageFolderOverride
  1582. :*R0:nu2::
  1583. (
  1584. Install-NuGetPackageFolderOverride {sc28}..{sc35}_packages{sc35}{sc28}
  1585.  
  1586. )
  1587.  
  1588. :*R0:scsc1::
  1589. (
  1590.  
  1591. sc00 {sc00}{sc01}{sc02}{sc03}{sc04}
  1592. sc05 {sc05}{sc06}{sc07}{sc08}{sc09}
  1593. sc10 {sc10}{sc11}{sc12}{sc13}{sc14}
  1594. sc15 {sc15}{sc16}{sc17}{sc18}{sc19}
  1595. sc20 {sc20}{sc21}{sc22}{sc23}{sc24}
  1596. sc25 {sc25}{sc26}{sc27}{sc28}{sc29}
  1597. sc30 {sc30}{sc31}{sc32}{sc33}{sc34}
  1598. sc35 {sc35}{sc36}{sc37}{sc48}{sc39}
  1599. sc40 {sc40}{sc41}{sc42}{sc43}{sc44}
  1600. sc45 {sc45}{sc46}{sc47}{sc48}{sc49}
  1601.  
  1602. jedna z nich zap�n� aj numlock.. dal�� je tam n�jak� alt
  1603. )
  1604.  
  1605.  
  1606. :*R0:scsc2::
  1607. (
  1608. {sc43}
  1609. )
  1610.  
  1611.  
  1612. ; sc = fn+ = what
  1613. ;57435 = down = play
  1614. ;57413 = insert = numlock
  1615. ;57423 = end
  1616. ;57425 = PgDn
  1617. ;57417 = PgUp
  1618. ;57415 = Home
  1619. ;70 = delete = scroll lock
  1620. ;57399 = notfn+PrtSc
  1621. ;574 =
  1622.  
  1623. ;numlock = fn+ key = blue effect with numlock - without numlock
  1624. ; 82 = m = 0 - insert
  1625. ; 51 = , = . - ,
  1626. ; 83 = . = delete - .
  1627. ; 79 = j = j - nothing
  1628. ; 90 = k =
  1629.  
  1630.  
  1631.  
  1632. ; win7 registry folder
  1633. ;B:\__BACKUP_win7 - 2015_01_25\Windows\System32\config
  1634. ; \winnt\profiles\username
  1635.  
  1636. :*:@@rebel::czech rebel2: goo.gl{sc35}Af9IPw
  1637. ;#+^!b::Run D:\GAMESY\SMALL\kbang\kbang-client.exe
  1638.  
  1639. #+n::
  1640. {
  1641. Send {home}{Shift down}{end}{shift up}^C
  1642. sleep 200
  1643. Send !{Tab}
  1644. sleep 100
  1645. send ^V
  1646. sleep 100
  1647. Send !{Tab}
  1648. sleep 100
  1649. send {down}
  1650. }
  1651.  
  1652.  
  1653. ;#!+s::
  1654. ;{
  1655. ;;Send ^c
  1656. ;;sleep 100
  1657. ;send <s><{sc35}s>{space}
  1658. ;send {left 5}
  1659. ;return
  1660. ;}
  1661.  
  1662. #!+a::
  1663. {
  1664. send {home}
  1665. sleep 100
  1666. send {shift down}{end}{shift up}
  1667. sleep 100
  1668. Send ^c
  1669. sleep 100
  1670. send <k>^v
  1671. sleep 100
  1672. send <{sc35}k>
  1673. return
  1674. }
  1675.  
  1676.  
  1677.  
  1678. #!+f::
  1679. {
  1680. ;Send ^c
  1681. ;sleep 100
  1682. send <f><{sc35}f>
  1683. send {left 4}
  1684. return
  1685. }
  1686.  
  1687.  
  1688.  
  1689. #!+d::
  1690. {
  1691. send {down 1}{F2}
  1692. sleep 20
  1693. send {home}6;{left}
  1694. return
  1695. }
  1696.  
  1697. #!+s::
  1698. {
  1699. send {enter}
  1700. sleep 20
  1701. send {down 1}{F2}
  1702. sleep 20
  1703. send {home}6;{left}
  1704. return
  1705. }
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714. ;j::SendInput {Left}
  1715. ;k::SendEvent {Down}
  1716. ;l::SendInput {Right}
  1717. ;i::SendInput {Up}
  1718. ;u::SendInput {Right Control}
Advertisement
Add Comment
Please, Sign In to add comment