What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Thx ;)]Little help for Opendlg and .lnk file pls

Pages: (2): « First [ 1 ] 2 » Last »
[Thx ;)]Little help for Opendlg and .lnk file pls
Author: Message:
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. Undecided  [Thx ;)]Little help for Opendlg and .lnk file pls
Its possible to get the parameter of a .lnk file when i select them with this code????

code:
var oOpenDlg = new ActiveXObject("UserAccounts.CommonDialog");
//var FSO = new ActiveXObject("Scripting.FileSystemObject");
//var sourceFile = pPlusWnd.GetControlText('EdtFrom').replace(/(^\s*)|(\s*$)/g, '');
// Open a Common OpenFile dialog
oOpenDlg.FileName = sourceFile;
oOpenDlg.Filter = 'Game Executable (*.exe,*.lnk)|*.exe;*.lnk'

oOpenDlg.FilterIndex = (oOpenDlg.FileName === '' || oOpenDlg.Filter.indexOf("." + FsObj.GetExtensionName(oOpenDlg.FileName).toUpperCase() + ';') !== -1) ? 1 : 2;
oOpenDlg.Flags = 0x1000 | 0x800 | 0x4;
oOpenDlg.ShowOpen();
edit omg

This post was edited on 03-14-2007 at 02:55 AM by Flash.
My script: Psdp
03-03-2007 02:39 PM
Profile PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: Little help for Opendlg and .ink file pls
what is an ink file?
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
03-03-2007 02:41 PM
Profile PM Web Find Quote Report
MeEtc
Patchou's look-alike
*****

Avatar
In the Shadow Gallery once again

Posts: 2200
Reputation: 60
38 / Male / Flag
Joined: Nov 2004
Status: Away
RE: Little help for Opendlg and .ink file pls
if you mean a shortcut file, the extension is LNK
03-03-2007 03:07 PM
Profile PM Web Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. Little help for Opendlg and .lnk file pls
lol thx but i want, when is select the lnk file with opendialog its possible to got the parameter eg:
"H:\Battlefield 2142\BF2142Launcher.exe" +menu 1 +fullscreen 1 +eaAccountName Flash +eaAccountPassword 112323 +soldierName Flash27

This post was edited on 03-03-2007 at 08:58 PM by Flash.
My script: Psdp
03-03-2007 08:58 PM
Profile PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. RE: Little help for Opendlg and .lnk file pls
:( no one know that !
My script: Psdp
03-12-2007 03:01 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Little help for Opendlg and .lnk file pls
Look at the SendTo script it has it in it. I just dont have time right now to post it. If you can't find it I will point you in the direction later.
03-12-2007 07:01 AM
Profile E-Mail PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. RE: Little help for Opendlg and .lnk file pls
hum i seefor creat a shortcut and add argument but for get him i dont know Matty :(
My script: Psdp
03-13-2007 12:05 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Little help for Opendlg and .lnk file pls
code:
function OnEvent_Initialize(_bMessengerStart){
    /*
        Initialize the shortcut to read the properties
    */

    var _oShortcut = new ActiveXObject('WScript.Shell' ).CreateShortcut('C:\\firefox.exe.lnk');

    /*
        Print out the properties of the icon
    */

    Debug.Trace('.TargetPath : '+_oShortcut.TargetPath);
    Debug.Trace('.Arguments : '+_oShortcut.Arguments);
    Debug.Trace('.IconLocation : '+_oShortcut.IconLocation);   
}
03-13-2007 06:48 AM
Profile E-Mail PM Find Quote Report
Flash
Junior Member
**

Avatar
All time Ready

Posts: 86
Reputation: 2
44 / Male / Flag
Joined: Aug 2006
O.P. RE: Little help for Opendlg and .lnk file pls
oh ok thx :P i try this after my job :D

Thx matty that work perfectly :D

This post was edited on 03-14-2007 at 07:03 AM by WDZ.
My script: Psdp
03-13-2007 09:30 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: [Thx ;)]Little help for Opendlg and .lnk file pls
If this is for starting up programs, you don't need to look into the shortcut file. A shortcut file is especially there so you simply can run it like any other program and it will start up the 'parameter' (as you call it) anyways.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-14-2007 07:03 AM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On