Hi,
I have been working on an agent in which I am using win 32 apis in a process to build an Outlook email on the fly and making use of the keyboard events etc …
ie,
keybd_event 17, 0, 0, 0 ’ CTRL key down
keybd_event Asc ( “(End)” ), 0, 0, 0 ’ End Key down
keybd_event Asc ( “(End)” ), 0, 2, 0 ’ End Key up
keybd_event Asc ( “V” ), 0, 0, 0 ’ V key down ( Paste )
keybd_event Asc ( “V” ), 0, 2, 0 ’ V key up
Sleep (1)
keybd_event vKHome , 0, KeyDown, 0 ’ Home key down
keybd_event vKHome , 0, KeyUp, 0 ’ Home key up
keybd_event 17, 0, 2, 0 ’ CTRL key up
I have added ‘Use “Win32 Apis”’ into Options of the agent.
I also have LSConst here but don’t believe that would affect anything.
And I have ‘Const VKHOME = &H24’ also declared as I don’t know what the Asc option is for ‘Home’. Hence the mix of code. “(Home)” doesn’t work.
Agent works a treat on my DEV server.
I run the same agent on one of our live servers and get the error stated in the subject of this post.
Am a bit perplexed so can anyone throw any light onto my issue at all … ?
I am continuing to Google but am drawing a blank so far … !
Many thanks in advance.
Andy