 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
tobadyurdead
Joined: 04 May 2008 Posts: 26
|
Posted: Mon Jul 21, 2008 1:57 pm Post subject: Problem is still here....loading ahk |
|
|
ok iv went to a couple posts and read them also i made a post a while back which didnt really help. so what happens is i open ahk from start menu (iv ttried other places also) and the system tray icon terminates before i can erase the old code and i dont even get an error message. iv tried looking through my files and i deleted the old code but it still terminates ( i think its because i need to reload the new script(which is the empty one)).
any help is appreciated
~Rob |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Mon Jul 21, 2008 2:14 pm Post subject: |
|
|
AutoHotkey does not behave like a "typical" program.
After you installed AutoHotkey, you can write AutoHotkey scripts. The script is nothing but a text file with commands, and a name-ending of ".ahk". AutoHotkey interprets and executes the commands of the text-file/script you launch. If you launch AutoHotkey from the start menu, AutoHotkey uses a file called AutoHotkey.ini that get's launched per default.
1. Create a new text-file, and rename it with a name-ending of ".ahk" (make sure it really ends that way, it might be you need to change file visibility settings in your Windows Explorer options). If AutoHotkey was installed properly, the icon of the file should change to the AutoHotkey one.
2. Open this file in Notepad (or any other plain-text editor, but don't use "rich text" programs like MS Office Word)
3. Write your commands
4. Save the file (make sure it is saved as an ".ahk" file)
5. Launch the file
AutoHotkey should now run the script
HTH |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Jul 23, 2008 4:26 am Post subject: |
|
|
Well...that seemedlike it was getitng me somwhere.
heres what i did
1) opened notepad and put in some random code like "mouseclick,left,567,678"
2)save as whatever.ahk (to desktop)
3)opened whatever.ahk (and it executed) but even still..if i open the AHK icon from desktop or start menu, the systen tray icon still only appears for a flash of a second, i suppose i could write code just from notepad like i did there, but that still seems like its not working properly. i really have no idea what to try next |
|
| Back to top |
|
 |
tobadyurdead
Joined: 04 May 2008 Posts: 26
|
Posted: Wed Jul 23, 2008 4:28 am Post subject: |
|
|
| **Woops posted that as a Guest for some reason xD... |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Jul 23, 2008 4:53 am Post subject: |
|
|
| Anonymous wrote: | Well...that seemedlike it was getitng me somwhere.
heres what i did
1) opened notepad and put in some random code like "mouseclick,left,567,678"
2)save as whatever.ahk (to desktop)
3)opened whatever.ahk (and it executed) but even still..if i open the AHK icon from desktop or start menu, the systen tray icon still only appears for a flash of a second, i suppose i could write code just from notepad like i did there, but that still seems like its not working properly. i really have no idea what to try next |
Edit your whatever.ahk to look like this:
| Code: | Coordmode, Mouse, Screen
MouseMove, 0, 0, 30
MouseMove, 100, 300, 30
MsgBox, Moved mouse, click ok to exit script (or double click on the tray icon to see what lines have been executed)
ExitApp |
|
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2558 Location: Australia, Qld
|
Posted: Wed Jul 23, 2008 7:59 am Post subject: |
|
|
| n-l-i-d wrote: | | If you launch AutoHotkey from the start menu, AutoHotkey uses a file called AutoHotkey.ini that get's launched per default. | That isn't completely accurate, as of February 2007:
| Changelog wrote: | | Changed: When AutoHotkey.exe is launched without a script specified, it will now run (or prompt you to create) the file AutoHotkey.ahk in the My Documents folder. The only exception is when AutoHotkey.ini exists in the working directory, in which case it uses the old behavior of executing that file. |
|
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 745 Location: Berlin
|
Posted: Wed Jul 23, 2008 9:32 am Post subject: |
|
|
Ah, ok, thanks for the clarification _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
tobadyurdead
Joined: 04 May 2008 Posts: 26
|
Posted: Wed Jul 23, 2008 3:52 pm Post subject: |
|
|
| Ok ig ot it working everyone =D . TY everybody for all your help |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|