Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.07 KB | None | 0 0
  1. ; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
  2. ; semicolon, such as this one, are comments. They are not executed.
  3.  
  4. ; This script has a special filename and path because it is automatically
  5. ; launched when you run the program directly. Also, any text file whose
  6. ; name ends in .ahk is associated with the program, which means that it
  7. ; can be launched simply by double-clicking it. You can have as many .ahk
  8. ; files as you want, located in any folder. You can also run more than
  9. ; one ahk file simultaneously and each will get its own tray icon.
  10.  
  11. ; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
  12. ; launches a web site in the default browser. The second is Control+Alt+N
  13. ; and it launches a new Notepad window (or activates an existing one). To
  14. ; try out these hotkeys, run AutoHotkey again, which will load this file.
  15.  
  16. #z::Run www.autohotkey.com
  17.  
  18.  
  19. ; ABBREVIATIONS
  20.  
  21. ::btw::by the way
  22. ::Bjr::Bonjour
  23. ::Cdt::Cordialement,
  24. ::Cdlt::Cordialement,
  25. ::svp::s'il vous plait
  26. ::mdp::merci de preciser la numero d�accord
  27.  
  28. ::l4 ::Seuil imputation de 24 mois depasse
  29. ::m4 ::vin inconnu et non-accepte car voiture non-francaise
  30. ::l9 ::La campagne est deja rattrappee
  31. ::u7 ::Les pieces eurorepar ne sont pas imputables en garantie
  32. ::m9 ::Non conforme a la description campagne
  33. ::z2 ::Contact plateforme tech. + Accord prealable necessaire
  34. ::g5 ::Presentation hors delai, plus de 25 jours
  35. ::80 ::Travaux non conformes aux methodes du constructeur
  36.  
  37.  
  38.  
  39. ; OPEN CLAIM FAST
  40.  
  41. ^!c::
  42.  
  43. WinWait, Mon poste bureautique EE - Desktop Viewer,
  44. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  45. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  46. MouseClick, left, 715, 465
  47. Send, {F4}
  48. Sleep, 50
  49. Send, 2{ENTER}
  50. Sleep, 50
  51. Send, %clipboard%
  52. MouseClick, left, 630, 460
  53. Sleep, 100
  54.  
  55. return
  56.  
  57. ; OPEN IN SB
  58.  
  59. ^!x::
  60. WinWait, Mon poste bureautique EE - Desktop Viewer,
  61. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  62. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  63. MouseClick, left, 1253, 316
  64. Send,{Shift down}{Right 8}{Shift up}
  65. Send, ^c
  66.  
  67. WinWait, Service Box - Google Chrome,
  68. IfWinNotActive, Service Box - Google Chrome, , WinActivate, Service Box - Google Chrome,
  69. WinWaitActive, Service Box - Google Chrome,
  70. MouseClick, left, 55, 311
  71. Sleep, 50
  72. MouseClick, left, 49, 211
  73. Sleep, 200
  74. Send, {BACKSPACE}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}{CTRLDOWN}v{CTRLUP}{ENTER}
  75. MouseClick, left, 528, 402
  76.  
  77. return
  78.  
  79.  
  80. ; PASTE PART/TSB IN SB
  81.  
  82. ^!y::
  83.  
  84. WinWait, Service Box - Google Chrome,
  85. IfWinNotActive, Service Box - Google Chrome, , WinActivate, Service Box - Google Chrome,
  86. WinWaitActive, Service Box - Google Chrome,
  87. MouseClick, left, 560, 259
  88. Send, {DEL}{DEL}{DEL}{DEL}{DEL}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{BACKSPACE}{CTRLDOWN}v{CTRLUP}{ENTER}
  89.  
  90. return
  91.  
  92.  
  93. ; INVOICE OK
  94.  
  95. ^!a::
  96. WinWait, Mon poste bureautique EE - Desktop Viewer,
  97. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  98. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  99. MouseClick, left, 630, 460
  100. Sleep, 100
  101. Send, aa{ENTER}{F8}{F8}
  102. MouseClick, left, 474, 608
  103. Sleep, 50
  104. Send, justificatif{SPACE}ok{SPACE}�fa{ENTER}
  105.  
  106. return
  107.  
  108.  
  109. ; INVOICE
  110.  
  111. ^!s::
  112. WinWait, Mon poste bureautique EE - Desktop Viewer,
  113. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  114. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  115. MouseClick, left, 630, 460
  116. Sleep, 100
  117. Send, nj{ENTER}{F8}{F8}
  118. MouseClick, left, 420, 490
  119. Sleep, 50
  120. Send, envoyez{SPACE}la{SPACE}facture{SPACE}svp{SPACE}�fa{ENTER}
  121.  
  122. return
  123.  
  124.  
  125. ; HISTORY
  126.  
  127. ^a::
  128. WinWait, Mon poste bureautique EE - Desktop Viewer,
  129. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  130. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  131. MouseClick, left, 598, 575
  132. Send, {F6}
  133. Sleep, 10
  134. Send, s53f{F5}{ENTER}
  135.  
  136. return
  137.  
  138.  
  139. ; DIAG
  140.  
  141. ^d::
  142. WinWait, Mon poste bureautique EE - Desktop Viewer,
  143. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  144. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  145. MouseClick, left, 598, 575
  146. Send, {F6}
  147. Sleep, 10
  148. Send, s7td{F5}{ENTER}
  149.  
  150. return
  151.  
  152.  
  153. ; EDIAG
  154.  
  155. ^w::
  156. MouseClick, left, 1254, 319
  157. Send,{Shift down}{Right 8}{Shift up}^c
  158. MouseClick, left, 39, 87
  159. Sleep, 50
  160. MouseClick, left, 845, 356
  161. Send, ^v{ENTER}
  162.  
  163. return
  164.  
  165.  
  166. ; TELECHARGMENT
  167.  
  168. ^g::
  169. WinWait, Mon poste bureautique EE - Desktop Viewer,
  170. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  171. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  172. MouseClick, left, 598, 575
  173. Send, {F6}
  174. Sleep, 10
  175. Send, s7tl{F5}{ENTER}
  176.  
  177. return
  178.  
  179.  
  180. ^!q::
  181. WinWait, Mon poste bureautique EE - Desktop Viewer,
  182. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  183. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  184. MouseClick, left, 598, 575
  185. Send, {F6}
  186. Sleep, 10
  187. Send, sgq1{F6}{ENTER}
  188.  
  189. return
  190.  
  191. ^!w::
  192. WinWait, Mon poste bureautique EE - Desktop Viewer,
  193. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  194. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  195. MouseClick, left, 598, 575
  196. Send, {F6}
  197. Sleep, 10
  198. Send, sgw1{F6}{ENTER}
  199.  
  200. return
  201.  
  202.  
  203. ; OPEN CLOSED CLAIM
  204.  
  205. ^h::
  206. WinWait, Mon poste bureautique EE - Desktop Viewer,
  207. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  208. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  209. MouseClick, left, 598, 575
  210. Send, {F6}
  211. Sleep, 10
  212. Send, s53h{F6}{ENTER}
  213. Sleep, 100
  214. MouseClick, left, 470, 260
  215. Sleep, 10
  216. Send, ^v{ENTER}
  217.  
  218. return
  219.  
  220.  
  221. ; S22C
  222.  
  223. ^r::
  224. WinWait, Mon poste bureautique EE - Desktop Viewer,
  225. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  226. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  227. MouseClick, left, 598, 575
  228. Send, {F6}
  229. Sleep, 10
  230. Send, s22c{F6}{ENTER}
  231. Sleep, 100
  232. MouseClick, left, 564, 287
  233. Sleep, 10
  234. Send, ^v{ENTER}
  235.  
  236. return
  237.  
  238.  
  239. ; S22B
  240.  
  241. ^e::
  242. WinWait, Mon poste bureautique EE - Desktop Viewer,
  243. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  244. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  245. MouseClick, left, 598, 575
  246. Send, {F6}
  247. Sleep, 10
  248. Send, s22b{F5}{ENTER}
  249. Sleep, 100
  250. MouseClick, left, 564, 287
  251. Sleep, 10
  252. Send, ^v{ENTER}
  253.  
  254. return
  255.  
  256.  
  257. ; CONTRACT DETAILS
  258.  
  259. ^q::
  260. WinWait, Mon poste bureautique EE - Desktop Viewer,
  261. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  262. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  263. MouseClick, left, 598, 575
  264. Send, {F6}
  265. Sleep, 10
  266. Send, s72t{F5}{ENTER}
  267.  
  268. return
  269.  
  270.  
  271.  
  272. ; MIDTRONICS
  273.  
  274. ^m::
  275.  
  276. xy =
  277.  
  278. WinWait, Start,
  279. IfWinNotActive, Start, , WinActivate, Start,
  280. WinWaitActive, Start,
  281. MouseClick, left, 41, 34
  282. Sleep, 100
  283. WinWait, Start menu,
  284. IfWinNotActive, Start menu, , WinActivate, Start menu,
  285. WinWaitActive, Start menu,
  286. MouseClick, left, 48, 35
  287. Sleep, 100
  288. WinWait, Universal Decoder Program: ,
  289. IfWinNotActive, Universal Decoder Program: , , WinActivate, Universal Decoder Program: ,
  290. WinWaitActive, Universal Decoder Program: ,
  291. MouseClick, left, 26, 47
  292. Sleep, 100
  293. MouseClick, left, 43, 73
  294. Sleep, 100
  295. MouseClick, left, 40, 164
  296. Sleep, 100
  297. Send, {CTRLDOWN}v{CTRLUP}
  298. Sleep, 100
  299.  
  300. WinWait, Mon poste bureautique EE - Desktop Viewer,
  301. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  302. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  303. MouseClick, left, 510, 232
  304. Send,{Shift down}{Right 9}{Shift up}
  305. Send, ^c
  306.  
  307. WinWait, Universal Decoder Program: ,
  308. IfWinNotActive, Universal Decoder Program: , , WinActivate, Universal Decoder Program: ,
  309. WinWaitActive, Universal Decoder Program: ,
  310. MouseClick, left, 922, 17
  311. Sleep, 100
  312. WinWait, Confirm,
  313. IfWinNotActive, Confirm, , WinActivate, Confirm,
  314. WinWaitActive, Confirm,
  315. MouseClick, left, 147, 170
  316. Sleep, 100
  317. WinWait, Save As,
  318. IfWinNotActive, Save As, , WinActivate, Save As,
  319. WinWaitActive, Save As,
  320. Send, {CTRLDOWN}v{CTRLUP}
  321. MouseClick, left, 786, 567
  322.  
  323. return
  324.  
  325. ; ACCOUNT
  326.  
  327. ^!v::
  328. Send, e471261{TAB}
  329. Send, R4pt0r99{ENTER}
  330.  
  331. return
  332.  
  333.  
  334. ; AutoAA
  335.  
  336. ^!b::
  337.  
  338. Loop, 17
  339. {
  340.  
  341. WinWait, Mon poste bureautique EE - Desktop Viewer,
  342. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  343. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  344.  
  345. MouseClick, left, 1175, 341
  346. Sleep, 100
  347. Send, ^v
  348. Sleep, 4000
  349. MouseClick, left, 1381, 189
  350. Sleep, 4000
  351. MouseClick, left, 1063, 190
  352. Sleep, 1000
  353. MouseClick, left, 1063, 190
  354. Sleep, 2000
  355. MouseClick, left, 1125, 227
  356. Sleep, 2000
  357. WinWait, 2016-05-09 AP FR1 - Excel,
  358. IfWinNotActive, 2016-05-09 AP FR1 - Excel, , WinActivate, 2016-05-09 AP FR1 - Excel,
  359. WinWaitActive, 2016-05-09 AP FR1 - Excel,
  360. MouseClick, left, 316, 36
  361. Sleep, 100
  362. Send, {LEFT}{LEFT}{LEFT}{SHIFTDOWN}aa{SHIFTUP}{ENTER}
  363. Send, {RIGHT}{RIGHT}{RIGHT}
  364. Sleep, 100
  365. Send, ^c
  366. Sleep, 3000
  367.  
  368.  
  369. }
  370.  
  371. return
  372.  
  373.  
  374.  
  375. ; AutoAA SAGAI
  376.  
  377. ^!n::
  378.  
  379. Loop, 50
  380. {
  381.  
  382. WinWait, Mon poste bureautique EE - Desktop Viewer,
  383. IfWinNotActive, Mon poste bureautique EE - Desktop Viewer, , WinActivate, Mon poste bureautique EE - Desktop Viewer,
  384. WinWaitActive, Mon poste bureautique EE - Desktop Viewer,
  385. MouseClick, left, 433, 326
  386.  
  387. Send, {F4}
  388. Sleep, 100
  389. Send, 2{ENTER}
  390. Sleep, 100
  391. Send, 1{ENTER}
  392. Sleep, 400
  393. Send, !v
  394. Sleep, 100
  395. Send, {ENTER}
  396. Sleep, 250
  397. MouseClick, left, 632, 465
  398. Sleep, 50
  399. Send, aa{ENTER}
  400. Sleep, 50
  401. Send, {F8}
  402. Sleep, 150
  403. Send, {F8}
  404. Sleep, 150
  405. Send, {F9}
  406.  
  407. WinWait, 2016-08-18 FR - Excel,
  408. IfWinNotActive, 2016-08-18 FR - Excel, , WinActivate, 2016-08-18 FR - Excel,
  409. WinWaitActive, 2016-08-18 FR - Excel,
  410. MouseClick, left, 383, 26
  411. Sleep, 100
  412. Send, {LEFT}{LEFT}{SHIFTDOWN}aa{SHIFTUP}{ENTER}
  413. Send, {RIGHT}{RIGHT}
  414. Sleep, 100
  415. Send, ^c
  416. Sleep, 100
  417.  
  418. }
  419.  
  420. return
  421.  
  422. !v::
  423. Send % RegExReplace(clipboard, "\r\n?|\n\r?", "`n")
  424. return
  425.  
  426.  
  427. ^!p::pause
  428.  
  429.  
  430. !q::
  431.  
  432. InputBox, UserInput, Enter Message code
  433. if ErrorLevel
  434. MsgBox, CANCEL was pressed.
  435. else
  436. if Userinput=m8
  437. {
  438. Gui, Destroy
  439. Gui, Show , w500 h200, Vocabulary
  440. Gui, Add, Text, x10 y10 w100 Left,Choose an answer
  441. Gui, Add, DropDownList, w450 vMessageChoice, Dossier non conforme avec la TSB|TSB non-applicable car plusieurs Pcodes sont presents|TSB non-applicable car code defaut absent|Pour tout TSB, un CRI est obligatoire en cas de recidive
  442. Gui, Add, Button, default, OK
  443. return
  444. 2GuiClose:
  445. 2ButtonOK:
  446. Gui, Submit
  447. GuiControlGet, MessageChoice
  448. Clipboard = %MessageChoice%
  449. MsgBox, "%clipboard%" has been copied to clipboard.
  450. return
  451. }
  452.  
  453. else if Userinput=m9
  454. {
  455. Gui, Destroy
  456. Gui, Show , w500 h200, Vocabulary
  457. Gui, Add, Text, x10 y10 w100 Left,Choose an answer
  458. Gui, Add, DropDownList, w450 vMessageChoice, Dossier non conforme avec la TSB|TSB non-applicable car plusieurs Pcodes sont presents|TSB non-applicable car code defaut absent|Pour tout TSB, un CRI est obligatoire en cas de recidive
  459. Gui, Add, Button, default, OK
  460. return
  461. 3GuiClose:
  462. 3ButtonOK:
  463. Gui, Submit
  464. GuiControlGet, MessageChoice
  465. Clipboard = %MessageChoice%
  466. MsgBox, "%clipboard%" has been copied to clipboard.
  467. return
  468. }
  469.  
  470. else if Userinput=80
  471. {
  472. Gui, Destroy
  473. Gui, Show , w500 h200, Vocabulary
  474. Gui, Add, Text, x10 y10 w100 Left,Choose an answer
  475. Gui, Add, DropDownList, w450 vMessageChoice, Travaux non conformes aux methodes du constructeur|Nous ne pouvons pas accepter la recharge sans recherche de fuite|Incident concerne la Garantie, merci de vous rapprocher de votre RA
  476. Gui, Add, Button, default, OK
  477. return
  478. 4GuiClose:
  479. 4ButtonOK:
  480. Gui, Submit
  481. GuiControlGet, MessageChoice
  482. Clipboard = %MessageChoice%
  483. MsgBox, "%clipboard%" has been copied to clipboard.
  484. return
  485. }
  486.  
  487. else if Userinput=08
  488. {
  489. Gui, Destroy
  490. Gui, Show , w500 h200, Vocabulary
  491. Gui, Add, Text, x10 y10 w100 Left,Choose an answer
  492. Gui, Add, DropDownList, w450 vMessageChoice, Travaux inferieurs a 2h. Ne justifie pas de pret de vehicule|Aucun justificatif envoye pour ce VIN|Les photos ne justifient pas la prise en charge en garantie
  493. Gui, Add, Button, default, OK
  494. return
  495. 5GuiClose:
  496. 5ButtonOK:
  497. Gui, Submit
  498. GuiControlGet, MessageChoice
  499. Clipboard = %MessageChoice%
  500. MsgBox, "%clipboard%" has been copied to clipboard.
  501. return
  502. }
  503.  
  504.  
  505. else
  506. MsgBox, Not valid message code
  507.  
  508.  
  509. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement