Jump to content
Sign in to follow this  
AHRIMANSEFID

{REQ}closed remote desktop applications stop?

Recommended Posts

AHRIMANSEFID

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
AHRIMANSEFID

yes

me active multi RDP.

Share this post


Link to post
Share on other sites
Jos

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                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
AHRIMANSEFID

sorry sir

plz help me in fixed code.

thanks

Share this post


Link to post
Share on other sites
JohnOne

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.