Jump to content
Sign in to follow this  
AHRIMANSEFID

{REQ}closed remote desktop applications stop?

Recommended Posts

Hi

Me Run App in VPS But Close the RDP Not Work App.

Plz Help Me.

 

While 1
$oie = _IECreate("http://esetoem.ir",0,1,1,0)
_IELoadWait($oIE)
Sleep(900)
MouseClick("left",778,571,1)
MouseClick("left",778,571,1)
_IELoadWait($oIE)
Sleep(3000)
_IELoadWait($oIE)

Sleep(3000)

WinWait ('Message from webpage', 'OK')
WinActivate ('Message from webpage', 'OK')
ControlClick ('Message from webpage', 'OK', 'Button1')

Sleep(300)
Sleep(300)
Send("{CTRLDOWN}{SHIFTDOWN}{TAB}{SHIFTUP}{CTRLUP}")



_IELoadWait($oIE)
Sleep(3000)
_IELoadWait($oIE)

Send("{CTRLDOWN}{SHIFTDOWN}{TAB}{SHIFTUP}{CTRLUP}")
Sleep(500)
Send("{CTRLDOWN}{SHIFTDOWN}{TAB}{SHIFTUP}{CTRLUP}")
Sleep(500)

Sleep(10000)
RunWait('taskkill /F /IM "iexplore.exe"')
Sleep(3000)

$ClearID = "4351"
                Local $pid = Run("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess " & $ClearID)

Sleep(10000)

Wend

 

Share this post


Link to post
Share on other sites

Send()  and MouseClick() commands will not work in disconnected session. Try using ControlSend()

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I can offer little advice on your problem, but I can offer advice on how you can get better help.

Start posting in better English like you are suddenly able to in these posts.

https://www.autoitscript.com/forum/topic/166272-reqneed-macro-viber-auto-send-massage/?do=findComment&comment=1214426
https://www.autoitscript.com/forum/topic/162948-load-mht-file/?do=findComment&comment=1186210

 

Instead of as though you're auditioning for a 1950's Tarzan movie.

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...