AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

runnning AHK with remote desktop minimized?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
TeeJay
Guest





PostPosted: Mon Mar 03, 2008 11:01 am    Post subject: runnning AHK with remote desktop minimized? Reply with quote

Hi *,
I have following problem:

My AHK.exe runs fine, even when I start it remotely via "remote desktop".
But when I minimze the "remote desktop"-window, the AHK.exe stops and resumes working only after restoring the "remote desktop"-window.

My AHK.exe is physically located on the remote machine.
I start my AHK.exe manually in the "remote desktop"-window.
I do not log off, just minimize the "remote desktop"-window.

I searched the forum but did not find an answer to this scenario...
Closest description of my problem is that of bubamarkus, posted Thu Sep 01, 2005 10:39 pm, in "Remote Desktop problem", but no really solution was given.

Any solutions in the meantime?
Thanks in advance,
TeeJay
Back to top
wOxxOm



Joined: 09 Feb 2006
Posts: 319

PostPosted: Tue Mar 04, 2008 12:37 pm    Post subject: Reply with quote

I suppose this:

RemoteAdmin server process launches a program on request of remote user (you). So R.A. is a parent process for AHK. Once you minimize your RA session client it signals the RA-server that. RA-server thinks now that since the client is minimized it does not need anything and to consume CPU power it halts any activity of itself and its child processes.

If I am right then either find a setting (may be hidden) for your RA server/client, or try to promote AHK processes into global context (seems like a virus?), or find another RA software
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CraSH23000



Joined: 22 Jun 2007
Posts: 38

PostPosted: Thu Mar 06, 2008 10:55 pm    Post subject: Reply with quote

I also have had this problem, I thought putting my actual ahk script onto the system I was remote connecting to would solve the problem, but minimizing halts all progress.

So I just leave it un-maximized behind my other windows.

A solution would be very nice though.
_________________
What is real in our infinitely alternating perception of reality?
Back to top
View user's profile Send private message
none
Guest





PostPosted: Wed Mar 12, 2008 4:22 am    Post subject: Reply with quote

I hate to say this on an AutoHotkey forum but Autoit can do it. I had the same problem with Remote Desktop and changed to Autoit - all works fine now. The code for Autoit was a little trickey for me sometimes but I got it done.
Back to top
none
Guest





PostPosted: Wed Mar 12, 2008 4:32 am    Post subject: Reply with quote

just a little note about Autoit - it seems like the send commands didn't like to work in Remote Desktop when minimized but I got around that by using the ControlSend command.

I hope this helps someone
Back to top
TeeJay
Guest





PostPosted: Wed Mar 12, 2008 4:50 pm    Post subject: Reply with quote

Seems to be trickier than expected...

I tested running a batch script (copying a large file several times over and logging the number of the actual loop with time stamp), and that finished even when remote desktop window is minimized.

So it is NOT a (or any) remote process shutting down whenever remote desktop is minimized. It is AHK having this behaviour (maybe other processes too, though).

Still hoping for a solution............
Back to top
Guest






PostPosted: Mon Jun 16, 2008 8:51 pm    Post subject: Reply with quote

Autohotkey works fine when I minimize the remote window.
however when I disconnect but keep logged in on the system the scripts stop.
And I really need a fix for this since I will soon have to run some scripts as a sort of server. (to automaticly book emails in a ticketing system and send out emails from the ticketing system.

Does someone know a solution for that?

(I take over Windows XP computers lokated in an other country than we are located ourself)
Back to top
Traderhut



Joined: 05 Apr 2008
Posts: 11
Location: DFW

PostPosted: Tue Aug 12, 2008 10:07 pm    Post subject: "Stupid" solution... Reply with quote

Well, I've been having the same problem, and I took a crazy approach...

There were two solutions actually..

I remote terminal'ed into Machine A, and using it, Remote terminaled into machine B which ran the script. On A, I left the window viewable (not minimized, as this will stop script running on B).

Then Disconnecting from A will not stop the script on B... Pretty crazy, but it works.

Option #2....

Install VMWare on Machine A... Run Script in VM on A... Script continues to run even if you disconnect from machine A....

Really want a AHK solution, as other processes continue to run just fine, and as someone pointed out, another scripter is able to get it to go...


-Chert
_________________
---

http://www.traderhut.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group