| Author |
Message |
Topic: best way to handle errors? |
scamper_22
Replies: 4
Views: 268
|
Forum: Ask for Help Posted: Tue Nov 24, 2009 3:59 pm Subject: best way to handle errors? |
Hi all,
just wondering what is the recommended way to handle errors.
In my case, I am using autohotkey to press some buttons and set some text of some controls. I ran into some issues where it ... |
Topic: help finding classID of window |
scamper_22
Replies: 4
Views: 376
|
Forum: Ask for Help Posted: Fri Nov 13, 2009 12:45 am Subject: help finding classID of window |
argh... wouldn't u know it.., AU3_Spy gives me Edit9.
thanks guys. We only copy the autohotkey exec, so I forgot about the au4_spy program. Thanks for the remineder. |
Topic: help finding classID of window |
scamper_22
Replies: 4
Views: 376
|
Forum: Ask for Help Posted: Thu Nov 12, 2009 11:26 pm Subject: help finding classID of window |
Hi all,
I have this external application that I am trying to insert some text into an edit box.
So I am using 'ControlSetText'.
I am trying to find the ClassNN (the classname and instance n ... |
Topic: how to verify sendinput |
scamper_22
Replies: 6
Views: 679
|
Forum: Ask for Help Posted: Tue Oct 13, 2009 8:14 pm Subject: how to verify sendinput |
Okay looks like the problem is solved.
Changed SendInput to ControlSend.
No reports of the problem since then.
Figure it must have something to do with activating the window. |
Topic: how to verify sendinput |
scamper_22
Replies: 6
Views: 679
|
Forum: Ask for Help Posted: Sat Oct 03, 2009 2:34 pm Subject: how to verify sendinput |
Thanks sinkfaze.
Yeah, last thing I tried was adding a retry loop around my script (not in the script itself). So it would call autohotkey.exe 3 times with my script spacing about 10 seconds apart ... |
Topic: how to verify sendinput |
scamper_22
Replies: 6
Views: 679
|
Forum: Ask for Help Posted: Fri Oct 02, 2009 6:49 pm Subject: how to verify sendinput |
"Can you post you AHK code?"
It's very very basic
-------------
;Autohotkey script to send keys
;%1 is the window name to match
;%2 is the keys to send
SetTitleMatchMode RegEx ... |
Topic: how to verify sendinput |
scamper_22
Replies: 6
Views: 679
|
Forum: Ask for Help Posted: Fri Oct 02, 2009 5:27 pm Subject: how to verify sendinput |
Hi all,
I'm using autohotkey as part of an automation project.
One of the tasks is to have autohotkey send keyinput via
SendInput
The program then takes some action on that keyboard input.
... |
Topic: what am I doing wrong... send text to notepad? |
scamper_22
Replies: 13
Views: 1030
|
Forum: Ask for Help Posted: Fri May 15, 2009 6:29 pm Subject: what am I doing wrong... send text to notepad? |
Thanks for the help guys.
Badmojo... just for record, the issue with my original script was that it was not waiting for the window to come up? The ifwinexist would check before the window came up ... |
Topic: what am I doing wrong... send text to notepad? |
scamper_22
Replies: 13
Views: 1030
|
Forum: Ask for Help Posted: Fri May 15, 2009 6:26 pm Subject: okie... this works now... |
---
SetTitleMatchMode 2
Run, notepad.exe
;WinWait, Notepad, , 3
WinWait , Notepad, , 3, ++,
if ErrorLevel <>
{
WinActivate
Send, Dude, what the hell. this is notepad
}
----
I ... |
Topic: what am I doing wrong... send text to notepad? |
scamper_22
Replies: 13
Views: 1030
|
Forum: Ask for Help Posted: Fri May 15, 2009 6:22 pm Subject: this kind of works.... |
badmojo's one works. For some reason
The top two lines of his scrpit would not work
---
SendMode, Input, C:\My Documents, max
---
So I ran this:
-----
Run, notepad.exe
WinWait, Notepad, , ... |
Topic: what am I doing wrong... send text to notepad? |
scamper_22
Replies: 13
Views: 1030
|
Forum: Ask for Help Posted: Fri May 15, 2009 6:18 pm Subject: what am I doing wrong... send text to notepad? |
anon,
no, I tried that (exactly copied and pasted)... still no text in notepad.
Right now it is in this state:
--------------
DetectHiddenText, On
SetTitleMatchMode 2
SetTitleMatchMode Slow
... |
Topic: what am I doing wrong... send text to notepad? |
scamper_22
Replies: 13
Views: 1030
|
Forum: Ask for Help Posted: Fri May 15, 2009 5:30 pm Subject: what am I doing wrong... send text to notepad? |
Hi all,
I'm writing my first script.
-------
Run, Notepad.exe, C:\My Documents, max
IfWinExist, Notepad
{
WinActivate
SendInput, Dude, what the hell. this is notepad
}
------
What I ... |
| |