azjerry Posted August 5, 2005 Posted August 5, 2005 I've several scripts that I use as Windows macros. Each one is on the desktop and has a hot key assigned to it. I'd like to move them off the desktop to another folder. But when I move them the hot-key doesn't work any more. Suggestions on how to make them work from another location? This is on Win2k and XP.
herewasplato Posted August 5, 2005 Posted August 5, 2005 (edited) Try making a folder most anywhere under the Start Menu\Programs structure or just the Start Menu folder... i.e. I have an OS "Shortcut key" on the calculator shorcut... ...and that is several levels down: .......\All Users\Start Menu\Programs\Accessories edit: typo Edited August 5, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
Blue_Drache Posted August 5, 2005 Posted August 5, 2005 I've several scripts that I use as Windows macros. Each one is on the desktop and has a hot key assigned to it. I'd like to move them off the desktop to another folder. But when I move them the hot-key doesn't work any more. Suggestions on how to make them work from another location? This is on Win2k and XP.<{POST_SNAPBACK}>Writing a TSR with all the programs you want hotkeyed set as functions.Example PsuedocodeHotKeySet("a","_func1") HotKeySet("b","_func2") HotKeySet("c","_func3") HotKeySet("d","MyExit") While 1 Sleep(10) WEnd Exit Func _func1() ; Function here EndFunc Func _func2() ; Function here EndFunc Func _func3() ; Function here EndFunc Func MyExit() Exit EndFunc Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
azjerry Posted August 8, 2005 Author Posted August 8, 2005 (edited) Try making a folder most anywhere under the Start Menu\Programs structure or just the Start Menu folder...i.e. I have an OS "Shortcut key" on the calculator shorcut......and that is several levels down:.......\All Users\Start Menu\Programs\Accessoriesedit: typo<{POST_SNAPBACK}>I only can get this to work if it's a link to the compiled .exe and it's in my Programs folder. If I move it one folder below that or under All Users it doesn't work anymore. I'd really like to move it farther down to avoid cluttering the top level of the Programs menu. Edited August 8, 2005 by azjerry
herewasplato Posted August 9, 2005 Posted August 9, 2005 (edited) I only can get this to work if it's a link to the compiled .exe and it's in my Programs folder. If I move it one folder below that or under All Users it doesn't work anymore. I'd really like to move it farther down to avoid cluttering the top level of the Programs menu.<{POST_SNAPBACK}>Strange little OS quirk... If you move a shortcut to a folder like this, you might have to change the shortcut key to some temp key, use that new/temp shortcut key at least once and then change it back to what you wanted... or just create fresh shortcuts in the new location and assign fresh shortcut keys.As for depth - I tested this on an "uncompiled" au3 file in this folder:C:\Documents and Settings\All Users\Start Menu\Programs\AutoIt v3\New Folder\New Folder\New Folder\New FolderHowever, I like Blue_Drache's idea and may migrate towards that someday. Edited August 9, 2005 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
MSLx Fanboy Posted August 9, 2005 Posted August 9, 2005 You could also use the _IsPressed() udf if you want a key combination... Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate())
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