Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/20/2013 in all areas

  1. Jos

    Obfuscator question

    There is no difference in the way Obfuscator warns about any Function that can contain a link to a Func. In the below example the first Call statement doesn't give any error since Obfuscator is able to understand which Func is called and will be able to Obfuscate the FuncName. The second Call statement will trigger an error/warning as Obfuscator doesn't know about the real value of $testvar. It will also break that Call() statement. $testvar= "Test" Call("test") Call($testvar) Func test() MsgBox(0,"that worked","that worked") EndFunc All clear?
    1 point
  2. Next time you post in this thread, have something to show, instead of saying there is an issue. That's it for my "golden words".
    1 point
  3. chaichaoyi, I would suggest removing the automatic actions from the tray icon and substituting your own click handler. That way you can write to your log as it happens: #include <Constants.au3> HotKeySet("{ESC}", "On_Exit") Opt("TrayOnEventMode", 1) ; Use event trapping for tray menu Opt("TrayMenuMode", 3) ; Default tray menu items will not be shown. ; Set functions for left click TraySetOnEvent($TRAY_EVENT_PRIMARYUP, "On_Click") ; Flag to indicate status $fPaused = False While 1 Sleep(10) WEnd Func On_Click() ; Toggle the flag $fPaused = Not $fPaused ; Write log If $fPaused Then ConsoleWrite("Paused" & @CRLF) Else ConsoleWrite("Running" & @CRLF) EndIf EndFunc Func On_Exit() Exit EndFunc All clear? M23
    1 point
  4. This is how it would look using a whitelist ... 127.0.0.1 localhost 87.106.181.57 www.autoitscript.com # allowed 127.0.0.1 dirty.rotten.websites.com # denied Blacklisting would send it to the localhost -- and whitelisting would send it to the correct ip. The hosts file is good for blacklisting, but not so good otherwise. Here's another alternative -- You would be much better off, using a local proxy server. A small proxy server would see if the site is in the whitelist and allow all ip addresses associated with it to pass. I think something like this could be made with less than 150 lines of code -And- with no additional hardware. The program would reside on the users computer. I have not searched the forum for local proxy servers, but, maybe a member already has one in the examples forum. Basically it would work something like this: Browser --> Local Proxy Server (Check WhiteList) --> Send response to Browser The LPS would be responsible for retrieving website data and send it back to the browser. There are several advantages to this method -- since the LPS handles the incoming data. I don't know what your situation is -- maybe, if you could be a little more forth-coming, there might be other ways of accomplishing what you want.
    1 point
×
×
  • Create New...