Jump to content

easy question...


Guest Beefteck
 Share

Recommended Posts

Guest Beefteck

Ok, basicly here is my question...

*What is the extention for a shortcut (Example, Shortcut to Internet Explorer)

For more of an example (lol) IE.exe

^^

extention

thank-you! :whistle:

Link to comment
Share on other sites

  • Moderators

straight from help

; Sets a [color="#ffffff"]shortcut[/color] with ctrl+alt+t hotkey
FileCreateShortcut(@WindowsDir & "\Explorer.exe",@DesktopDir & "\[color="#ffffff"]Shortcut[/color]  Test.lnk",@WindowsDir,"/e,c:\", "This is an Explorer link;-)", @SystemDir & "\shell32.dll",  "^!t",  "15",  @SW_MINIMIZE)

8)

:whistle::) errr did you set the shortcut text to white?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

:whistle::) errr did you set the shortcut text to white?

actuall, no

I did a search in help for "shortcut". When i clicked on the "creatshortcut()" the word shortcut was highlighted. then when i copied the post ( that has a highlighted " shortcut" ) and pasted it here,

it showed as white

???.... who knows why

8)

NEWHeader1.png

Link to comment
Share on other sites

Can you do something like that with a scheduled task, or can it only be copied? I'm going to look at their filetype tonight, but if anyone's scheduled tasks using autoit, tell me.

Did an install script recently that called for a scheduled task to be created with multiple schedule times. I never did figure that out, but just running SCHTASKS.EXE via RunWait() took care of business. To get multiple scheduling I just created a duplicate task for each schedule. Sort of a brute-force attack, but still better than scripting the Scheduled Tasks GUI, control-by-control, which was my other option... :P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

Thanks. You put the parameters for the SCHTASKS in the runwait, right (sorry, I'm a noob.)?

That's the idea. RunWait() returns the %ErrorLevel% from the command after it runs:

; Change task logon account/password
$ExtCmd = 'SCHTASKS /Change /tn MyTask /ru ' & @ComputerName & '\MyUser /rp ' & $MyPass
$RetCode = RunWait($ExtCmd, @TempDir, @SW_MINIMIZE)
If $RetCode = 0 Then
    MsgBox(64, "Success", "Successfully changed user/password for MyTask scheduled task.")
Else
    MsgBox(16, "Error!", "Error occured while changing user/password for MyTask scheduled task.")
EndIf

:P

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...