Jump to content

Sobiech

Active Members
  • Posts

    149
  • Joined

  • Last visited

About Sobiech

  • Birthday 10/02/1991

Profile Information

  • Location
    Poland
  • Interests
    Nothing more than nothing

Sobiech's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Yeah... Thx I am focused on C++ last time, but i ve a good idea for new programs, what can i do in Au
  2. K maybe another way Is there any error/errors?
  3. #include <IE.au3> #include <String.au3> $oIE = _IECreate("about:blank", 0, 0, 1, 0) $URL = "http://dclone.is-a-chef.net/sojdb.php" _IENavigate($oIE, $URL) $html = _IEBodyReadHTML($oIE) $IP = _StringBetween($html, '<TD class=ip width="10%">.', "</TD>") ;MsgBox(0, "Body Text", $html) ConsoleWrite($IP) ?
  4. Thx I think this is enought 4 me T/C
  5. i coded this filewatcher ~~ one week ago ; File watcher $INI = @ScriptDir & "\Settings.ini" $filename = IniRead($INI, "watching", "filename", ""); Filename $string = IniRead($INI, "watching", "stringtosearch", ""); String writed to file by bot $do = IniRead($INI, "watching", "filerun", ""); Run a file after text in file $exit = IniRead($INI, "watching", "exitiffound", ""); Exit if string was found? $delay = IniRead($INI, "delays", "searchdelay", ""); Time between loop wil check file again $File = FileOpen($filename, 0) ; 0 - Read Mode While 1 If FileReadLine($filename, 1) = $string Then ; If first line of file is our string then... ShellExecute($do); Run a file If $exit = "true" Then Exit Else ContinueLoop EndIf EndIf sleep($delay * 1000) WEnd FileClose($File) This should be useful for u
  6. Based on code from help file i just want eliminate black color from background
  7. How to make some text on screen wuthout bg? or set bg to invisible
  8. Hmm maybe are you looking function that write to X pointer other pointer? I am sure that i saw this funtion when searching NomadMemory... Try _MemoryWrite(_MemoryOpen(WinGerProcess("somewindowname or class")), 0x78B30A01, 0x005FB048) I dont remember that this is good code (dont have function syntax on hard disc)
  9. Hmm i saw program with pixelsearch wrote with decimal format of pixels, and one line "This wont work on 32 bit desktop settings" So dec wont work with 32bit? I ppreffer to using Hex
  10. Hmm Try to save page as HTML on hard disk, and then search what do you need Maybe not professional help, but always better than nothing Edit: Ofc search the string like from .txt file =)
  11. 1) Please add screenshot, this help a little to create a code 2) i saw that is checking each pixel from left up corner to right up corner (step by +1 pixel) No, i tried to change direction a little bit, but fail ;\ (I am not perfect ) 3) idk, but where is the problem?
  12. it looks like no loop for program stay alive I am sleeping, maybe i read the post badly ;[
  13. I know maybe i will use a bad example of other lang code (Diablo II MapHack), but i am sure that this is very good source code to show big difference between AutoIT programming and C lang DLL Code #ifdef _DEFINE_PTRS #define FUNCPTR(dll, name, callingret, args, address) \ __declspec(naked) callingret dll##_##name##args \ { \ static DWORD f##dll##_##name = NULL; \ if(f##dll##_##name == NULL) \ { \ __asm { pushad } \ f##dll##_##name = Patch::GetDllOffset(dll, address); \ __asm { popad } \ } \ __asm jmp [f##dll##_##name] \ } and we have sth like FUNCPTR(D2COMMON, AddRoomData, void __stdcall, (Act * ptAct, int LevelId, int Xpos, int Ypos, Room1 * pRoom), 0x3CCA0) FUNCPTR(D2COMMON, GetLayer, AutomapLayer2* __fastcall, (DWORD dwLevelNo), 0x6CB20)// FUNCPTR(D2COMMON, GetLevel, Level * __fastcall, (ActMisc *pMisc, DWORD dwLevelNo), 0x2D9B0)// FUNCPTR(D2COMMON, GetObjectTxt, ObjectTxt * __stdcall, (DWORD objno), 0x3E980)// FUNCPTR(D2COMMON, InitLevel, void __stdcall, (Level *pLevel), 0x2E360)// FUNCPTR(D2COMMON, LoadAct, Act* __stdcall, (DWORD ActNumber, DWORD MapId, DWORD Unk, DWORD Unk_2, DWORD Unk_3, DWORD Unk_4, DWORD TownLevelId, DWORD Func_1, DWORD Func_2), 0x3CB30) FUNCPTR(D2COMMON, RemoveRoomData, void __stdcall, (Act* ptAct, int LevelId, int Xpos, int Ypos, Room1* pRoom), 0x3CBE0) FUNCPTR(D2COMMON, UnloadAct, unsigned __stdcall, (Act* pAct), -10868) FUNCPTR(D2CLIENT, AddAutomapCell, void __fastcall, (AutomapCell *aCell, AutomapCell **node), 0x61320)// FUNCPTR(D2CLIENT, GetPlayerUnit, UnitAny* __stdcall, (void), 0xA4D60)// FUNCPTR(D2CLIENT, InitAutomapLayer_I, AutomapLayer* __fastcall, (DWORD nLayerNo), 0x62710)// FUNCPTR(D2CLIENT, NewAutomapCell, AutomapCell * __fastcall, (), 0x5F6B0)// FUNCPTR(D2CLIENT, PrintGameString, void __stdcall, (wchar_t *wMessage, int nColor), 0x7D850)// FUNCPTR(D2CLIENT, RevealAutomapRoom, void __stdcall, (Room1 *pRoom1, DWORD dwClipFlag, AutomapLayer *aLayer), 0x62580) More examples http://www.assembla.com/code/mmap/subversion/nodes/trunk/mMap?rev=5 So, as I said, I am using AutoIT very long, and this code abouve is black magic for me I don't want creating programs like this, I need to understand how it works, how it was created I don't playing this games (but I like it), I have this games for learning programming If you wanna creating a low programs, then AutoIT is enought for this , if you wanna creating programs to edit / finding / reading process memory - NO! So you must learning AutoIT, then more complicated languages (Python), not too fast. AutoIT is full of ready functions to use
  14. AutoIT is the easiest! I think that i know a lot of things in AutoIT, but i am still noob in C++ ^^ AutoIT have very good help file and very good forum support ( ) I started with some MsgBoxes, Loops, programs like "team generator", some macros in windowed aplications, fun with pixels now i am getting experience in Memory funcions (very usefull!) But if you wanna change language from AutoIT to other (nevermind what language will be second), then it will be hard So many C++ programmers said about AutoIT like an no-serious language, but in fact it have big possibilities
  15. ^^ So many posts, and this is the best answer Thx for all I will use a Loop
×
×
  • Create New...