Jump to content
Sign in to follow this  
Guest Blaaguuu

getting a var from shortcut target?

Recommended Posts

Guest Blaaguuu

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...

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

*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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...