Sign in to follow this  
Followers 0
theguy0000

cannot run file

7 posts in this topic

If Not FileExists (@StartupDir&"\AutoAway.lnk") Then FileCreateShortcut (@ScriptFullPath, @StartupDir&"\AutoAway.lnk")
FileInstall ("autoaway_set_yahoo.exe", "autoaway_yim.exe")

HotKeySet ( "^!a", "setAway" )

While 1
    Sleep(100)
WEnd

Func setAway()
    Run (@ProgramFilesDir&"\autoaway\autoaway_yim.exe")
Endfunc

it says that it cant run the file when i press ctrl+alt+a because it cant find the file...but i just FileInstalled the file so why cant it find it?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If Not FileExists (@StartupDir&"\AutoAway.lnk") Then FileCreateShortcut (@ScriptFullPath, @StartupDir&"\AutoAway.lnk")
FileInstall ("autoaway_set_yahoo.exe", "autoaway_yim.exe")

HotKeySet ( "^!a", "setAway" )

While 1
    Sleep(100)
WEnd

Func setAway()
    Run (@ProgramFilesDir&"\autoaway\autoaway_yim.exe")
Endfunc

it says that it cant run the file when i press ctrl+alt+a because it cant find the file...but i just FileInstalled the file so why cant it find it?

FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir & "\autoaway_yim.exe")

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir & "\autoaway_yim.exe")

I think you missed a \autoaway in there... It looks like it should be:

FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir & "\autoaway\autoaway_yim.exe")

Share this post


Link to post
Share on other sites

I think you missed a \autoaway in there... It looks like it should be:

FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir & "\autoaway\autoaway_yim.exe")

Yep, but I think he'll get the idea, that if he want's to runit from there he'll have to install it to there.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

True. (Seems like he should have known that by now though).

Share this post


Link to post
Share on other sites

ohh...duh...I knew that lol (ok not really lol)

dunno what I was thinking there


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

oh wait...

If Not FileExists (@StartupDir&"\AutoAway.lnk") Then FileCreateShortcut (@ScriptFullPath, @StartupDir&"\AutoAway.lnk")
FileInstall ("autoaway_set_yahoo.exe", @ProgramFilesDir&"\autoaway\autoaway_yim.exe")

HotKeySet ( "^!a", "setAway" )

While 1
    Sleep(100)
WEnd

Func setAway()
    Run (@ProgramFilesDir&"\autoaway\autoaway_yim.exe")
Endfunc

t still says it cant find it

edit: its installing to @ProgramFilesDir\autoaway_yim.exe instead of in /autoaway...why wqould it do that?

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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  
Followers 0