| Author |
Message |
Forum: Support Topic: ErrorLevel of comspec does not return |
| FlowPEE |
|
Posted: December 5th, 2007, 12:04 pm
|
|
Replies: 2 Views: 542
|
| Hi. I should have mentioned this. I also tried it without using comspec but also without success. I now have a solution: redirecting stdout and stderr to a file and read its content: command = SCHTASKS /Create /TN taskname /RU domain\user /RP password /SC ONCE /ST 02:00:00 /SD 01/01/2999 /TR "f... |
|
 |
Forum: Support Topic: ErrorLevel of comspec does not return |
| FlowPEE |
|
Posted: December 4th, 2007, 11:23 am
|
|
Replies: 2 Views: 542
|
| Hi all, i have a problem getting the return code / ErrorLevel of a command I run. It always returns 0. Here is what I am doing command = SCHTASKS /Create /TN taskname /RU domain\user /RP password /SC ONCE /ST 02:00:00 /SD 01/01/2999 /TR "file.bat" ; I am using /K to keep the cmd open for d... |
|
 |
Forum: Scripts Topic: COM Helper |
| FlowPEE |
|
Posted: July 3rd, 2007, 6:23 pm
|
|
Replies: 155 Views: 44667
|
| Sean, I managed to send keystrokes to Citrix finally! The problem was, that one have to set first the property "Outputmode" to the value 1. So only then you have a valid session identifier and there you can attach with the keyboard. I have another question regarding your invoke function. N... |
|
 |
Forum: Scripts Topic: COM Helper |
| FlowPEE |
|
Posted: June 27th, 2007, 12:11 pm
|
|
Replies: 155 Views: 44667
|
Sean,
that didn't work either
So I guess I have to find a way to talk to Citrix support.
Thanks alot for your help though!
Flo |
|
 |
Forum: Scripts Topic: COM Helper |
| FlowPEE |
|
Posted: June 27th, 2007, 10:23 am
|
|
Replies: 155 Views: 44667
|
| Sean, thanks for your reply ! Unfortuanetely, that is not working. ErrorLevel contains 0 and A_LastError contains 1008. The reg key does NOT exist. Maybe there is the/a problem? Why is the CLSID not registered and do I have a chance to add it to the registry? I tried your script with the new cohelpe... |
|
 |
Forum: Scripts Topic: COM Helper |
| FlowPEE |
|
Posted: June 26th, 2007, 5:08 pm
|
|
Replies: 155 Views: 44667
|
| Hi Sean + others, very helpful script you wrote accessing COM. I have some problems, maybe you can give me a hint on how to solve my problem. I am trying to communicate with the Citrix API through the ICA client. I am new to this topic but I have to figure out how I can send keystrokes and maybe als... |
|
 |
Forum: Support Topic: detection of application error popup won't work |
| FlowPEE |
|
Posted: June 11th, 2007, 3:47 pm
|
|
Replies: 6 Views: 628
|
| Hi, sorry for the confusion. the problem is that the window cannot be found with AHK wenn the computer is locked. So what I do within AHK to check whether the error window exists is to determine all hidden and non hidden windows: winget, ids, list, , , Program Manager This works well when the comput... |
|
 |
Forum: Support Topic: Running AHK in Scheduled Tasks on Server 2003 |
| FlowPEE |
|
Posted: June 6th, 2007, 8:38 am
|
|
Replies: 10 Views: 1782
|
| Hi, although this thread is a bit old... first of all, your computer might need to be locked, and NOT logged out. Second, you'd better use PostMessage and/or SendMessage to access the windows. So use Winspector Spy to get information about the windows you would like to control and then send a WM_COM... |
|
 |
Forum: Support Topic: detection of application error popup won't work |
| FlowPEE |
|
Posted: June 6th, 2007, 8:20 am
|
|
Replies: 6 Views: 628
|
| Guys, thanks for your answer. I am aware of the problems accessing windows in the background etc. Thus, I always use PostMessage or SendMessage. However, my problem here is, that I even can not detect the window when the computer is NOT locked. This is an error popup from an executable. The exe is a... |
|
 |
Forum: Support Topic: detection of application error popup won't work |
| FlowPEE |
|
Posted: June 4th, 2007, 5:51 pm
|
|
Replies: 6 Views: 628
|
| Hi folks, I have a weird problem when trying to detect a window. An application (not a public one) throws an application error execption when exiting. I have no clue why this happens every time but I want to get rid of the popup: http://www.linux-infobase.net/pin1.jpg The main problem here is that A... |
|
 |
Forum: Support Topic: PostMessage interpreted as SendMessage ?? |
| FlowPEE |
|
Posted: March 1st, 2007, 4:35 pm
|
|
Replies: 7 Views: 788
|
| hey guys, so it is working now. 2 things: first of all, I wanted to send a message to a window area of the main application (a ibm 3270 terminal emulation client) so when I do a Postmessage to the terminal window, a SendMessage is shown for the mainwindow. My mistake... However, the problem was, tha... |
|
 |
Forum: Support Topic: PostMessage interpreted as SendMessage ?? |
| FlowPEE |
|
Posted: March 1st, 2007, 1:10 pm
|
|
Replies: 7 Views: 788
|
| hmm. But there must be another difference. Because what I said, manually pressing the ENTER key shows a little (P) in the message window of winspector. So I guess that this is a PostMessage. There is no return value. But when using AHK (even with PostMessage), there is a (S) in the message window of... |
|
 |
Forum: Support Topic: PostMessage interpreted as SendMessage ?? |
| FlowPEE |
|
Posted: March 1st, 2007, 11:29 am
|
|
Replies: 7 Views: 788
|
| hmm. just tried it also with a dllcall DllCall("PostMessage", "uint", MyHwnd, "uint", 0x100, "uint", 0x0D, "uint", 0) It is exactly the same behaviour as with the builtin Sendmessage / Postmessage function. Am I missing something? :roll: thanks |
|
 |
Forum: Support Topic: PostMessage interpreted as SendMessage ?? |
| FlowPEE |
|
Posted: February 28th, 2007, 7:24 pm
|
|
Replies: 7 Views: 788
|
| Hi, I am trying to press a key with WM_KEYDOWN. However. When I use PostMessage, 0x100, 0x0D, , MyControl, MyWinTitle I can see in Winspector Spy, that a SendMessage is send to my application rather than a PostMessage. Unfortunately, the app. awaits a PostMessage :-( So with AHK, I can see in Winspe... |
|
 |
| Sort by: |