Guest Blaaguuu Posted January 27, 2005 Share Posted January 27, 2005 i was jsut wonderign if there is a way for autoit to get a variable from soemthign added to the end of the Target in a shortcut to the script... like say, the shortcut 's target is "C:\whatever.au3" Swap1 or "C:\whatever.au3" -swap "1" and be able to get that info and use it within the script... Link to comment Share on other sites More sharing options...
martin Posted January 27, 2005 Share Posted January 27, 2005 You could write a script to open up My Computer select the drive select the folders as needed to get to where the shortcut is, click on the shortcut, right click and choose properties, click in the target box, send ^c to copy to the clipboard, paste the clipboard to a string {ClipGet()} strip the end or the part of the string after the second set of inverted commas and you've got it. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Valik Posted January 27, 2005 Share Posted January 27, 2005 *cough* FileGetShortcut() *cough* Link to comment Share on other sites More sharing options...
martin Posted January 27, 2005 Share Posted January 27, 2005 *cough* FileGetShortcut() *cough*<{POST_SNAPBACK}>Touche!Thanks Valik I didn't know about that. You're not so lazy and maybe I'm beginning to see things your way. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now