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

Ask for Help (v2) • Double-Clicking on Image Control Saves the Path to Clipboard

$
0
0
Hello everyone,

I've noticed that double-clicking on the image saves the image path to the clipboard. Could someone please explain why this happens?

CODE:

#Requires Autohotkey v2.0
#SingleInstance Force

bid := "2277"

SG := Gui("+Resize", "Yr")
SG.BackColor := "White"
SG.Add("Picture", "w150 h150 xm", "ICO\" bid ".jpg").OnEvent("DoubleClick", OpenPic)
SG.OnEvent("Close", SG_Close)
SG.OnEvent("Escape", SG_Close)
SG.Show("w600 h600")



OpenPic(CtrlObj, Info){
SG.Opt("+OwnDialogs")
MsgBox A_Clipboard
Run(A_ScriptDir "\" CtrlObj.Text)
}


SG_Close(*){
ExitApp()
}



Thank you very much!

Statistics: Posted by Loop — Today, 17:57



Viewing all articles
Browse latest Browse all 579

Trending Articles