Anyone know a way to make HMA Pro work with imacros?


Anyone know a way to make HMA Pro work with imacros?
Yes it could be made, since the HMA has option for sending "-changeip" through command prompt, it can be done. Then a piece of code is needed [inside the imacro] to check whether is the old ip, original pc ip or the new ip obtained , if all that pass then go back to work. That's the pretty basic logic.
Edit: I may be able to help you.
Last edited by ultra.marine; 01-04-2013 at 05:13 PM.
a lot of HMA's IP addresses and blacklisted. You may want to take that into consideration.
Q. Is HMA even an option anymore? I stopped using them a year ago because they were slow slow slow.
Now using various proxy providers with way better performance.
Well you should try entering the location of the hma, something like "Location of hma bin folder ->c:\prog\HMA\bin -changeip
Well nothing should happen to the command prompt, you can m "saying changing ip address" by sending the above command in cmd [command prompt]
I am sure there is some examples on the hma webpage/forums in case that doesn't help.


What I'm trying to do is auto change ip on each macro loop. Since imacros support vbscript I don't know how I would call HMA in vbscript to auto change ip
Ok, try something like this
Code:'This is vb.net but I am assuming it's nearly the same, function for sending change ip command Public Sub sendIpChangingCommand() Dim CMD As New Process Dim SW As System.IO.StreamWriter Dim SR As System.IO.StreamReader CMD.StartInfo.FileName = "cmd" CMD.StartInfo.UseShellExecute = False CMD.StartInfo.RedirectStandardInput = True CMD.StartInfo.RedirectStandardOutput = True CMD.StartInfo.CreateNoWindow = True CMD.Start() SW = CMD.StandardInput SR = CMD.StandardOutput SW.WriteLine("""" + "C:\Program Files (x86)\HMA! Pro VPN\bin" + """" + " -changeip") CMD.Dispose() SW.Dispose() Do Until SR.EndOfStream = True Application.DoEvents() Dim pom As String = SR.ReadLine Loop SR.Dispose() End Sub
the problem is you wont get a callback when hma has changed the ip. you can only sleep for a period and hope that itmconnects in that period.
Yeah that's why he has to check his original ip, current ip and keep them in memory. Then sleep for few seconds, and check if the ip match the original, match the old hma ip, or it's new hma ip. Depending what's the ip, do something, either wait more or continue the tasks or trigger new ip changing [if the waiting for change is too long]
Bookmarks