Your first example just works fine give me all results i want, but i dont know how to put that in variable so i can loop through array and put items i founded in listview like it opens in 1 sec in _ArrayDisplay() with your 1st example.
Code:
Case $hFinddAllButton
$test = GuiCtrlRead($hSearchInput) ; read the search input
_ArrayDisplay(StringRegExp(FileRead($file), "[1]=(.*"&$test&"*)", 3))
; loop through array and populate list
; when click on list item store it in $hNameInput and put ID "[5014]" in $hItemID
That should be really easy. Just build a regular expression, that reads in all item data at once, parse it, and build an interface around it...
Should be done in a few lines of code.
Edit:
Example Code:
Code:
$matches = StringRegExp(FileRead('ItemTemplateAll1.ini'), "\[(\d+)\]\r\n(?:\d+=.+\r\n)*?1=(.+)\r\n(?:\d+=.+\r\n)+", 3)
GUICreate('GUI', 300, 150, Default, Default, 0x10C80000)
$list = GUICtrlCreateList('', 10, 10, 280, 90)
$input = GUICtrlCreateInput('', 10, 100, 280, 20)
$btnSearch = GUICtrlCreateButton('Search', 10, 125, 140, 20)
$btnSave = GUICtrlCreateButton('Save', 150, 125, 140, 20)
While True
Switch GUIGetMsg()
Case -3
Exit
Case $list
GUICtrlSetData($input, StringRegExpReplace(GUICtrlRead($list), '\[\d+\] ', ''))
Case $btnSearch
GUICtrlSetData($list, '')
For $i=0 To UBound($matches)-1 Step 2
If StringInStr($matches[$i+1], GUICtrlRead($input)) Then GUICtrlSetData($list, '['&$matches[$i]&'] '&$matches[$i+1])
Next
Case $btnSave
IniWrite('ItemTemplateAll1.ini', StringRegExpReplace(GUICtrlRead($list), '\[(\d+)\].+', '$1'), 1, GUICtrlRead($input))
EndSwitch
WEnd
Just 1 more question im working all day on this and no luck, when i change item and press Save it dont update items like :
1. find results
2. click on item u want to edit
3. edit item
4. update list and show that edited items + previous from first search
Like
Code:
$matches = StringRegExp(FileRead('ItemTemplateAll1.ini'), "\[(\d+)\]\r\n(?:\d+=.+\r\n)*?1=(.+)\r\n(?:\d+=.+\r\n)+", 3)
GUICreate('GUI', 300, 150, Default, Default, 0x10C80000)
$list = GUICtrlCreateList('', 10, 10, 280, 90)
$input = GUICtrlCreateInput('', 10, 100, 280, 20)
GUICtrlSetLimit ($input, 50, 3)
$btnSearch = GUICtrlCreateButton('Search', 10, 125, 140, 20)
$btnSave = GUICtrlCreateButton('Save', 150, 125, 140, 20)
While True
Switch GUIGetMsg()
Case -3
Exit
Case $list
GUICtrlSetData($input, StringRegExpReplace(GUICtrlRead($list), '\[\d+\] ', ''))
Case $btnSearch
GUICtrlSetData($list, '')
For $i=0 To UBound($matches)-1 Step 2
If StringInStr($matches[$i+1], GUICtrlRead($input)) Then GUICtrlSetData($list, '['&$matches[$i]&'] '&$matches[$i+1])
Next
Case $btnSave
IniWrite('ItemTemplateAll1.ini', StringRegExpReplace(GUICtrlRead($list), '\[(\d+)\].+', '$1'), 1, GUICtrlRead($input))
If Not @error Then
; if file sucessfully written
; update list with new data, read from $input and search again
_GUICtrlListBox_ResetContent($list) ; reset list items ( remove )
Else
MsgBox(48, "Error", "Error = " & @error & ", Extended = " & @extended)
EndIf
EndSwitch
WEnd
TF2 Multihack I found (READ first!) 01/09/2020 - Team Fortress 2 - 7 Replies Hi guys,
I'm collecting VACs on my CS:GO smurf so I'm trying to hack in f2p games. So far I got 2 bans. Anyway, the next candidate is Team Fortress 2 and I found a suitable multi-hack, I've been using it as a rage-hack for a couple of hours and the cheat itself is actually detected as of July 2014.
24 hours have passed and I'm not VACced. Therefore I'm uploading the hack here as a PUBLIC CHEAT for people who want to kill time on fresh Steam Accounts.
Note: Again, this hack is DETECTED...