Jump to content

Recommended Posts

Posted

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.

Posted (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 by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted

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 Psuedocode

HotKeySet("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

Posted (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

<{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. :whistle: I'd really like to move it farther down to avoid cluttering the top level of the Programs menu. Edited by azjerry
Posted (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.  :whistle:  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 Folder

However, I like Blue_Drache's idea and may migrate towards that someday.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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
  • Recently Browsing   0 members

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