Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Shortcut tools optimisation

$
0
0
Greetings

i recently renewed with AHK and developped a shortcut to access folders i often use in my job.
i made the tool so anyone with a small amount of observation can adapt it to his reality.

it's perferc to open up new folders but when in word, if i want to use the tool, it does not work.

i would like you to help me add a function (like instead of double click, a rightclick? ou adding a button, etc...) that would copy the path programmed in the code instead of opening a new window.

that way, i would just have to manually paste the path in word to go to the desired location.

here is the code :
-------------------------

CODE:

;section 1
^F1::
Gui, +AlwaysOnTop +toolWindow
Gui, Add, ListBox, gAction vChoice w200 h200, 40036-C|40036-R|40054-C|40068-SP|40068-A
return

;section 2
F1::
coordmode, mouse, screen
MouseGetPos, xpos, ypos
Gui, Show, x%xpos% y%ypos%, Raccourcis
return

Action:
If ((A_GuiEvent = "DoubleClick") || (Trigger_Action))
{

Gui, Submit
If (Choice = "40036-C")
Run, explorer.exe X:\07-TDE\PROJETS\40036-MIN_\4 PROJET\2 INGENIERIE\02 TECH\01 CONCEPT\01 DOC PRJ
If (Choice = "40036-R")
Run, explorer.exe X:\07-TDE\PROJETS\40036-MIN_\4 PROJET\2 INGENIERIE\03 RÉF
If (Choice = "40054-C")
Run, explorer.exe X:\07-TDE\PROJETS\40054-MIN_\4 PROJET\2 INGENIERIE\02 TECH\01 CONCEPT\01 DOC PRJ
If (Choice = "40068-SP")
Run, explorer.exe X:\07-TDE\PROJETS\40068-MIN_\04 SERV PROF
If (Choice = "40068-A")
Run, explorer.exe X:\07-TDE\PROJETS\40068-MIN_\1 ADMINISTRATION

}

----------------------------
thanks!

Statistics: Posted by belmaax — 43 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles