theguy0000 Posted February 18, 2006 Share Posted February 18, 2006 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 Link to comment Share on other sites More sharing options...
GaryFrost Posted February 18, 2006 Share Posted February 18, 2006 (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 February 18, 2006 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. Link to comment Share on other sites More sharing options...
greenmachine Posted February 18, 2006 Share Posted February 18, 2006 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") Link to comment Share on other sites More sharing options...
GaryFrost Posted February 18, 2006 Share Posted February 18, 2006 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. Link to comment Share on other sites More sharing options...
greenmachine Posted February 18, 2006 Share Posted February 18, 2006 True. (Seems like he should have known that by now though). Link to comment Share on other sites More sharing options...
theguy0000 Posted February 18, 2006 Author Share Posted February 18, 2006 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 Link to comment Share on other sites More sharing options...
theguy0000 Posted February 18, 2006 Author Share Posted February 18, 2006 (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 February 18, 2006 by theguy0000 The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN 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