Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot activate window/remove focus from Remote Desktop
#1
I just transferred to a new computer
Copied over the qm file and all my macros are in place.

I have a macro to copy from an Excel file to a window in a Remote Desktop

This macro has worked unchanged for years. On the new pc (same OS, Windows 7 64bit) it won't "act w1" after "act w2"

I realized I hadn't input the registration key. I did and the macro worked once. But everytime now it is back to not "act w1" after "act w2"

Here's a snippet:
Code:
Copy      Help
int w1=act(win("Microsoft Excel" "XLMAIN"))
int w2=win("gpserv - Remote Desktop Connection" "TscShellContainerClass")
spe 700

inp numberofitems "How many items?" "QM Input"
if numberofitems = 0
    end
inp warehouse "Warehouse?" "QM Input" "KD01"
quick = mes("Express?" "" "YN")

if quick = 'Y'
    act w1
    'CcR
    act w2
    wait 4
    'CvTT
    wait 1
    act w1
    'CcLD
    act w2
    'CvTTT

Instead of the 2nd 'act w1' (4th last line) working, it stays in focus on w2 and does the 'CcLD on w2

please help, this is a macro I use for work everyday.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)