AutoHotkey Community

It is currently May 27th, 2012, 11:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Script for VNC :)
PostPosted: September 28th, 2010, 9:12 am 
Offline

Joined: September 28th, 2010, 8:43 am
Posts: 3
Hi guys. I need help.

Can someone write me simple script that detect connection with VNC server program on my computer, and if this happen, close firefox browser ?

I will be thankful for help

PS. Sorry for my english


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2010, 1:38 pm 
Offline

Joined: September 28th, 2010, 8:43 am
Posts: 3
Maby just someone can tell me - is any method to detect in AHK incoming connection from specified IP to my IP and specified port ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 28th, 2010, 4:30 pm 
Offline

Joined: September 10th, 2009, 5:54 pm
Posts: 203
I like your smiley tag


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2010, 4:23 am 
Offline

Joined: June 7th, 2010, 3:40 pm
Posts: 553
I am not aware of any way to detect an incoming connection with AHK.

Maybe just don't do stuff your not supposed to do in FF?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2010, 8:54 am 
Offline

Joined: September 28th, 2010, 8:43 am
Posts: 3
1) You have right "rseding91", but you know - sometimes I have to check my e-mail, check my bank account et cetera, and wouldn't like that someone see this.....

2) I found TCP/IP based remote control in AHK - so.....

There should be some way to detect incoming connections

http://www.autohotkey.com/forum/topic28838.html


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 29th, 2010, 3:07 pm 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
I think that I know what you're after and why and I've written one before.

You need to identify the process or service that either changes state (starts up) or ramps up in CPU usage. Then scan through open processes for it or monitor it's CPU usage as necessary.

The problem is that often the instant that these services are called they get your desktop image so AHK might not be fast enough to kill firefox in time to prevent the very first image from being your browser... unless you are willing to kill or disable the exe/service which might get you caught as well.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group