New
#1
Batch file for HOME key?
Is it possible to write batch file to press Home key?,if not is there a way to push Home with a script?
Thanks
Is it possible to write batch file to press Home key?,if not is there a way to push Home with a script?
Thanks
Welcome to the Forums.
Autohotkey
To send Home key when the script is run try this
It will send Home to the active window when run, then quitCode:#NoTrayIcon Sendmode Input Send {Home}
It can either be run as script or compiled to an exe file.
Edit: AutoHotkey is free by the way.
Thanks milesahead
tried with no luck,
Here is what I get
C:\larry\desktop\home.vbs
Line 1
Char:1
Error: Expected statement
Code: 800A0400
Source Microsoft VBScript compilation error
Thanks MilesAhead
this might be over my head a little until I learn.I download program and added new script.Now do I edit the script and clear notepad and paste your script here and save.Then do I compile it? Thanks for hanging in there with me.
You can use any plain text editor. Notepad is fine. Save the script to a file with .ahk extension. Example home.ahk. Autohotkey comes with help that explains how to run programs.
The thing is when you run this program it will send the home key to the active window as if you pressed it. So, if you are typing in a command prompt to run it, that will be the window that gets the home key sent to it. Probably not what you want. You should spell out more what you want to do with it and why you need the macro.
There are dedicated forms for this already here:
Support - AutoHotkey Community
Again Thank You for your time
I can not make it work right, by clicking the script I'm not active to the program any more. What I have is a movie list program on my tv which is hooked to my computer. Trying to move around in program with only a wireless mouse,that part works great. There is times when I need to hit home key to default to top of list,with no keyboard thats hard to do.Been using OSK for a work around,but thats a pain all the time.Was hoping for a icon on task bar to do this,not sure how to push the icon and stay active in the program?, not sure this is possible.
It can be done easily. Just explain what you need on that AHK forum in the link. Something easy like that I'm sure someone will help you out. That's what that forum is for.