Jump to content

krboun

Active Members
  • Posts

    23
  • Joined

  • Last visited

krboun's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. i used instal version, I tryed "run as admin" instalation also but no change, Next i tryed archive version and the problem persists
  2. does´t work mean doesn´t open neither pressing F1 mouse clicking, i think mistake is somewhere here
  3. yesterday i instaled the newest version of autoit, but i had to restore older version because help didn´t work. do you have simililar problem
  4. nobody can help plaese?
  5. i have this: and i need to make this: selection is made my mouse clicking and ctr key holded down, but selection only one item would be enough i need fuction to find text "barb" and mark it (only one first selection is OK)
  6. with ControlSend($title, '', 'SysTabControl321', '^+{TAB}') i can go to syslistview, but i need select items according string
  7. hello i can not find any function to select items from SysListView32 i think i need something like: $handle=ControlGetHandle("","","[ID:1002]") _GUICtrlComboBox_SelectString($handle,"text") ;this of for combobox, i need similar for syslistview also, is it possible to select multiple rows??(i havent tryed yet) the program i try to control allows that (i havent tryed yet) thank you
  8. oh, i am sorry forget it, i think mistake is somewhere here i just wanted to make simple progam which makes and reads crypted messages. I do not have any special reason to do that, i just study Autoit Also i studyed encption at my school so i wanted to to genarate a key which would allow to run program only at specific one PC, so i based that key on motherboard ID. i am amateur and autodidact so my questions could be confused and the answer so simple thakns for answers, i think i pregressed
  9. i think i need something a little different my text file: fred luis peter this file i encrypt with _StringEncrypt function, output from this function is one long string and this string i put to inputbox (first post here) now i need to decrypt that long string again with _StringEncrypt function (different params of course), so output shoud be 3 lines with names, and that names i need to write to new file with 3 lines i dont understand why but my script (from the first post here) doesn´t work
  10. yes i know, look at _StringEncrypt in help there is example e.g. i have a string containng a few lines of text, then i use _StringEncrypt(1,....) to engcrypt that multiple lines string. This function returns only 1 line of encrypted string always. This one line string i need to decrypt and filewrite with my script above. Is it clear now?
  11. Hello my script: Func aktivace() $klic = InputBox("Aktivace","","","",200,150,0) Switch $klic case 0 FileOpen(@UserProfileDir & "\xxx.txt",2) $filedecrypt=_StringEncrypt(0,$klic,"abc") FileWrite(@UserProfileDir & "\xxx.txt",$filedecrypt) case 1 Exit EndSwitch EndFunc so i want to decrypt string from inputbox the problem is if the string to decrypt contais multiple lines, then script doesn´t write anything (encrypted strinng is always one line, if I'm correct) thanks for advice
  12. perfect #Include <Array.au3> must be there i see this is not what i was looking for, but i learned new thing by teh way, coul you explain me the difference func a() func b(byref) func c(const) sometimes i understand complicated stuff but siple stuff i don´t see, i should start to learn systematicaly
  13. thakns but that is not what i need, i know i have to include CompInfo.au3. My problem is that i dont understand how to call function ;=============================================================================== ; Description: Returns the Motherboard information in an array. ; Parameter(s): $aMotherboardInfo - By Reference - Motherboard Information array. ; Requirement(s): None ; Return Value(s): On Success - Returns array of Motherboard Information. ; $aMotherboardInfo[$i][0] = Name ; $aMotherboardInfo[$i][1] = Availability ; $aMotherboardInfo[$i][2] = ConfigManagerErrorCode ; $aMotherboardInfo[$i][3] = ConfigManagerUserConfig ; $aMotherboardInfo[$i][4] = Description ; $aMotherboardInfo[$i][5] = CreationClassName ; $aMotherboardInfo[$i][6] = DeviceID ; $aMotherboardInfo[$i][7] = ErrorCleared ; $aMotherboardInfo[$i][8] = ErrorDescription ; $aMotherboardInfo[$i][9] = LastErrorCode ; $aMotherboardInfo[$i][10] = PNPDeviceID ; $aMotherboardInfo[$i][11] = PowerManagementCapabilities ; $aMotherboardInfo[$i][12] = PowerManagementSupported ; $aMotherboardInfo[$i][13] = PrimaryBusType ; $aMotherboardInfo[$i][14] = RevisionNumber ; $aMotherboardInfo[$i][15] = SecondaryBusType ; $aMotherboardInfo[$i][16] = Status ; $aMotherboardInfo[$i][17] = StatusInfo ; $aMotherboardInfo[$i][18] = SystemCreationClassName ; $aMotherboardInfo[$i][19] = SystemName ; On Failure - @error = 1 and Returns 0 ; @extended = 1 - Array contains no information. ; 2 - $colItems isnt an object. ; Author(s): Jarvis Stubblefield (support "at" vortexrevolutions "dot" com) ; Note(s): ;=============================================================================== Func _ComputerGetMotherboard(ByRef $aMotherboardInfo) Local $colItems, $objWMIService, $objItem Dim $aMotherboardInfo[1][20], $i = 1[/i] [i]$objWMIService = ObjGet("winmgmts:" & $cI_Compname & "rootCIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_MotherboardDevice", "WQL", $wbemFlagReturnImmediately + $wbemFlagForwardOnly)[/i] [i]If IsObj($colItems) Then For $objItem In $colItems ReDim $aMotherboardInfo[UBound($aMotherboardInfo) + 1][20] $aMotherboardInfo[$i][0] = $objItem.Name $aMotherboardInfo[$i][1] = $objItem.Availability $aMotherboardInfo[$i][2] = $objItem.ConfigManagerErrorCode $aMotherboardInfo[$i][3] = $objItem.ConfigManagerUserConfig $aMotherboardInfo[$i][4] = $objItem.Description $aMotherboardInfo[$i][5] = $objItem.CreationClassName $aMotherboardInfo[$i][6] = $objItem.DeviceID $aMotherboardInfo[$i][7] = $objItem.ErrorCleared $aMotherboardInfo[$i][8] = $objItem.ErrorDescription $aMotherboardInfo[$i][9] = $objItem.LastErrorCode $aMotherboardInfo[$i][10] = $objItem.PNPDeviceID $aMotherboardInfo[$i][11] = $objItem.PowerManagementCapabilities(0) $aMotherboardInfo[$i][12] = $objItem.PowerManagementSupported $aMotherboardInfo[$i][13] = $objItem.PrimaryBusType $aMotherboardInfo[$i][14] = $objItem.RevisionNumber $aMotherboardInfo[$i][15] = $objItem.SecondaryBusType $aMotherboardInfo[$i][16] = $objItem.Status $aMotherboardInfo[$i][17] = $objItem.StatusInfo $aMotherboardInfo[$i][18] = $objItem.SystemCreationClassName $aMotherboardInfo[$i][19] = $objItem.SystemName $i += 1 Next $aMotherboardInfo[0][0] = UBound($aMotherboardInfo) - 1 If $aMotherboardInfo[0][0] < 1 Then SetError(1, 1, 0) EndIf Else SetError(1, 2, 0) EndIf EndFunc ;_ComputerGetMotherboardi have to call something like $xxx = _ComputerGetMotherboard(.....) ;i do not understand which paramete i should use if i want deviceID msgbox(0,"",$xxx)i am still quite confused with so sophisticated scripts
  14. hello i am still quite new in autoit and also in programming ( i am autodidact wiht autoit help) i want make some encryption scrip where private key is based on motherboard serial nuber, but that is not my point. I found but i dont understand how to call that functions there is a function: _ComputerGetMotherboard and i dont know how to call it in my script if i want to return DeviceID many thanks
  15. that is perfect thanks a lot my problem is that script works with unstable program so if program crashes i need to switch it on again mana thanks again
×
×
  • Create New...