Jump to content

{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

 

Link to comment
Share on other sites

  • Developers

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 etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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...