Jump to content
Sign in to follow this  
Noldor

FileOpenDialog to open *.ink

Recommended Posts

Noldor

Hi

I need get info about shortcut targeted by FileOpenDialog, but when i click on open the dialog jumps on target of shortcut...

i use this code

$Path=FileOpenDialog("Choose Shortcut", @DesktopDir, "Shortcut(*.ink)", 3, "", $MainGUI) 
$Link=FileGetShortcut ($Path)

PS: If this allready been solved anywhere, sorry i didn't found it.

Share this post


Link to post
Share on other sites
Yashied

Hi

I need get info about shortcut targeted by FileOpenDialog, but when i click on open the dialog jumps on target of shortcut...

i use this code

$Path=FileOpenDialog("Choose Shortcut", @DesktopDir, "Shortcut(*.ink)", 3, "", $MainGUI) 
$Link=FileGetShortcut ($Path)

PS: If this allready been solved anywhere, sorry i didn't found it.

See following topic.

http://www.autoitscript.com/forum/index.php?s=&showtopic=64057&view=findpost&p=477865

Edited by Yashied

Share this post


Link to post
Share on other sites
Noldor

this works for me:

$Path=FileOpenDialog("Choose Shortcut", @DesktopDir, "Shortcut(*.lnk)", 3, "")
$Link=FileGetShortcut ($Path)
MsgBox(64,"",$link[1])

not sure if you meant it to be .ink or .lnk, but shortcut links are .lnk

thanks solved... i feel embarassed  :D for that dumb mystake sorry

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×