Jump to content

Doesnt seem to work properly under remote desktop


BOUNCER
 Share

Recommended Posts

I have a simple script that presses hotkeys every hour to check for mail

it runs fine when i run it manually through the scheduled tasks...but when i exit remote desktop (user not logged out) and check , it doesnt seem to run properly

i remember i had another issue with winactive in remote desktop a while ago

is there any known issues with remote desktop or how can i get around this problem

Sleep(100)
Send("!i") 
Sleep(100)
Send("!o") 
Sleep(1000)
If WinExists("[CLASS:#32770]", "Nothing to send") Then
    ControlClick("[CLASS:#32770]", "", "[CLASS:Button; TEXT:OK; INSTANCE:1]")
EndIf
Edited by BOUNCER
Link to comment
Share on other sites

ive been doing some tests, setting a test schedule task and getting off remote desktop to see how it executes...

I left it WITH the "Nothing to send" dialog box open, to see if it closed the box

Sleep(100)
Send("!i") 
Sleep(100)
Send("!o") 
Sleep(1000)
If WinExists("[CLASS:#32770]", "Nothing to send") Then
    ControlClick("[CLASS:#32770]", "", "[CLASS:Button; TEXT:OK; INSTANCE:1]")
EndIf
Run("notepad.exe") << just to see if it actually ran the task

what happened was , it did NOT close the dialog box (which i left open), but it did run notepad.exe...

it also did not send the buttons

so what the hell is going? keep in mind it works perfectly fine when im connected to remote desktop session, when i disconnect is when this random shyt starts not working

it seems like this is by design of windows...but how can i get around to getting this to work properly

Edited by BOUNCER
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...