Jump to content

Cuervo

Active Members
  • Posts

    64
  • Joined

  • Last visited

Cuervo's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Ug! Sorry for wasting your time. "If you save the ini file after editing it" it might read the updated key value. It does in fact work.
  2. I have not check what $listCheck returns. I'm not sure how to do that. My issue seems to be if the ini looks like this [authkeys] box1= The check box is still enabled when it should not be. Or for that matter: [authkeys] box1=happybox Leaves the check box enabled as well.
  3. Is it possible to change the state of a GUI box from an Ini file? This is the basics of what I was trying. $listCheck = IniRead($myIni, "authkeys", "box1", "notworking") $listmain = GUICtrlCreateCheckbox("My Check Box", 30, 150) If $listCheck = "working" Then GUICtrlSetState(-1, $GUI_ENABLE) Else GUICtrlSetState(-1, $GUI_DISABLE) EndIf The Ini file [authkeys] box1=working But oddly enough if the Ini file has just "box1=" without the word working it still enables the GUI check box. If the entire key is missing it will disable the check box. edit missing a comma in "authkeys", /edit
  4. So by default, if CurrentSet=(anything) then it is true when used as a boolean? If that is the case then I understand why the script was doing what it was doing. Thank you. BTW You were correct "True" does infact work correctly for me.
  5. Well I tried this, but regardles of CurrentSet= status it always performs Bfunc. $workIni = @WorkingDir & "\setdata.ini" $Hold = True $Global $ThisValue _readIni() Func _readIni() $ThisValue = IniRead($workIni, "Settings", "CurrentSet", "00") EndFunc Do Afunc() If $ThisValue = True then Bfunc() Else Cfunc() EndIf Until $Hold = False
  6. Hey everyone, I'm not sure if I have this done correctly but here's what I have. $workIni = @WorkingDir & "\setdata.ini" $Hold = True $Var1 = $ThisValue _readIni() Func _readIni() $ThisValue = IniRead($workIni, "Settings", "CurrentSet", "00") EndFunc Do Afunc() If $Var1 = True then Bfunc() Else Cfunc() EndIf Until $Hold = False And my ini file looks like this. My INI File $workIni [settings] CurrentSet=True My issue is, regardless of CurrentSet=True or False the script always performs Bfunc. What have I done wrong? I'm sure that it's reading the ini. Thanks!
  7. Well, I saw that but it was only happening when using obfuscrate and I didn't see anything in that post regarding that function. I will take that a general reply and use it in this case as well. Thanks.
  8. Hello all, I've started using the obfuscrate functions when compiling but my AV, McAfee Enterprise Edition is logging and deleting the files while using the On Access scanner. Here is the log. 4/7/2010 7:33:27 PM Engine version = 5400.1158 4/7/2010 7:33:27 PM AntiVirus DAT version = 5944.0 4/7/2010 7:33:27 PM Number of detection signatures in EXTRA.DAT = None 4/7/2010 7:33:27 PM Names of detection signatures in EXTRA.DAT = None 4/7/2010 7:34:03 PM Deleted SYSTEM E:\Open Container\iopen.exe\iopen.au3 W32/Autorun.worm.zf.gen (Virus) While I know this is not a virus is this common? Is there something in AutoIt I can do to eliminate the issue or will I just have to work around it by disabling my AV program while working AU? Thanks BTW: I did a search for obfuscrate and virus and only came up with stuff from a kid that seemed to be writing virus with AU and obfuscating them.
  9. Thank you very much Water. I have one question about your script. If I include the entire ProcessEx.au3 script in my script it works fine, but if use your part of the script and put the processEx.au3 in an #include <processEx.au3> in my sript it errors out with: Error popup window title: _ProcessListEx - Error Message body: There was an error to get ProcessList (@error = 3) Any idea why that would happen?
  10. I guess I'm not being to clear here. I know the name of the process and when I do a FileGetVersion on the process I just zeros. So, I'm thinking I need to pass the patch to the of the process to check it correctly. Am I making this harder then it needs to be? This doesn't work. It just returns zeros. $PID = ProcessExists("Program.exe") $ver = FileGetVersion($PID) MsgBox (0,'',$ver)
  11. I know the name of the process, I just need to find the path of the process. I'm going to try with this UDF ;=============================================================================== ; ; Function Name: _ProcessListEx() ; ; Function Description: Gets Process List with extended info, plus can retrieve only a processes with specific resources strings. ; ; Parameter(s): $sResourceName [Optional] - Resource name of the process filename, i.e. "CompiledScript". ; $sInResString [Optional] - String to check in the resource name. ; $iWholeWord [Optional] - Defines if the $sInResString will be compared as whole string (default is 1). ; ; Requirement(s): None. ; ; Return Value(s): On Success - Return 2-dimentional array, where: ; $aRet_List[0][0] = Total processes (array elements). ; $aRet_List[N][0] = Process Name. ; $aRet_List[N][1] = PID (Process ID). ; $aRet_List[N][2] = Process File Path. ; On Failure - Return '' (empty string) and set @error to: ; 1 - Unable to Open Kernel32.dll. ; 2 - Unable to Open Psapi.dll. ; 3 - No Processes Found. ; ; Author(s): G.Sandler (a.k.a MrCreatoR) - CreatoR's Lab (http://creator-lab.ucoz.ru) ; ;=====================================================================
  12. I'm on page 8 of my search and with no viable examples, doesn't any have something bookmarked they could link me to?
  13. Then that should have been my search, how to determine the name of an executable file associated with the process. I'll try that, thanks.
  14. Hello all, Is there away to get the file version number from a running process? $proc = ProcessExists(GUICtrlRead($combo)) $ver = FileGetVersion($Proc) Thanks for any help.
  15. Thanks, this works. HotKeySet("^{F5}", "aFunc")
×
×
  • Create New...