 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
NewtoAutoHotKey Guest
|
Posted: Fri Aug 22, 2008 7:25 pm Post subject: Need Help with Clicks |
|
|
I can't seem to get the clicks to work.
I recorded this script. Basically all it is is a script to open an access database and click a macro command button on a form to run the macro.
I have also tried to do the window spy and type the mouse coordinates in exactly but that didnt work either.
I can't get any mouse clicks to work. Is there something in my computer security that is preventing them from working?
I have gotten basic scripts to run such as copying files and opening websites from a hotkey and stuff like that.
Any help would be greatly appreciated.
WinWait, ,
IfWinNotActive, , , WinActivate, ,
WinWaitActive, ,
MouseClick, left, 64, 20
Sleep, 100
WinWait, Start Menu,
IfWinNotActive, Start Menu, , WinActivate, Start Menu,
WinWaitActive, Start Menu,
MouseClick, left, 83, 167
Sleep, 100
WinWait, Microsoft Access,
IfWinNotActive, Microsoft Access, , WinActivate, Microsoft Access,
WinWaitActive, Microsoft Access,
MouseClick, left, 28, 40
Sleep, 100
MouseClick, left, 44, 66
Sleep, 100
WinWait, Open,
IfWinNotActive, Open, , WinActivate, Open,
WinWaitActive, Open, |
|
| Back to top |
|
 |
NewtoAutohotkey Guest
|
Posted: Fri Aug 22, 2008 10:01 pm Post subject: |
|
|
| Anyone? |
|
| Back to top |
|
 |
Rob08 Guest
|
Posted: Sat Aug 23, 2008 1:53 am Post subject: |
|
|
" Is there something in my computer security that is preventing them from working?"
Firewall perhaps |
|
| Back to top |
|
 |
Hasso
Joined: 23 Mar 2005 Posts: 158 Location: Germany
|
Posted: Mon Aug 25, 2008 9:32 am Post subject: |
|
|
Did you try | Code: | | SetTitleMatchMode, 2 | at the very begining of your Script?
In your script the windows title has exactly to be Microsoft Access - but I think that there is the name of a database too in it. If you use SetTitleMatchMode, 2, Microsoft Access only has to be part of the title. _________________ Hasso
Programmers don't die, they GOSUB without RETURN |
|
| Back to top |
|
 |
n-l-i-d Guest
|
Posted: Mon Aug 25, 2008 11:37 am Post subject: |
|
|
The MS Office applications are specific beasts. If you really want to automate them, try this: MS Office Automation Functions_via COM_thanks Sean.
HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat. |
|
| 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
|