The (shortcut - select - paste) part works but the list closes after i pick my choice.
Code: Select all
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Gui,+AlwaysOnTop
Mylist := "test1|test2|test3|test4"
^RButton:: ; left control + right click
;FileRead, Mylist, list.txt
Gui Font, s10, Verbana
Gui Add, DropDownList, gselected vitem x0 y0 w270 r45, %Mylist%
GuiControl, Choose, item, 1
MouseGetPos, xpos, ypos
Gui Show, x%xpos% y%ypos%
Gui Show, w270 h19, Quick values
Return
selected:
Gui, submit,nohide
sleep 150
GuiControlGet,item
Gui,destroy ; when i delete this it doesn't work
sendinput % clipboard := item
return
GuiEscape:
GuiClose:
gui,destroy
;ExitApp
Also i get this error when the list is open and i use the shortcut again.
Thanks in advance.
Question: Can i have 2 dropdown lists and save only from 1 list the choise to cursor position;