You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(3) |
Nov
(4) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(2) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
(1) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
From: Isaac B. <ib...@us...> - 2005-10-10 02:48:44
|
Update of /cvsroot/clicksaver/ClickSaverSrc/AOHook In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22747/AOHook Modified Files: AOHook.cpp Log Message: changed hooked dll name added debug console Index: AOHook.cpp =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/AOHook/AOHook.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AOHook.cpp 21 Feb 2003 12:11:49 -0000 1.1 --- AOHook.cpp 10 Oct 2005 02:48:31 -0000 1.2 *************** *** 1,113 **** ! /* ! * This DLL patches the DataBlockToMessage function ! * in AO's nr.dll. It is injected by ClickSaver ! * into AO process. ! * ! * Note that you have to compile this project separately. ! * If you set it as dependance of ClickSaver, it will ! * tell the linker to link ClickSaver with AOHook.lib, ! * which doesn't exist. ! * ! * The output path for the dll is the clicksaver sources ! * directory (and not AOHook/Release|Debug), for easier ! * debugging ;) ! */ ! ! #include <windows.h> ! #include <madcodehooklib.h> ! #include <stdio.h> ! ! void* g_pDataBlockToMessage = NULL; ! ! // According to this documention of VC++ name-mangling ! // http://www.kegel.com/mangle.html: ! // ! // ?DataBlockToMessage@@YAPAVMessage_t@@IPAX@Z ! // is named DataBlockToMessage, returns a Message_t*, ! // and takes an int and a void* as parameters. ! ! // Just to be more readable. ! // Message_t is actually a class of AO ! // But just to define a pointer on it, ! // we don't need to know what it is. ! typedef void Message_t; ! ! Message_t* ( * pOriginalDataBlockToMessage )( int _Size, void* _pDataBlock ); ! ! Message_t* DataBlockToMessageHook( int _Size, void* _pDataBlock ) ! { ! unsigned long* pData, Temp; ! // FILE* fp; ! HWND hWnd; ! ! if( _Size > 0x40 ) ! { ! // For 14.2 ! // pData = ( unsigned long* )( ( char* )_pDataBlock + 0x34 ); ! ! // For 14.4.0.2 on test... ! pData = ( unsigned long* )( ( char* )_pDataBlock + 0x33 ); ! ! Temp = *pData; ! ! /* if( fp = fopen( "f:\\AOHook_Log.bin", "ab" ) ) ! { ! fwrite( _pDataBlock, _Size, 1, fp ); ! fprintf( fp, "********" ); ! fclose( fp ); ! }*/ ! ! if( Temp == 0xc3da0000 ) ! { ! ! // Find ClickSaver's hook thread window and send the datas ! // using WM_COPYDATA ! if( hWnd = FindWindow ( "ClickSaverHookWindowClass", "ClickSaverHookWindow" ) ) ! { ! COPYDATASTRUCT Data; ! Data.cbData = _Size; ! Data.lpData = _pDataBlock; ! ! SendMessage( hWnd, WM_COPYDATA, 0, ( LPARAM )&Data ); ! } ! } ! } ! ! return pOriginalDataBlockToMessage( _Size, _pDataBlock ); ! } ! ! ! int ProcessAttach( HINSTANCE _hModule ) ! { ! pOriginalDataBlockToMessage = NULL; ! ! // Hook DataBlockToMessage ! HookAPI( "nr.dll", "?DataBlockToMessage@@YAPAVMessage_t@@IPAX@Z", ! DataBlockToMessageHook, ( void** )&pOriginalDataBlockToMessage ); ! ! FlushInstructionCache( GetCurrentProcess(), NULL, 0 ); ! ! return TRUE; ! } ! ! int ProcessDetach( HINSTANCE _hModule ) ! { ! if( pOriginalDataBlockToMessage ) ! UnhookCode( ( void** )&pOriginalDataBlockToMessage ); ! ! return TRUE; ! } ! ! BOOL APIENTRY DllMain(HINSTANCE _hModule, DWORD _dwReason, PVOID _lpReserved) ! { ! switch( _dwReason ) ! { ! case DLL_PROCESS_ATTACH: ! return ProcessAttach( _hModule ); ! ! case DLL_PROCESS_DETACH: ! return ProcessDetach( _hModule ); ! } ! ! return TRUE; ! } \ No newline at end of file --- 1,187 ---- ! /* ! * This DLL patches the DataBlockToMessage function ! * in AO's nr.dll. It is injected by ClickSaver ! * into AO process. ! * ! * Note that you have to compile this project separately. ! * If you set it as dependance of ClickSaver, it will ! * tell the linker to link ClickSaver with AOHook.lib, ! * which doesn't exist. ! * ! * The output path for the dll is the clicksaver sources ! * directory (and not AOHook/Release|Debug), for easier ! * debugging ;) ! */ ! ! #include <windows.h> ! #include <madcodehooklib.h> ! #include <stdio.h> ! ! #include <io.h> ! #include <fcntl.h> ! ! ! #define MAX_CONSOLE_LINES 1024 ! ! void RedirectIOToConsole() ! { ! ! int hConHandle; ! long lStdHandle; ! ! CONSOLE_SCREEN_BUFFER_INFO coninfo; ! FILE *fp; ! ! // allocate a console for this app ! AllocConsole(); ! ! // set the screen buffer to be big enough to let us scroll text ! GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE),&coninfo); ! coninfo.dwSize.Y = MAX_CONSOLE_LINES; ! SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), coninfo.dwSize); ! ! // freopen("CONOUT$","wb",stdout); ! ! #if 1 ! // redirect unbuffered STDOUT to the console ! lStdHandle = (long)GetStdHandle(STD_OUTPUT_HANDLE); ! hConHandle = _open_osfhandle(lStdHandle, _O_TEXT); ! fp = _fdopen( hConHandle, "w" ); ! *stdout = *fp; ! setvbuf( fp, NULL, _IONBF, 0 ); ! ! // redirect unbuffered STDIN to the console ! lStdHandle = (long)GetStdHandle(STD_INPUT_HANDLE); ! hConHandle = _open_osfhandle(lStdHandle, _O_TEXT); ! fp = _fdopen( hConHandle, "r" ); ! *stdin = *fp; ! setvbuf( stdin, NULL, _IONBF, 0 ); ! ! // redirect unbuffered STDERR to the console ! lStdHandle = (long)GetStdHandle(STD_ERROR_HANDLE); ! hConHandle = _open_osfhandle(lStdHandle, _O_TEXT); ! fp = _fdopen( hConHandle, "w" ); ! *stderr = *fp; ! setvbuf( stderr, NULL, _IONBF, 0 ); ! #endif ! // make cout, wcout, cin, wcin, wcerr, cerr, wclog and clog ! // point to console as well ! // ios::sync_with_stdio(); ! ! printf("AOHook Debug console started\n"); ! printf("CLOSING THIS WINDOW WILL QUIT ANARCHY ONLINE!\n"); ! } ! ! void* g_pDataBlockToMessage = NULL; ! ! // According to this documention of VC++ name-mangling ! // http://www.kegel.com/mangle.html: ! // ! // ?DataBlockToMessage@@YAPAVMessage_t@@IPAX@Z ! // is named DataBlockToMessage, returns a Message_t*, ! // and takes an int and a void* as parameters. ! ! // Just to be more readable. ! // Message_t is actually a class of AO ! // But just to define a pointer on it, ! // we don't need to know what it is. ! typedef void Message_t; ! ! Message_t* ( * pOriginalDataBlockToMessage )( int _Size, void* _pDataBlock ); ! ! Message_t* DataBlockToMessageHook( int _Size, void* _pDataBlock ) ! { ! unsigned long* pData, Temp; ! // FILE* fp; ! HWND hWnd; ! ! if( _Size > 0x40 ) ! { ! // For 14.2 ! // pData = ( unsigned long* )( ( char* )_pDataBlock + 0x34 ); ! ! // For 14.4.0.2 on test... ! pData = ( unsigned long* )( ( char* )_pDataBlock + 0x33 ); ! ! Temp = *pData; ! ! /* if( fp = fopen( "f:\\AOHook_Log.bin", "ab" ) ) ! { ! fwrite( _pDataBlock, _Size, 1, fp ); ! fprintf( fp, "********" ); ! fclose( fp ); ! }*/ ! ! if( Temp == 0xc3da0000 ) ! { ! ! printf("missions detected\n"); ! // Find ClickSaver's hook thread window and send the datas ! // using WM_COPYDATA ! if( hWnd = FindWindow ( "ClickSaverHookWindowClass", "ClickSaverHookWindow" ) ) ! { ! COPYDATASTRUCT Data; ! Data.cbData = _Size; ! Data.lpData = _pDataBlock; ! ! SendMessage( hWnd, WM_COPYDATA, 0, ( LPARAM )&Data ); ! } ! } ! } ! ! return pOriginalDataBlockToMessage( _Size, _pDataBlock ); ! } ! ! ! int ProcessAttach( HINSTANCE _hModule ) ! { ! int result; ! printf("ProcessAttach\n"); ! pOriginalDataBlockToMessage = NULL; ! ! // Hook DataBlockToMessage ! result = HookAPI( "MessageProtocol.dll", "?DataBlockToMessage@@YAPAVMessage_t@@IPAX@Z", DataBlockToMessageHook, ( void** )&pOriginalDataBlockToMessage ); ! if(result) ! { ! printf("HookAPI succeded\n"); ! } ! else ! { ! printf("HookAPI failed\n"); ! } ! ! FlushInstructionCache( GetCurrentProcess(), NULL, 0 ); ! ! return TRUE; ! } ! ! int ProcessDetach( HINSTANCE _hModule ) ! { ! printf("ProcessDetach\n"); ! if( pOriginalDataBlockToMessage ) ! UnhookCode( ( void** )&pOriginalDataBlockToMessage ); ! ! return TRUE; ! } ! ! int g_consoleStarted = 0; ! ! BOOL APIENTRY DllMain(HINSTANCE _hModule, DWORD _dwReason, PVOID _lpReserved) ! { ! if(!g_consoleStarted) ! { ! g_consoleStarted = 1; ! RedirectIOToConsole(); ! } ! ! switch( _dwReason ) ! { ! case DLL_PROCESS_ATTACH: ! return ProcessAttach( _hModule ); ! ! case DLL_PROCESS_DETACH: ! return ProcessDetach( _hModule ); ! } ! ! return TRUE; ! } |
From: Corey F. <gn...@us...> - 2004-12-27 17:28:24
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19443 Modified Files: clicksaver.c clicksaver.h guidef.c Log Message: Added Option for multiple missions, quick change Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** clicksaver.h 3 Sep 2004 19:16:46 -0000 1.14 --- clicksaver.h 27 Dec 2004 17:28:13 -0000 1.15 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.15 2004/12/27 17:28:13 gnarf37 + * Added Option for multiple missions, quick change + * * Revision 1.14 2004/09/03 19:16:46 gnarf37 * Version 2.3.1 AI Updates *************** *** 110,113 **** --- 113,117 ---- CS_BUYINGAGENTFOLD, CS_BUYINGAGENTTRIES, + CS_BUYINGAGENTMISH, CS_BUYINGAGENT_INFOWINDOW, Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** clicksaver.c 3 Sep 2004 19:16:46 -0000 1.15 --- clicksaver.c 27 Dec 2004 17:28:12 -0000 1.16 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.16 2004/12/27 17:28:12 gnarf37 + * Added Option for multiple missions, quick change + * * Revision 1.15 2004/09/03 19:16:46 gnarf37 * Version 2.3.1 AI Updates *************** *** 76,79 **** --- 79,83 ---- PUU32 g_BuyingAgentCount = 0; + PUU32 g_BuyingAgentMissions = 0; PUU32 g_bFirstRound = TRUE; PUU8 g_MishNumber = 0, g_FoundMish = -1; *************** *** 302,305 **** --- 306,310 ---- case CSAM_STOPBUYINGAGENT: g_BuyingAgentCount = 0; + g_BuyingAgentMissions = 0; EndBuyingAgent(); *************** *** 323,333 **** ReleaseMutex( g_Mutex ); ! if( pMissionData ) ! { if( g_BuyingAgentCount ) BuyingAgent(); else EndBuyingAgent(); ! } } --- 328,338 ---- ReleaseMutex( g_Mutex ); ! // if( pMissionData ) ! // { if( g_BuyingAgentCount ) BuyingAgent(); else EndBuyingAgent(); ! // } } *************** *** 371,375 **** PlaySound("found.wav", NULL, SND_FILENAME | SND_NODEFAULT); } ! if (PUL_GET_CB(CS_MOUSEMOVE_CB)) { HWND AOWnd; --- 376,380 ---- PlaySound("found.wav", NULL, SND_FILENAME | SND_NODEFAULT); } ! if (PUL_GET_CB(CS_MOUSEMOVE_CB) || g_BuyingAgentMissions) { HWND AOWnd; *************** *** 386,390 **** } ! if (g_FoundMish != 255) { // Move mouse and select mission that finished our Buying Agent MousePos.x = 44 + ((g_FoundMish % 3) * 58); MousePos.y = 57 + ((g_FoundMish / 3) * 57); --- 391,395 ---- } ! if (g_FoundMish != 255 && !(pAppMsg->Message==CSAM_STOPBUYINGAGENT)) { // Move mouse and select mission that finished our Buying Agent MousePos.x = 44 + ((g_FoundMish % 3) * 58); MousePos.y = 57 + ((g_FoundMish / 3) * 57); *************** *** 395,398 **** --- 400,404 ---- SendMessage( AOWnd, WM_LBUTTONDOWN, 0, lParam ); + Sleep(500); SendMessage( AOWnd, WM_LBUTTONUP, 0, lParam ); *************** *** 402,405 **** --- 408,450 ---- ClientToScreen( AOWnd, &MousePos ); SetCursorPos( MousePos.x, MousePos.y ); + if (g_BuyingAgentMissions) + { + SendMessage( AOWnd, WM_LBUTTONDOWN, 0, lParam ); + Sleep(500); + SendMessage( AOWnd, WM_LBUTTONUP, 0, lParam ); + + Sleep( 2010 ); + + SendMessage( AOWnd, WM_KEYDOWN, 0x45, 0); + Sleep(500); + SendMessage( AOWnd, WM_KEYUP, 0x45, 0); + + Sleep( 2010 ); + + { + int easy_hard = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_EASY_HARD), PUA_TEXTENTRY_VALUE ); + + int good_bad = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_GOOD_BAD), PUA_TEXTENTRY_VALUE ); + + int order_chaos = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_ORDER_CHAOS), PUA_TEXTENTRY_VALUE ); + + int open_hidden = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_OPEN_HIDDEN), PUA_TEXTENTRY_VALUE ); + + int phys_myst = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_PHYS_MYST), PUA_TEXTENTRY_VALUE ); + + int headon_stealth = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_HEADON_STEALTH), PUA_TEXTENTRY_VALUE ); + + int money_xp = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SLIDER_MONEY_XP), PUA_TEXTENTRY_VALUE ); + + + + _setSliders(easy_hard, good_bad, order_chaos, open_hidden, phys_myst, headon_stealth, money_xp); + } + + g_bFirstRound = TRUE; + g_BuyingAgentCount = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTTRIES ), PUA_TEXTENTRY_VALUE ); + BuyingAgent(); + g_BuyingAgentMissions--; + } } *************** *** 456,459 **** --- 501,505 ---- if( bReadyToGo ) { + g_BuyingAgentMissions = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTMISH ), PUA_TEXTENTRY_VALUE ) - 1; g_BuyingAgentCount = puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTTRIES ), PUA_TEXTENTRY_VALUE ); g_bFirstRound = TRUE; *************** *** 1125,1128 **** --- 1171,1175 ---- DisplayErrorMessage( "Anarchy Online is not running.", TRUE ); g_BuyingAgentCount = 0; + g_BuyingAgentMissions = 0; return FALSE; } *************** *** 1272,1276 **** g_BuyingAgentCount = 0; ! return; --- 1319,1323 ---- g_BuyingAgentCount = 0; ! g_BuyingAgentMissions = 0; return; *************** *** 1391,1417 **** //_dragMouse(200, 165, 200, 165); ! _dragMouse(102, 160, (int)_linIinterp(64, 141, easy_hard/100.0f), 160); ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, good_bad/100.0f), ypos); ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, order_chaos/100.0f), ypos); ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, open_hidden/100.0f), ypos); ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, phys_myst/100.0f), ypos); ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, headon_stealth/100.0f), ypos); ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, money_xp/100.0f), ypos); --- 1438,1464 ---- //_dragMouse(200, 165, 200, 165); ! if (easy_hard != 50) _dragMouse(102, 160, (int)_linIinterp(64, 141, easy_hard/100.0f), 160); ! if (good_bad != 50) _dragMouse(102, ypos, (int)_linIinterp(64, 141, good_bad/100.0f), ypos); ypos += 18; ! if (order_chaos != 50) _dragMouse(102, ypos, (int)_linIinterp(64, 141, order_chaos/100.0f), ypos); ypos += 18; ! if (open_hidden != 50) _dragMouse(102, ypos, (int)_linIinterp(64, 141, open_hidden/100.0f), ypos); ypos += 18; ! if (phys_myst != 50) _dragMouse(102, ypos, (int)_linIinterp(64, 141, phys_myst/100.0f), ypos); ypos += 18; ! if (headon_stealth != 50) _dragMouse(102, ypos, (int)_linIinterp(64, 141, headon_stealth/100.0f), ypos); ypos += 18; ! if (money_xp != 50) _dragMouse(102, ypos, (int)_linIinterp(64, 141, money_xp/100.0f), ypos); Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** guidef.c 3 Sep 2004 19:16:46 -0000 1.19 --- guidef.c 27 Dec 2004 17:28:13 -0000 1.20 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.20 2004/12/27 17:28:13 gnarf37 + * Added Option for multiple missions, quick change + * * Revision 1.19 2004/09/03 19:16:46 gnarf37 * Version 2.3.1 AI Updates *************** *** 79,86 **** PUA_TEXTENTRY_NUMERIC, TRUE, PUA_TEXTENTRY_MIN, 1, ! PUA_TEXTENTRY_MAX, 1000, PUA_TEXTENTRY_BUFFERSIZE, 5, PUA_TEXTENTRY_VALUE, 10, 0, 0, PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", PUA_TEXT_STRING, ( PUU32 )"Start Buying Agent", --- 82,98 ---- PUA_TEXTENTRY_NUMERIC, TRUE, PUA_TEXTENTRY_MIN, 1, ! PUA_TEXTENTRY_MAX, 10000, PUA_TEXTENTRY_BUFFERSIZE, 5, PUA_TEXTENTRY_VALUE, 10, 0, 0, + PUM_ADDCHILD, PU_LABEL( "# of Mish:" ), + PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_BUYINGAGENTMISH, ( PUU32 )"TextEntry", + PUA_CONTROL_WEIGHT, 1, + PUA_TEXTENTRY_NUMERIC, TRUE, + PUA_TEXTENTRY_MIN, 1, + PUA_TEXTENTRY_MAX, 30, + PUA_TEXTENTRY_BUFFERSIZE, 5, + PUA_TEXTENTRY_VALUE, 1, + 0, 0, PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", PUA_TEXT_STRING, ( PUU32 )"Start Buying Agent", |
From: Corey F. <gn...@us...> - 2004-09-03 19:16:56
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15313 Modified Files: ClickSaver.dsp clicksaver.c clicksaver.h guidef.c Log Message: Version 2.3.1 AI Updates Index: ClickSaver.dsp =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/ClickSaver.dsp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ClickSaver.dsp 31 Oct 2003 03:40:50 -0000 1.7 --- ClickSaver.dsp 3 Sep 2004 19:16:46 -0000 1.8 *************** *** 151,159 **** # Begin Source File ! SOURCE=".\madCodeHookLibL\Dll\madCodeHookLib - microsoft.lib" # End Source File # Begin Source File ! SOURCE=.\BerkeleyDB\libdb40.lib # End Source File # End Target --- 151,159 ---- # Begin Source File ! SOURCE=.\BerkeleyDB\libdb40.lib # End Source File # Begin Source File ! SOURCE=".\madCodeHookLibL\Dll\madCodeHookLib - microsoft.lib" # End Source File # End Target Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** clicksaver.h 28 Aug 2004 18:04:08 -0000 1.13 --- clicksaver.h 3 Sep 2004 19:16:46 -0000 1.14 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.14 2004/09/03 19:16:46 gnarf37 + * Version 2.3.1 AI Updates + * * Revision 1.13 2004/08/28 18:04:08 gnarf37 * Moved some GUI Options arounds, added Skip Rebuild option *************** *** 27,31 **** #define __CLICKSAVER_H__ ! #define CS_VERSION "2.3.0 beta 3" #include "mission.h" --- 30,34 ---- #define __CLICKSAVER_H__ ! #define CS_VERSION "2.3.1" #include "mission.h" Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** clicksaver.c 28 Aug 2004 18:04:08 -0000 1.14 --- clicksaver.c 3 Sep 2004 19:16:46 -0000 1.15 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.15 2004/09/03 19:16:46 gnarf37 + * Version 2.3.1 AI Updates + * * Revision 1.14 2004/08/28 18:04:08 gnarf37 * Moved some GUI Options arounds, added Skip Rebuild option *************** *** 384,389 **** if (g_FoundMish != 255) { // Move mouse and select mission that finished our Buying Agent ! MousePos.x = 47 + ((g_FoundMish % 3) * 60); ! MousePos.y = 44 + ((g_FoundMish / 3) * 57); lParam = MousePos.y << 16 | MousePos.x; --- 387,392 ---- if (g_FoundMish != 255) { // Move mouse and select mission that finished our Buying Agent ! MousePos.x = 44 + ((g_FoundMish % 3) * 58); ! MousePos.y = 57 + ((g_FoundMish / 3) * 57); lParam = MousePos.y << 16 | MousePos.x; *************** *** 396,400 **** Sleep( 2010 ); ! MousePos.x = 83; MousePos.y = 283; ClientToScreen( AOWnd, &MousePos ); SetCursorPos( MousePos.x, MousePos.y ); --- 399,403 ---- Sleep( 2010 ); ! MousePos.x = 76; MousePos.y = 321; ClientToScreen( AOWnd, &MousePos ); SetCursorPos( MousePos.x, MousePos.y ); *************** *** 1157,1162 **** // easy to abort the buying agent while // it's running ! MousePos.x = 182; ! MousePos.y = 168; lParam = MousePos.y << 16 | MousePos.x; --- 1160,1165 ---- // easy to abort the buying agent while // it's running ! MousePos.x = 99; ! MousePos.y = 180; lParam = MousePos.y << 16 | MousePos.x; *************** *** 1384,1422 **** { ! int ypos = 190; ! ! ! ! _dragMouse(200, 165, 200, 165); ! ! ! ! _dragMouse(113, 145, (int)_linIinterp(55, 170, easy_hard/100.0f), 145); ! ! ! _dragMouse(113, ypos, (int)_linIinterp(55, 170, good_bad/100.0f), ypos); ! ypos += 15; ! _dragMouse(113, ypos, (int)_linIinterp(55, 170, order_chaos/100.0f), ypos); ! ypos += 15; ! _dragMouse(113, ypos, (int)_linIinterp(55, 170, open_hidden/100.0f), ypos); ! ypos += 15; ! _dragMouse(113, ypos, (int)_linIinterp(55, 170, phys_myst/100.0f), ypos); ! ypos += 15; ! _dragMouse(113, ypos, (int)_linIinterp(55, 170, headon_stealth/100.0f), ypos); ! ypos += 15; ! _dragMouse(113, ypos, (int)_linIinterp(55, 170, money_xp/100.0f), ypos); --- 1387,1417 ---- { ! int ypos = 210; + //_dragMouse(200, 165, 200, 165); + _dragMouse(102, 160, (int)_linIinterp(64, 141, easy_hard/100.0f), 160); ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, good_bad/100.0f), ypos); ! ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, order_chaos/100.0f), ypos); ! ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, open_hidden/100.0f), ypos); ! ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, phys_myst/100.0f), ypos); ! ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, headon_stealth/100.0f), ypos); ! ypos += 18; ! _dragMouse(102, ypos, (int)_linIinterp(64, 141, money_xp/100.0f), ypos); Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** guidef.c 28 Aug 2004 18:04:08 -0000 1.18 --- guidef.c 3 Sep 2004 19:16:46 -0000 1.19 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.19 2004/09/03 19:16:46 gnarf37 + * Version 2.3.1 AI Updates + * * Revision 1.18 2004/08/28 18:04:08 gnarf37 * Moved some GUI Options arounds, added Skip Rebuild option *************** *** 470,474 **** PUM_ADDCHILD, PU_LABEL( "IMPORTANT: Sliders must be in default positions for this to work" ), ! PUM_ADDCHILD, PU_LABEL( "and the 'More Options' section of the mission window must be CLOSED" ), --- 473,477 ---- PUM_ADDCHILD, PU_LABEL( "IMPORTANT: Sliders must be in default positions for this to work" ), ! PUM_ADDCHILD, PU_LABEL( "and the 'More Options' section of the mission window must be OPEN!" ), |
From: Corey F. <gn...@us...> - 2004-08-28 18:04:22
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16704 Modified Files: clicksaver.c clicksaver.h guidef.c hook.c Log Message: Moved some GUI Options arounds, added Skip Rebuild option Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** clicksaver.c 25 Jan 2004 19:35:52 -0000 1.13 --- clicksaver.c 28 Aug 2004 18:04:08 -0000 1.14 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.14 2004/08/28 18:04:08 gnarf37 + * Moved some GUI Options arounds, added Skip Rebuild option + * * Revision 1.13 2004/01/25 19:35:52 gnarf37 * 2.3.0 beta 3 - Shrunk Database a bit, added Item Value options, make options menu smaller a tad so that 800x600 might be able to use it again... *************** *** 198,202 **** if( bUpdateDB ) { - FILETIME OrigTime; puSetAttribute( puGetObjectFromCollection( g_pCol, CS_DBCOPYMSGBOX ), PUA_WINDOW_OPENED, TRUE ); --- 201,204 ---- *************** *** 211,241 **** puSetAttribute( puGetObjectFromCollection( g_pCol, CS_DBCOPYMSGBOX ), PUA_WINDOW_OPENED, FALSE ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, TRUE ); ! puCheckMessages(); ! ! if( !CreateLocalDatabase() ) { - puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, FALSE ); - // Delete the database in case it was partly created, - // so we're not using a partial database on next - // execution. - DeleteFile( "AODatabase.bdb" ); - g_pDB = NULL; // It has been already closed by createlocaldatabase ! DisplayErrorMessage( "Failed to create local database.", FALSE ); ! CleanUp(); ! return -1; ! } ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, FALSE ); ! sprintf( DBPath, "%s\\cd_image\\data\\db\\ResourceDatabase.dat", g_AODir ); ! hOrigDB = CreateFile( DBPath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL ); ! hLocalDB = CreateFile( "AODatabase.bdb", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL ); ! GetFileTime( hOrigDB, NULL, NULL, &OrigTime ); ! SetFileTime( hLocalDB, NULL, NULL, &OrigTime ); ! CloseHandle( hOrigDB ); ! CloseHandle( hLocalDB ); } --- 213,240 ---- puSetAttribute( puGetObjectFromCollection( g_pCol, CS_DBCOPYMSGBOX ), PUA_WINDOW_OPENED, FALSE ); ! if (pAppMsg->Message == CSAM_OK ) { ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, TRUE ); ! puCheckMessages(); ! if( !CreateLocalDatabase() ) ! { ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, FALSE ); ! // Delete the database in case it was partly created, ! // so we're not using a partial database on next ! // execution. ! DeleteFile( "AODatabase.bdb" ); ! g_pDB = NULL; // It has been already closed by createlocaldatabase ! ! DisplayErrorMessage( "Failed to create local database.", FALSE ); ! CleanUp(); ! return -1; ! } ! ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, FALSE ); ! } } Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** clicksaver.h 25 Jan 2004 19:35:53 -0000 1.12 --- clicksaver.h 28 Aug 2004 18:04:08 -0000 1.13 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.13 2004/08/28 18:04:08 gnarf37 + * Moved some GUI Options arounds, added Skip Rebuild option + * * Revision 1.12 2004/01/25 19:35:53 gnarf37 * 2.3.0 beta 3 - Shrunk Database a bit, added Item Value options, make options menu smaller a tad so that 800x600 might be able to use it again... *************** *** 121,124 **** --- 124,128 ---- { CSAM_QUIT = 1, + CSAM_SKIP, CSAM_OK, CSAM_CANCEL, Index: hook.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/hook.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** hook.c 27 May 2003 00:14:42 -0000 1.2 --- hook.c 28 Aug 2004 18:04:08 -0000 1.3 *************** *** 26,33 **** // Inject the dlls in clientr process sprintf( Temp, "%s\\madCodeHookLib.dll", g_CSDir ); ! InjectLibrary( AOProcessHnd, Temp ); sprintf( Temp, "%s\\AOHook.dll", g_CSDir ); ! InjectLibrary( AOProcessHnd, Temp ); CloseHandle( AOProcessHnd ); --- 26,33 ---- // Inject the dlls in clientr process sprintf( Temp, "%s\\madCodeHookLib.dll", g_CSDir ); ! InjectLibrary( AOProcessHnd, Temp); sprintf( Temp, "%s\\AOHook.dll", g_CSDir ); ! InjectLibrary( AOProcessHnd, Temp); CloseHandle( AOProcessHnd ); Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** guidef.c 22 Feb 2004 05:41:13 -0000 1.17 --- guidef.c 28 Aug 2004 18:04:08 -0000 1.18 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.18 2004/08/28 18:04:08 gnarf37 + * Moved some GUI Options arounds, added Skip Rebuild option + * * Revision 1.17 2004/02/22 05:41:13 gnarf37 * Added Set Sliders button to the main window *************** *** 144,148 **** 0, PU_ENDGROUP, ! PU_ENDGROUP, // **** --- 147,155 ---- 0, PU_ENDGROUP, ! PUM_ADDCHILD, PU_TITLE( "Seach Options" ), ! PUM_ADDCHILD, PU_HORGROUP, ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTITEM_CB, "Match in Buying Agent / " ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTITEM_CB, "Highlight Matches" ), ! PU_ENDGROUP, PU_ENDGROUP, // **** *************** *** 175,178 **** --- 182,190 ---- 0, PU_ENDGROUP, + PUM_ADDCHILD, PU_TITLE( "Seach Options" ), + PUM_ADDCHILD, PU_HORGROUP, + PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTLOC_CB, "Match in Buying Agent / " ), + PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTLOC_CB, "Highlight Matches" ), + PU_ENDGROUP, PU_ENDGROUP, *************** *** 192,195 **** --- 204,212 ---- PUM_ADDCHILD, PU_SET_CHECKBOX( CS_TYPEASS_CB, "Kill Person" ), PU_ENDGROUP, + PUM_ADDCHILD, PU_TITLE( "Seach Options" ), + PUM_ADDCHILD, PU_HORGROUP, + PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTTYPE_CB, "Match in Buying Agent / " ), + PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTTYPE_CB, "Highlight Matches" ), + PU_ENDGROUP, PUM_ADDCHILD, PU_SPACER, *************** *** 485,492 **** PUM_ADDCHILD, PU_FRAMED_VERGROUP( PUFRAME_GROUP, "Options" ), ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", PUA_FOLD_LABEL, ( PUU32 )"General", PUA_FOLD_FOLDED, 0, ! PUA_FOLD_CONTENTS, PU_HORGROUP, PUM_ADDCHILD, PU_LEFT_VERGROUP, --- 502,510 ---- PUM_ADDCHILD, PU_FRAMED_VERGROUP( PUFRAME_GROUP, "Options" ), ! /* PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", PUA_FOLD_LABEL, ( PUU32 )"General", PUA_FOLD_FOLDED, 0, ! PUA_FOLD_CONTENTS, */ ! PUM_ADDCHILD, PU_HORGROUP, PUM_ADDCHILD, PU_LEFT_VERGROUP, *************** *** 510,545 **** PUM_ADDCHILD, PU_SPACER, PU_ENDGROUP, ! 0, 0, /// End Fold ! ! ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", ! PUA_FOLD_LABEL, ( PUU32 )"Mission search conditions", ! PUA_FOLD_FOLDED, 1, ! PUA_FOLD_CONTENTS, ! PU_HORGROUP, ! PUM_ADDCHILD, PU_LEFT_VERGROUP, ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTITEM_CB, "Listed item is found" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTLOC_CB, "Listed location is found" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTTYPE_CB, "With Listed Mission Type" ), ! PUM_ADDCHILD, PU_LABEL( "Check multiples to search for missions" ), ! PUM_ADDCHILD, PU_LABEL( "that satisfy all conditions" ), ! PU_ENDGROUP, ! PUM_ADDCHILD, PU_SPACER, ! PU_ENDGROUP, ! 0, 0, /// End Fold - PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", - PUA_FOLD_LABEL, ( PUU32 )"Highlight On Match", - PUA_FOLD_FOLDED, 1, - PUA_FOLD_CONTENTS, - PU_HORGROUP, - PUM_ADDCHILD, PU_LEFT_VERGROUP, - PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTITEM_CB, "Item" ), - PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTLOC_CB, "Location" ), - PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTTYPE_CB, "Type" ), - PU_ENDGROUP, - PUM_ADDCHILD, PU_SPACER, - PU_ENDGROUP, - 0, 0, /// End Fold PU_ENDGROUP, --- 528,533 ---- PUM_ADDCHILD, PU_SPACER, PU_ENDGROUP, ! // 0, 0, /// End Fold PU_ENDGROUP, *************** *** 838,841 **** --- 826,833 ---- PUM_ADDCHILD, PU_LABEL( " " ), PUM_ADDCHILD, PU_LABEL( "Make sure that AO isn't running, or it won't work." ), + PUM_ADDCHILD, PU_LABEL( " " ), + PUM_ADDCHILD, PU_LABEL( "You can Skip Building the new database, but be warned," ), + PUM_ADDCHILD, PU_LABEL( "it may cause some instability if there are any new items" ), + PUM_ADDCHILD, PU_LABEL( "in the mission terminals" ), PU_ENDGROUP, *************** *** 854,857 **** --- 846,857 ---- 0, + PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", PUA_TEXT_STRING, ( PUU32 )"Skip", + PUA_CONTROL_FRAME, PUFRAME_BUTTON, + PUA_CONTROL_ISBUTTON, TRUE, 0, + PUM_ADDNOTIFICATION, + PUNOTIFY_CONDITION_ATTREQUALS, PUA_CONTROL_CLICKED, TRUE, + PUNOTIFY_ACTION_APPMSG, CSAM_SKIP, + 0, + PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", PUA_TEXT_STRING, ( PUU32 )"Quit", PUA_CONTROL_FRAME, PUFRAME_BUTTON, |
From: <gn...@us...> - 2004-02-22 05:53:47
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3156 Modified Files: guidef.c Log Message: Added Set Sliders button to the main window Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** guidef.c 25 Jan 2004 19:36:05 -0000 1.16 --- guidef.c 22 Feb 2004 05:41:13 -0000 1.17 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.17 2004/02/22 05:41:13 gnarf37 + * Added Set Sliders button to the main window + * * Revision 1.16 2004/01/25 19:36:05 gnarf37 * 2.3.0 beta 3 - Shrunk Database a bit, added Item Value options, make options menu smaller a tad so that 800x600 might be able to use it again... *************** *** 85,97 **** PU_ENDGROUP, 0, 0, ! PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", ! PUA_TEXT_STRING, ( PUU32 )"Start Fullscreen Mode", ! PUA_CONTROL_FRAME, PUFRAME_BUTTON, ! PUA_CONTROL_ISBUTTON, TRUE, 0, ! PUM_ADDNOTIFICATION, ! PUNOTIFY_CONDITION_ATTREQUALS, PUA_CONTROL_CLICKED, TRUE, ! PUNOTIFY_ACTION_APPMSG, CSAM_STARTFULLSCREEN, ! 0, PU_ENDGROUP, --- 88,116 ---- PU_ENDGROUP, 0, 0, ! PUM_ADDCHILD, PU_HORGROUP, ! PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", ! PUA_TEXT_STRING, ( PUU32 )"Start Fullscreen Mode", ! PUA_CONTROL_FRAME, PUFRAME_BUTTON, ! PUA_CONTROL_ISBUTTON, TRUE, 0, ! PUM_ADDNOTIFICATION, ! PUNOTIFY_CONDITION_ATTREQUALS, PUA_CONTROL_CLICKED, TRUE, ! PUNOTIFY_ACTION_APPMSG, CSAM_STARTFULLSCREEN, ! 0, ! PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", ! ! PUA_TEXT_STRING, ( PUU32 )"Set Sliders Now", ! ! PUA_CONTROL_FRAME, PUFRAME_BUTTON, ! ! PUA_CONTROL_ISBUTTON, TRUE, 0, + PUM_ADDNOTIFICATION, + + PUNOTIFY_CONDITION_ATTREQUALS, PUA_CONTROL_CLICKED, TRUE, + + PUNOTIFY_ACTION_APPMSG, CSAM_SET_SLIDERS, + + 0, + PU_ENDGROUP, PU_ENDGROUP, |
From: <gn...@us...> - 2004-02-16 15:31:45
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28087 Modified Files: .cvsignore Log Message: Updated by TortoiseCVS Index: .cvsignore =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/.cvsignore,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** .cvsignore 6 Nov 2003 23:41:10 -0000 1.11 --- .cvsignore 16 Feb 2004 15:23:38 -0000 1.12 *************** *** 18,19 **** --- 18,20 ---- LastSettings.cs *.DS_Store + ctreestd.dll |
From: <gn...@pr...> - 2004-01-27 00:45:18
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15606 Modified Files: guidef.c Log Message: Added Folding Tabs to the options page to make CS fit in 800x600 again... Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** guidef.c 23 Jan 2004 08:19:26 -0000 1.14 --- guidef.c 25 Jan 2004 06:59:57 -0000 1.15 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.15 2004/01/25 06:59:57 gnarf37 + * Added Folding Tabs to the options page to make CS fit in 800x600 again... + * * Revision 1.14 2004/01/23 08:19:26 ibender * added mission slider settings *************** *** 278,282 **** // **** Options tab **** PU_ACTION_OBJDEF, CS_OPTIONS_TAB, ( PUU32 )"VerGroup", 0, - PUM_ADDCHILD, PU_SPACER, PUM_ADDCHILD, PU_TITLE( "ClickSaver "CS_VERSION), PUM_ADDCHILD, PU_LABEL( "Originally by MORB, Updates by Gnarf" ), --- 281,284 ---- *************** *** 289,293 **** PUM_ADDCHILD, PU_LABEL( "All the helpful people on HQ forums" ), PUM_ADDCHILD, PU_TITLE( NULL ), - PUM_ADDCHILD, PU_SPACER, PUM_ADDCHILD, PU_HORGROUP, --- 291,294 ---- *************** *** 295,333 **** PUM_ADDCHILD, PU_FRAMED_VERGROUP( PUFRAME_GROUP, "Options" ), ! PUM_ADDCHILD, PU_TITLE( "General" ), ! PUM_ADDCHILD, PU_LEFT_VERGROUP, ! PUM_ADDCHILD, PU_CHECKBOX( CS_STARTMIN_CB, "Start minimized" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_MSGBOX_CB, "Alert box" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_MOUSEMOVE_CB, "Select Match" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_SOUNDS_CB, "Sounds" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_LOG_CB, "Logging" ), ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_BAINFO_CB, ( PUU32 )"CheckBox", ! PUA_CHECKBOX_LABEL, ( PUU32 )"Show buying agent help", ! PUA_CHECKBOX_CHECKED, TRUE, 0, ! PUM_ADDNOTIFICATION, ! PUNOTIFY_CONDITION_ATTRCHANGE, PUA_CHECKBOX_CHECKED, ! PUNOTIFY_ACTION_SETVAL, CS_BAINFO2_CB, PUA_CHECKBOX_CHECKED, ! 0, ! PUM_ADDCHILD, PU_CHECKBOX( CS_EXPAND_CB, "Auto Expand Team Missions" ), ! PU_ENDGROUP, - PUM_ADDCHILD, PU_TITLE( "Mission search conditions" ), - PUM_ADDCHILD, PU_LEFT_VERGROUP, - PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTITEM_CB, "Listed item is found" ), - PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTLOC_CB, "Listed location is found" ), - PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTTYPE_CB, "With Listed Mission Type" ), - PUM_ADDCHILD, PU_LABEL( "Check multiples to search for missions" ), - PUM_ADDCHILD, PU_LABEL( "that satisfy all conditions" ), - PU_ENDGROUP, ! PUM_ADDCHILD, PU_TITLE( "Highlight On Match" ), ! PUM_ADDCHILD, PU_LEFT_VERGROUP, ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTITEM_CB, "Item" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTLOC_CB, "Location" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTTYPE_CB, "Type" ), ! PU_ENDGROUP, PU_ENDGROUP, --- 296,356 ---- PUM_ADDCHILD, PU_FRAMED_VERGROUP( PUFRAME_GROUP, "Options" ), ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", ! PUA_FOLD_LABEL, ( PUU32 )"General", ! PUA_FOLD_FOLDED, 0, ! PUA_FOLD_CONTENTS, ! PU_HORGROUP, ! PUM_ADDCHILD, PU_LEFT_VERGROUP, ! PUM_ADDCHILD, PU_CHECKBOX( CS_STARTMIN_CB, "Start minimized" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_MSGBOX_CB, "Alert box" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_MOUSEMOVE_CB, "Select Match" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_SOUNDS_CB, "Sounds" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_LOG_CB, "Logging" ), ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_BAINFO_CB, ( PUU32 )"CheckBox", ! PUA_CHECKBOX_LABEL, ( PUU32 )"Show buying agent help", ! PUA_CHECKBOX_CHECKED, TRUE, 0, ! PUM_ADDNOTIFICATION, ! PUNOTIFY_CONDITION_ATTRCHANGE, PUA_CHECKBOX_CHECKED, ! PUNOTIFY_ACTION_SETVAL, CS_BAINFO2_CB, PUA_CHECKBOX_CHECKED, ! 0, ! PUM_ADDCHILD, PU_CHECKBOX( CS_EXPAND_CB, "Auto Expand Team Missions" ), ! PU_ENDGROUP, ! PUM_ADDCHILD, PU_SPACER, ! PU_ENDGROUP, ! 0, 0, /// End Fold ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", ! PUA_FOLD_LABEL, ( PUU32 )"Mission search conditions", ! PUA_FOLD_FOLDED, 1, ! PUA_FOLD_CONTENTS, ! PU_HORGROUP, ! PUM_ADDCHILD, PU_LEFT_VERGROUP, ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTITEM_CB, "Listed item is found" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTLOC_CB, "Listed location is found" ), ! PUM_ADDCHILD, PU_CHECKBOX( CS_ALERTTYPE_CB, "With Listed Mission Type" ), ! PUM_ADDCHILD, PU_LABEL( "Check multiples to search for missions" ), ! PUM_ADDCHILD, PU_LABEL( "that satisfy all conditions" ), ! PU_ENDGROUP, ! PUM_ADDCHILD, PU_SPACER, ! PU_ENDGROUP, ! 0, 0, /// End Fold ! ! PUM_ADDCHILD, PU_ACTION_OBJDEF, CS_OPTIONSFOLD3, ( PUU32 )"Fold", ! PUA_FOLD_LABEL, ( PUU32 )"Highlight On Match", ! PUA_FOLD_FOLDED, 1, ! PUA_FOLD_CONTENTS, ! PU_HORGROUP, ! PUM_ADDCHILD, PU_LEFT_VERGROUP, ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTITEM_CB, "Item" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTLOC_CB, "Location" ), ! PUM_ADDCHILD, PU_SET_CHECKBOX( CS_HIGHLIGHTTYPE_CB, "Type" ), ! PU_ENDGROUP, ! PUM_ADDCHILD, PU_SPACER, ! PU_ENDGROUP, ! 0, 0, /// End Fold PU_ENDGROUP, |
From: <gn...@pr...> - 2004-01-26 15:12:35
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2003 Modified Files: clicksaver.c clicksaver.h guidef.c localdb.c mission.c mission.h Log Message: 2.3.0 beta 3 - Shrunk Database a bit, added Item Value options, make options menu smaller a tad so that 800x600 might be able to use it again... |
From: <gn...@us...> - 2003-11-06 23:41:54
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv5733 Modified Files: clicksaver.c clicksaver.h guidef.c mission.c Log Message: Version 2.3.0 beta 2 - Fixed issues with 15.2.0 and added an option for auto expand team missions Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** clicksaver.c 31 Oct 2003 03:40:50 -0000 1.10 --- clicksaver.c 6 Nov 2003 23:41:50 -0000 1.11 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.11 2003/11/06 23:41:50 gnarf37 + * Version 2.3.0 beta 2 - Fixed issues with 15.2.0 and added an option for auto expand team missions + * * Revision 1.10 2003/10/31 03:40:50 gnarf37 * Saving/Loading Configurations *************** *** 309,314 **** g_FoundMish = 255; for( g_MishNumber = 0; g_MishNumber < 5; g_MishNumber++ ) if( !( pMissionData = ( void* )puDoMethod( MissionControls[g_MishNumber], CSM_MISSION_PARSEMISSION, ( PUU32 )pMissionData, 0 ) ) ) ! break; ReleaseMutex( g_Mutex ); --- 312,323 ---- g_FoundMish = 255; for( g_MishNumber = 0; g_MishNumber < 5; g_MishNumber++ ) + { + void *pLastMissionData; + pLastMissionData = pMissionData; if( !( pMissionData = ( void* )puDoMethod( MissionControls[g_MishNumber], CSM_MISSION_PARSEMISSION, ( PUU32 )pMissionData, 0 ) ) ) ! { ! pMissionData = pLastMissionData; ! } ! } ReleaseMutex( g_Mutex ); *************** *** 511,514 **** --- 520,524 ---- CFG_LOG, CFG_MOUSEMOVE, + CFG_EXPAND, }; *************** *** 536,539 **** --- 546,550 ---- { CFG_MISSIONTYPES, "MISHTYPES" }, { CFG_HIGHLIGHTOPTS, "HIGHLIGHTOPTS" }, + { CFG_EXPAND, "EXPAND" }, { 0, NULL } }; *************** *** 646,649 **** --- 657,665 ---- puSetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); break; + + case CFG_EXPAND: + sscanf( Value, "%d", &Val ); + puSetAttribute( puGetObjectFromCollection( g_pCol, CS_EXPAND_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); + break; case CFG_LOG: *************** *** 771,774 **** --- 787,793 ---- fprintf( fp, "SOUNDS::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SOUNDS_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); + + fprintf( fp, "EXPAND::%d\n", + puGetAttribute( puGetObjectFromCollection( g_pCol, CS_EXPAND_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); fprintf( fp, "MOUSEMOVE::%d\n", Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** clicksaver.h 31 Oct 2003 03:40:50 -0000 1.9 --- clicksaver.h 6 Nov 2003 23:41:50 -0000 1.10 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.10 2003/11/06 23:41:50 gnarf37 + * Version 2.3.0 beta 2 - Fixed issues with 15.2.0 and added an option for auto expand team missions + * * Revision 1.9 2003/10/31 03:40:50 gnarf37 * Saving/Loading Configurations *************** *** 15,19 **** #define __CLICKSAVER_H__ ! #define CS_VERSION "2.3.0 beta 1" #include "mission.h" --- 18,22 ---- #define __CLICKSAVER_H__ ! #define CS_VERSION "2.3.0 beta 2" #include "mission.h" *************** *** 64,67 **** --- 67,71 ---- CS_MOUSEMOVE_CB, CS_LOG_CB, + CS_EXPAND_CB, CS_HIGHLIGHTITEM_CB, Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** guidef.c 6 Nov 2003 19:27:22 -0000 1.12 --- guidef.c 6 Nov 2003 23:41:50 -0000 1.13 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.13 2003/11/06 23:41:50 gnarf37 + * Version 2.3.0 beta 2 - Fixed issues with 15.2.0 and added an option for auto expand team missions + * * Revision 1.12 2003/11/06 19:27:22 gnarf37 * Changed URL *************** *** 201,204 **** --- 204,209 ---- PUNOTIFY_ACTION_SETVAL, CS_BAINFO2_CB, PUA_CHECKBOX_CHECKED, 0, + + PUM_ADDCHILD, PU_CHECKBOX( CS_EXPAND_CB, "Auto Expand Team Missions" ), PU_ENDGROUP, Index: mission.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/mission.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mission.c 27 May 2003 00:14:42 -0000 1.10 --- mission.c 6 Nov 2003 23:41:51 -0000 1.11 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.11 2003/11/06 23:41:51 gnarf37 + * Version 2.3.0 beta 2 - Fixed issues with 15.2.0 and added an option for auto expand team missions + * * Revision 1.10 2003/05/27 00:14:42 gnarf37 * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions *************** *** 263,267 **** PUU32 MissionParse( PULID _Object, MissionClassData* _pData, PUU8* _pMissionData ) { ! char TempStr[256]; char PFName[256]; float CoordX, CoordY; --- 266,270 ---- PUU32 MissionParse( PULID _Object, MissionClassData* _pData, PUU8* _pMissionData ) { ! char TempStr[256], CharKey[6]; char PFName[256]; float CoordX, CoordY; *************** *** 365,368 **** --- 368,382 ---- while( pTmpItem->Key1 != 0x2d2d2d2d ) { + unsigned short iQL1; + unsigned long lIcon1; + char strItemName1[AODB_MAX_NAME_LEN]; + + if (!GetAONameData( EndianSwap32(pTmpItem->Key1), strItemName1, &iQL1, &lIcon1)) + { + strncpy(CharKey, (char *) &(pTmpItem->Padding), 4); + CharKey[4] = 0; + break; + } + NumItems++; pTmpItem++; *************** *** 394,398 **** { _pData->pCol = _pData->pTeamCol; ! puSetAttribute( puGetObjectFromCollection( _pData->pCol, FOLD ), PUA_FOLD_FOLDED, TRUE ); } --- 408,412 ---- { _pData->pCol = _pData->pTeamCol; ! puSetAttribute( puGetObjectFromCollection( _pData->pCol, FOLD ), PUA_FOLD_FOLDED, puGetAttribute( puGetObjectFromCollection(g_pCol, CS_EXPAND_CB), PUA_CHECKBOX_CHECKED) ? FALSE : TRUE ); } *************** *** 450,454 **** // Write Stuff to log: ! WriteLog("mission\t%u\t%u\t%u\t%u\t%u\n", MishID, time(NULL), MishQL, XP, Cash); WriteLog("loc\t%u\t%.1f\t%.1f\t%s\n", MishPF, CoordX, CoordY, PFName); --- 464,468 ---- // Write Stuff to log: ! WriteLog("mission\t%u\t%u\t%u\t%u\t%u\t%s\n", MishID, time(NULL), MishQL, XP, Cash, CharKey); WriteLog("loc\t%u\t%.1f\t%.1f\t%s\n", MishPF, CoordX, CoordY, PFName); |
From: <gn...@us...> - 2003-11-06 23:41:53
|
Update of /cvsroot/clicksaver/ClickSaverSrc/AODB In directory sc8-pr-cvs1:/tmp/cvs-serv5733/AODB Modified Files: AODB.c Log Message: Version 2.3.0 beta 2 - Fixed issues with 15.2.0 and added an option for auto expand team missions Index: AODB.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/AODB/AODB.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AODB.c 21 Feb 2003 12:11:49 -0000 1.1 --- AODB.c 6 Nov 2003 23:41:50 -0000 1.2 *************** *** 20,31 **** { COUNT iErrVal; - char strDLLpath[MAX_PATH]; /* Build full path/file */ - wsprintf(strDLLpath, "%s%s", strAOFolder, "\\ctreestd.dll"); wsprintf(strAODBpath, "%s%s", strAOFolder, "\\cd_image\\data\\db\\ResourceDatabase"); /* Link the Ctree DLL */ ! if (!CTreeStd_LinkDll(strDLLpath)) { iErrVal = AODB_ERR_NODLL; --- 20,29 ---- { COUNT iErrVal; /* Build full path/file */ wsprintf(strAODBpath, "%s%s", strAOFolder, "\\cd_image\\data\\db\\ResourceDatabase"); /* Link the Ctree DLL */ ! if (!CTreeStd_LinkDll("ctreestd.dll")) { iErrVal = AODB_ERR_NODLL; |
From: <gn...@us...> - 2003-11-06 23:41:18
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv5615 Modified Files: .cvsignore Log Message: Updated by TortoiseCVS Index: .cvsignore =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/.cvsignore,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** .cvsignore 31 Oct 2003 03:39:37 -0000 1.10 --- .cvsignore 6 Nov 2003 23:41:10 -0000 1.11 *************** *** 17,18 **** --- 17,19 ---- clicksaver.log LastSettings.cs + *.DS_Store |
From: <gn...@us...> - 2003-11-06 19:27:38
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv19248 Modified Files: guidef.c Log Message: Changed URL Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** guidef.c 31 Oct 2003 03:40:50 -0000 1.11 --- guidef.c 6 Nov 2003 19:27:22 -0000 1.12 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.12 2003/11/06 19:27:22 gnarf37 + * Changed URL + * * Revision 1.11 2003/10/31 03:40:50 gnarf37 * Saving/Loading Configurations *************** *** 169,173 **** PUM_ADDCHILD, PU_TITLE( "ClickSaver "CS_VERSION), PUM_ADDCHILD, PU_LABEL( "Originally by MORB, Updates by Gnarf" ), ! PUM_ADDCHILD, PU_LABEL( "http://clicksaver.notumwars.com" ), PUM_ADDCHILD, PU_LABEL( " " ), PUM_ADDCHILD, PU_LABEL( "Some parts are from AOMD 1.4 by Muzzleflash" ), --- 172,176 ---- PUM_ADDCHILD, PU_TITLE( "ClickSaver "CS_VERSION), PUM_ADDCHILD, PU_LABEL( "Originally by MORB, Updates by Gnarf" ), ! PUM_ADDCHILD, PU_LABEL( "http://www.gnarf.net/clicksaver" ), PUM_ADDCHILD, PU_LABEL( " " ), PUM_ADDCHILD, PU_LABEL( "Some parts are from AOMD 1.4 by Muzzleflash" ), |
From: <gn...@us...> - 2003-10-31 03:40:53
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv25328 Modified Files: ClickSaver.dsp clicksaver.c clicksaver.h guidef.c Log Message: Saving/Loading Configurations Index: ClickSaver.dsp =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/ClickSaver.dsp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ClickSaver.dsp 9 May 2003 16:29:27 -0000 1.6 --- ClickSaver.dsp 31 Oct 2003 03:40:50 -0000 1.7 *************** *** 55,59 **** LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 ! # ADD LINK32 PUL.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib /nologo /subsystem:windows /machine:I386 /libpath:"PUL\lib" !ELSEIF "$(CFG)" == "ClickSaver - Win32 Debug" --- 55,59 ---- LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 ! # ADD LINK32 PUL.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib /nologo /subsystem:windows /machine:I386 /libpath:"PUL\lib" !ELSEIF "$(CFG)" == "ClickSaver - Win32 Debug" *************** *** 81,85 **** LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept ! # ADD LINK32 PULd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /libpath:"PUL\lib" !ENDIF --- 81,85 ---- LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept ! # ADD LINK32 PULd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib comdlg32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /libpath:"PUL\lib" !ENDIF Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** clicksaver.c 25 Oct 2003 21:33:32 -0000 1.9 --- clicksaver.c 31 Oct 2003 03:40:50 -0000 1.10 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.10 2003/10/31 03:40:50 gnarf37 + * Saving/Loading Configurations + * * Revision 1.9 2003/10/25 21:33:32 gnarf37 * Fixed date/time checking... Should get rid of the major problem everyone is havving *************** *** 38,48 **** void CleanUp(); ! void LoadWatchList( PUU8* _pFileName, PULID _List ); ! void SaveWatchList( PUU8* _pFileName, PULID _List ); ! void LoadConfig(); ! void SaveConfig(); void DisplayErrorMessage( PUU8* _pMessage, PUU32 _bAsynchronous ); void GetFolder(HWND hWndOwner, char *strTitle, char *strPath); int BuyingAgent(); --- 41,51 ---- void CleanUp(); ! void ImportSettings(char*filename); ! void ExportSettings(char*filename); ! void DisplayErrorMessage( PUU8* _pMessage, PUU32 _bAsynchronous ); void GetFolder(HWND hWndOwner, char *strTitle, char *strPath); + BOOL GetFile(HWND hWndOwner, BOOL saving, char *buffer, int buffersize); int BuyingAgent(); *************** *** 110,121 **** GetCurrentDirectory( 256, g_CSDir ); ! // Load config ! LoadConfig(); ! ! // Load item watch list ! LoadWatchList( "CS_ItemWatch.txt", g_ItemWatchList ); ! ! // Load location watch list ! LoadWatchList( "CS_LocWatch.txt", g_LocWatchList ); if( puGetAttribute( puGetObjectFromCollection( g_pCol, CS_STARTMIN_CB ), PUA_CHECKBOX_CHECKED ) ) --- 113,117 ---- GetCurrentDirectory( 256, g_CSDir ); ! ImportSettings("LastSettings.cs"); if( puGetAttribute( puGetObjectFromCollection( g_pCol, CS_STARTMIN_CB ), PUA_CHECKBOX_CHECKED ) ) *************** *** 235,239 **** // Create mutex ! if( ( g_Mutex = CreateMutex( NULL, FALSE, NULL ) ) == INVALID_HANDLE_VALUE ) { DisplayErrorMessage( "Couldn't create mutex.", FALSE ); --- 231,235 ---- // Create mutex ! if( ( g_Mutex = CreateMutex( NULL, FALSE, "ClickSaver")) == INVALID_HANDLE_VALUE ) { DisplayErrorMessage( "Couldn't create mutex.", FALSE ); *************** *** 242,246 **** return -1; } ! // Starts dll hook management thread if( ( g_Thread = CreateThread( NULL, 0, &HookManagerThread, NULL, 0, &dwThreadID ) ) == INVALID_HANDLE_VALUE ) --- 238,249 ---- return -1; } ! if ( GetLastError() == ERROR_ALREADY_EXISTS ) { ! HWND hWnd; ! if (hWnd = FindWindow ( "ClickSaverHookWindowClass", "ClickSaverHookWindow" )) ! { ! // send some message ! return -1; ! } ! } // Starts dll hook management thread if( ( g_Thread = CreateThread( NULL, 0, &HookManagerThread, NULL, 0, &dwThreadID ) ) == INVALID_HANDLE_VALUE ) *************** *** 392,395 **** --- 395,417 ---- break; + case CSAM_EXPORTSETTINGS: + { + char buffer[2000]; + if (GetFile(( HWND )puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MAIN_WINDOW ), PUA_WINDOW_HANDLE ) + , TRUE, buffer,2000)) + ExportSettings(buffer); + + } + break; + + case CSAM_IMPORTSETTINGS: + { + char buffer[2000]; + if (GetFile(( HWND )puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MAIN_WINDOW ), PUA_WINDOW_HANDLE ) + , FALSE, buffer,2000)) + ImportSettings(buffer); + } + break; + case CSAM_STOPFULLSCREEN: g_bFullscreen = 0; *************** *** 445,456 **** } while( pAppMsg->Message != CSAM_QUIT ); ! // Save config ! SaveConfig(); ! // Save item watch list ! SaveWatchList( "CS_ItemWatch.txt", g_ItemWatchList ); - // Save location watch list - SaveWatchList( "CS_LocWatch.txt", g_LocWatchList ); // ReleaseAODatabase(); --- 467,474 ---- } while( pAppMsg->Message != CSAM_QUIT ); ! SetCurrentDirectory( g_CSDir ); ! ExportSettings("LastSettings.cs"); // ReleaseAODatabase(); *************** *** 474,544 **** } - void LoadWatchList( PUU8* _pFileName, PULID _List ) - { - FILE* fp; - PUU8 String[256]; - PUU8* pString; - PUU8 c; - - if( !( fp = fopen( _pFileName, "r" ) ) ) - return; - - while( fscanf( fp, "%[^\n]\n", String ) != EOF ) - { - // Strip trailing spaces/tab - pString = String + strlen( String ); - - while( pString > String ) - { - c = *--pString; - if( c != ' ' && c != '\t' ) - break; - } - - *( pString + 1 ) = 0; - - // Strip leading spaces/tab - pString = String; - - while( c = *pString++ ) - { - if( c != ' ' && c != '\t' ) - break; - } - - pString--; - - // If the resulting string isn't empty, add it to the list - if( *pString ) - { - puDoMethod( _List, PUM_TABLE_ADDRECORD, 0, 0 ); - puDoMethod( _List, PUM_TABLE_SETFIELDVAL, ( PUU32 )pString, 0 ); - } - } - - fclose( fp ); - } - - void SaveWatchList( PUU8* _pFileName, PULID _List ) - { - FILE* fp; - PUU32 Record; - PUU8* pString; - - if( !( fp = fopen( _pFileName, "w" ) ) ) - return; - - Record = puDoMethod( _List, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); - while( Record ) - { - if( pString = ( PUU8* )puDoMethod( _List, PUM_TABLE_GETFIELDVAL, Record, 0 ) ) - fprintf( fp, "%s\n", pString ); - - Record = puDoMethod( _List, PUM_TABLE_GETNEXTRECORD, Record, 0 ); - } - - fclose( fp ); - } - enum { --- 492,495 ---- *************** *** 588,769 **** }; ! void LoadConfig() { FILE* fp; ! int i; PUU8 Keyword[256], Value[256]; ! int Id; PUU32 Val; ! if( !( fp = fopen( "CS_Config.txt", "r" ) ) ) ! return; ! while( fscanf( fp, "%[^\n]\n%[^\n]\n", Keyword, Value ) != EOF ) { ! i = 0, Id = -1; ! while( CfgKeywords[i].keyword ) { ! if( !strcmp( Keyword, CfgKeywords[i].keyword ) ) ! { ! Id = CfgKeywords[i].id; ! break; ! } ! ! i++; } ! ! switch( Id ) { ! case CFG_AODIR: ! strcpy( g_AODir, Value ); break; ! case CFG_WINDOWX: ! sscanf( Value, "%d", &Val ); ! if( Val < 16384 ) ! puSetAttribute( g_MainWin, PUA_WINDOW_XPOS, Val ); ! break; ! case CFG_WINDOWY: ! sscanf( Value, "%d", &Val ); ! if( Val < 16384 ) ! puSetAttribute( g_MainWin, PUA_WINDOW_YPOS, Val ); ! break; ! case CFG_WINDOWWIDTH: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( g_MainWin, PUA_WINDOW_WIDTH, Val ); ! break; ! case CFG_STARTMINIMIZED: ! sscanf( Value, "%d", &Val ); ! if( Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_STARTMIN_CB ), PUA_CHECKBOX_CHECKED, TRUE ); ! break; ! case CFG_WATCHMSGBOX: ! sscanf( Value, "%d", &Val ); ! if( !Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_MSGBOX_CB ), PUA_CHECKBOX_CHECKED, FALSE ); ! break; ! case CFG_BUYINGAGENTSHOWHELP: ! sscanf( Value, "%d", &Val ); ! if( !Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_BAINFO_CB ), PUA_CHECKBOX_CHECKED, FALSE ); ! break; ! case CFG_SOUNDS: ! sscanf( Value, "%d", &Val ); ! if( Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_SOUNDS_CB ), PUA_CHECKBOX_CHECKED, TRUE ); ! break; ! case CFG_MOUSEMOVE: ! sscanf( Value, "%d", &Val ); ! if( !Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED, FALSE ); ! break; ! case CFG_LOG: ! sscanf( Value, "%d", &Val ); ! if( Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_LOG_CB ), PUA_CHECKBOX_CHECKED, TRUE ); ! break; ! case CFG_ALERTITEM: ! sscanf( Value, "%d", &Val ); ! if( Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTITEM_CB ), PUA_CHECKBOX_CHECKED, TRUE ); ! break; ! case CFG_ALERTLOC: ! sscanf( Value, "%d", &Val ); ! if( Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTLOC_CB ), PUA_CHECKBOX_CHECKED, TRUE ); ! break; ! case CFG_ALERTTYPE: ! sscanf( Value, "%d", &Val ); ! if( Val ) ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTTYPE_CB ), PUA_CHECKBOX_CHECKED, TRUE ); ! break; ! case CFG_BUYINGAGENTMAXTRIES: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTTRIES ), PUA_TEXTENTRY_VALUE, Val ); ! break; ! case CFG_BUYINGAGENTHIDE: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTFOLD ), PUA_FOLD_FOLDED, Val ); ! break; ! case CFG_MISSIONTYPES: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEREPAIR_CB), PUA_CHECKBOX_CHECKED, (Val & 0x01 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPERETURN_CB), PUA_CHECKBOX_CHECKED, (Val & 0x02 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEFINDP_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x04 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEFINDI_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x08 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEASS_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x10 ? TRUE : FALSE)); ! break; ! case CFG_HIGHLIGHTOPTS: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTITEM_CB), PUA_CHECKBOX_CHECKED, (Val & 0x01 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTLOC_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x02 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTTYPE_CB), PUA_CHECKBOX_CHECKED, (Val & 0x04 ? TRUE : FALSE)); break; } } - fclose( fp ); } ! void SaveConfig() { FILE* fp; pusRect Rect; unsigned int Val = 0; ! if( !( fp = fopen( "CS_Config.txt", "w" ) ) ) ! return; ! fprintf( fp, "AODIR\n%s\n", g_AODir ); puDoMethod( g_MainWin, PUM_WINDOW_GETRECT, ( PUU32 )&Rect, 0 ); ! fprintf( fp, "WINDOWX\n%d\nWINDOWY\n%d\nWINDOWWIDTH\n%d\n", Rect.X, Rect.Y, Rect.Width ); ! fprintf( fp, "STARTMINIMIZED\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_STARTMIN_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "WATCHMSGBOX\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MSGBOX_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "BUYINGAGENTSHOWHELP\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BAINFO_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "SOUNDS\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SOUNDS_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "MOUSEMOVE\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "LOG\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_LOG_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "ALERTITEM\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTITEM_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "ALERTLOC\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTLOC_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "ALERTTYPE\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTTYPE_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "BUYINGAGENTMAXTRIES\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTTRIES ), PUA_TEXTENTRY_VALUE ) ); ! fprintf( fp, "BUYINGAGENTHIDE\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTFOLD ), PUA_FOLD_FOLDED ) ); --- 539,794 ---- }; ! ! void ImportSettings(char *filename) { FILE* fp; ! PUU32 Record; ! PUU8* pString; ! char buffer[1000]; PUU8 Keyword[256], Value[256]; ! int Id, i; PUU32 Val; + int mode = 0; + char c; ! Record = puDoMethod( g_LocWatchList, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); ! while( Record ) ! { ! puDoMethod( g_LocWatchList, PUM_TABLE_REMRECORD, Record, 0 ); ! Record = puDoMethod( g_LocWatchList, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); ! } ! Record = puDoMethod( g_ItemWatchList, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); ! while( Record ) ! { ! puDoMethod( g_ItemWatchList, PUM_TABLE_REMRECORD, Record, 0 ); ! Record = puDoMethod( g_ItemWatchList, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); ! } ! ! if( !( fp = fopen( filename, "r" ) ) ) ! return; ! ! while (fgets(buffer, 1000, fp)) { ! if (sscanf(buffer,"::%s", &buffer) == 1) { ! strtok(buffer,":"); ! if (!stricmp(buffer, "Config")) mode=1; ! if (!stricmp(buffer, "LocWatch")) mode=3; ! if (!stricmp(buffer, "ItemWatch")) mode=2; ! if (!stricmp(buffer, "Done")) mode=0; ! continue; } ! switch(mode) { ! case 0: break; + case 1: + if (sscanf( buffer, "%[^:]::%[^\n]\n", Keyword, Value ) != EOF ) + { + i = 0, Id = -1; + while( CfgKeywords[i].keyword ) + { + if( !strcmp( Keyword, CfgKeywords[i].keyword ) ) + { + Id = CfgKeywords[i].id; + break; + } ! i++; ! } ! switch( Id ) ! { ! case CFG_AODIR: ! strcpy( g_AODir, Value ); ! break; ! case CFG_WINDOWX: ! sscanf( Value, "%d", &Val ); ! if( Val < 16384 ) ! puSetAttribute( g_MainWin, PUA_WINDOW_XPOS, Val ); ! break; ! case CFG_WINDOWY: ! sscanf( Value, "%d", &Val ); ! if( Val < 16384 ) ! puSetAttribute( g_MainWin, PUA_WINDOW_YPOS, Val ); ! break; ! case CFG_WINDOWWIDTH: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( g_MainWin, PUA_WINDOW_WIDTH, Val ); ! break; ! case CFG_STARTMINIMIZED: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_STARTMIN_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_WATCHMSGBOX: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_MSGBOX_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_BUYINGAGENTSHOWHELP: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_BAINFO_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_SOUNDS: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_SOUNDS_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_MOUSEMOVE: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_LOG: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_LOG_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_ALERTITEM: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTITEM_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_ALERTLOC: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTLOC_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_ALERTTYPE: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTTYPE_CB ), PUA_CHECKBOX_CHECKED, (Val ? TRUE : FALSE) ); ! break; ! case CFG_BUYINGAGENTMAXTRIES: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTTRIES ), PUA_TEXTENTRY_VALUE, Val ); ! break; ! case CFG_BUYINGAGENTHIDE: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTFOLD ), PUA_FOLD_FOLDED, Val ); ! break; ! ! case CFG_MISSIONTYPES: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEREPAIR_CB), PUA_CHECKBOX_CHECKED, (Val & 0x01 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPERETURN_CB), PUA_CHECKBOX_CHECKED, (Val & 0x02 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEFINDP_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x04 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEFINDI_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x08 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEASS_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x10 ? TRUE : FALSE)); ! break; ! ! case CFG_HIGHLIGHTOPTS: ! sscanf( Value, "%d", &Val ); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTITEM_CB), PUA_CHECKBOX_CHECKED, (Val & 0x01 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTLOC_CB ), PUA_CHECKBOX_CHECKED, (Val & 0x02 ? TRUE : FALSE)); ! puSetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTTYPE_CB), PUA_CHECKBOX_CHECKED, (Val & 0x04 ? TRUE : FALSE)); ! break; ! } ! } break; + case 2: + case 3: + + pString = buffer + strlen( buffer ); + + while( pString > buffer ) + { + c = *--pString; + if( c != ' ' && c != '\t' && c != '\n' ) + break; + } + + *( pString + 1 ) = 0; + + // Strip leading spaces/tab + pString = buffer; + + while( c = *pString++ ) + { + if( c != ' ' && c != '\t' ) + break; + } + + pString--; + + // If the resulting string isn't empty, add it to the list + if( *pString ) + { + puDoMethod( (mode==2 ? g_ItemWatchList : g_LocWatchList), PUM_TABLE_ADDRECORD, 0, 0 ); + puDoMethod( (mode==2 ? g_ItemWatchList : g_LocWatchList), PUM_TABLE_SETFIELDVAL, ( PUU32 )pString, 0 ); + } + break; } + + } } ! void ExportSettings(char *filename) { FILE* fp; pusRect Rect; + PUU32 Record; + PUU8* pString; unsigned int Val = 0; + char* myfilename; ! myfilename=malloc(strlen(filename)+5); ! strcpy(myfilename, filename); ! if (!strstr(myfilename, ".cs")) strcat(myfilename, ".cs"); ! ! if( !( fp = fopen( myfilename, "w" ) ) ) ! { ! free(myfilename); ! return; ! } ! free(myfilename); ! fprintf(fp, "::Config::\n"); ! fprintf( fp, "AODIR::%s\n", g_AODir ); puDoMethod( g_MainWin, PUM_WINDOW_GETRECT, ( PUU32 )&Rect, 0 ); ! fprintf( fp, "WINDOWX::%d\nWINDOWY::%d\nWINDOWWIDTH::%d\n", Rect.X, Rect.Y, Rect.Width ); ! fprintf( fp, "STARTMINIMIZED::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_STARTMIN_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "WATCHMSGBOX::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MSGBOX_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "BUYINGAGENTSHOWHELP::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BAINFO_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "SOUNDS::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SOUNDS_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "MOUSEMOVE::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "LOG::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_LOG_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "ALERTITEM::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTITEM_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "ALERTLOC::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTLOC_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "ALERTTYPE::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_ALERTTYPE_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); ! fprintf( fp, "BUYINGAGENTMAXTRIES::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTTRIES ), PUA_TEXTENTRY_VALUE ) ); ! fprintf( fp, "BUYINGAGENTHIDE::%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_BUYINGAGENTFOLD ), PUA_FOLD_FOLDED ) ); *************** *** 774,778 **** if (puGetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEASS_CB ), PUA_CHECKBOX_CHECKED)) Val |= 0x10; ! fprintf( fp, "MISHTYPES\n%d\n", Val); Val = 0; --- 799,803 ---- if (puGetAttribute( puGetObjectFromCollection( g_pCol, CS_TYPEASS_CB ), PUA_CHECKBOX_CHECKED)) Val |= 0x10; ! fprintf( fp, "MISHTYPES::%d\n", Val); Val = 0; *************** *** 781,789 **** if (puGetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTTYPE_CB), PUA_CHECKBOX_CHECKED)) Val |= 0x04; ! fprintf( fp, "HIGHLIGHTOPTS\n%d\n", Val); fclose( fp ); } void DisplayErrorMessage( PUU8* _pMessage, PUU32 _bAsynchronous ) { --- 806,837 ---- if (puGetAttribute( puGetObjectFromCollection( g_pCol, CS_HIGHLIGHTTYPE_CB), PUA_CHECKBOX_CHECKED)) Val |= 0x04; ! fprintf( fp, "HIGHLIGHTOPTS::%d\n", Val); ! ! fprintf(fp, "::ItemWatch::\n"); ! Record = puDoMethod( g_ItemWatchList, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); ! while( Record ) ! { ! if( pString = ( PUU8* )puDoMethod( g_ItemWatchList, PUM_TABLE_GETFIELDVAL, Record, 0 ) ) ! fprintf( fp, "%s\n", pString ); ! ! Record = puDoMethod( g_ItemWatchList, PUM_TABLE_GETNEXTRECORD, Record, 0 ); ! } ! fprintf(fp, "::LocWatch::\n"); ! Record = puDoMethod( g_LocWatchList, PUM_TABLE_GETFIRSTRECORD, 0, 0 ); ! while( Record ) ! { ! if( pString = ( PUU8* )puDoMethod( g_LocWatchList, PUM_TABLE_GETFIELDVAL, Record, 0 ) ) ! fprintf( fp, "%s\n", pString ); ! ! Record = puDoMethod( g_LocWatchList, PUM_TABLE_GETNEXTRECORD, Record, 0 ); ! } ! fprintf(fp, "::END::\n"); ! fclose( fp ); + } + void DisplayErrorMessage( PUU8* _pMessage, PUU32 _bAsynchronous ) { *************** *** 820,823 **** --- 868,905 ---- strPath[0] = 0; // Zero-length if failure } + + BOOL GetFile(HWND hWndOwner, BOOL saving, char *buffer, int buffersize) + { + OPENFILENAME ofn; + + ZeroMemory(&ofn, sizeof(ofn)); + + /* Initialise */ + ofn.hwndOwner = hWndOwner; + ofn.lStructSize = sizeof(OPENFILENAME); + if (saving) + ofn.Flags=OFN_HIDEREADONLY; + else + ofn.Flags=OFN_FILEMUSTEXIST | OFN_PATHMUSTEXIST | OFN_HIDEREADONLY; + + ofn.lpstrFilter="Clicksaver Files\0*.CS\0"; + ofn.lpstrFile=buffer; + ofn.lpstrFile[0]='\0'; + ofn.nMaxFile=buffersize; + ofn.nFilterIndex = 0; + ofn.lpstrInitialDir=ofn.lpstrFileTitle=NULL; + ofn.nMaxFileTitle=0; + + + /* Prompt user for folder */ + if (saving) + return GetSaveFileName(&ofn); + else + return GetOpenFileName(&ofn); + + + return FALSE; + } + // Generate a mouse movement and button click sequence Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** clicksaver.h 27 May 2003 00:14:42 -0000 1.8 --- clicksaver.h 31 Oct 2003 03:40:50 -0000 1.9 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.9 2003/10/31 03:40:50 gnarf37 + * Saving/Loading Configurations + * * Revision 1.8 2003/05/27 00:14:42 gnarf37 * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions *************** *** 12,16 **** #define __CLICKSAVER_H__ ! #define CS_VERSION "2.2.9" #include "mission.h" --- 15,19 ---- #define __CLICKSAVER_H__ ! #define CS_VERSION "2.3.0 beta 1" #include "mission.h" *************** *** 90,94 **** CSAM_STOPBUYINGAGENT, CSAM_STARTFULLSCREEN, ! CSAM_STOPFULLSCREEN }; --- 93,99 ---- CSAM_STOPBUYINGAGENT, CSAM_STARTFULLSCREEN, ! CSAM_STOPFULLSCREEN, ! CSAM_EXPORTSETTINGS, ! CSAM_IMPORTSETTINGS, }; Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** guidef.c 27 May 2003 00:14:42 -0000 1.10 --- guidef.c 31 Oct 2003 03:40:50 -0000 1.11 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.11 2003/10/31 03:40:50 gnarf37 + * Saving/Loading Configurations + * * Revision 1.10 2003/05/27 00:14:42 gnarf37 * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions *************** *** 216,219 **** --- 219,239 ---- PU_ENDGROUP, PUM_ADDCHILD, PU_VERSPACER( 20 ), + PU_ENDGROUP, + PUM_ADDCHILD, PU_TITLE("Export Options"), + PUM_ADDCHILD, PU_HORGROUP, + PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", PUA_TEXT_STRING, ( PUU32 )"Export Settings", + PUA_CONTROL_FRAME, PUFRAME_BUTTON, + PUA_CONTROL_ISBUTTON, TRUE, 0, + PUM_ADDNOTIFICATION, + PUNOTIFY_CONDITION_ATTREQUALS, PUA_CONTROL_CLICKED, TRUE, + PUNOTIFY_ACTION_APPMSG, CSAM_EXPORTSETTINGS, + 0, + PUM_ADDCHILD, PU_ACTION_OBJDEF, 0, ( PUU32 )"Text", PUA_TEXT_STRING, ( PUU32 )"Import Settings", + PUA_CONTROL_FRAME, PUFRAME_BUTTON, + PUA_CONTROL_ISBUTTON, TRUE, 0, + PUM_ADDNOTIFICATION, + PUNOTIFY_CONDITION_ATTREQUALS, PUA_CONTROL_CLICKED, TRUE, + PUNOTIFY_ACTION_APPMSG, CSAM_IMPORTSETTINGS, + 0, PU_ENDGROUP, PUM_ADDCHILD, PU_TITLE( "" ), |
From: <gn...@us...> - 2003-10-31 03:39:40
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv25137 Modified Files: .cvsignore Log Message: Updated by TortoiseCVS Index: .cvsignore =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/.cvsignore,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** .cvsignore 8 May 2003 08:23:53 -0000 1.9 --- .cvsignore 31 Oct 2003 03:39:37 -0000 1.10 *************** *** 16,17 **** --- 16,18 ---- AOHook.ilk clicksaver.log + LastSettings.cs |
From: <gn...@us...> - 2003-10-25 23:01:54
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv27639 Modified Files: clicksaver.c Log Message: Fixed date/time checking... Should get rid of the major problem everyone is havving Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** clicksaver.c 27 May 2003 00:14:42 -0000 1.8 --- clicksaver.c 25 Oct 2003 21:33:32 -0000 1.9 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.9 2003/10/25 21:33:32 gnarf37 + * Fixed date/time checking... Should get rid of the major problem everyone is havving + * * Revision 1.8 2003/05/27 00:14:42 gnarf37 * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions *************** *** 170,173 **** --- 173,177 ---- if( bUpdateDB ) { + FILETIME OrigTime; puSetAttribute( puGetObjectFromCollection( g_pCol, CS_DBCOPYMSGBOX ), PUA_WINDOW_OPENED, TRUE ); *************** *** 201,204 **** --- 205,217 ---- puSetAttribute( puGetObjectFromCollection( g_pCol, CS_CREATINGDBMSGBOX ), PUA_WINDOW_OPENED, FALSE ); + + sprintf( DBPath, "%s\\cd_image\\data\\db\\ResourceDatabase.dat", g_AODir ); + hOrigDB = CreateFile( DBPath, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL ); + hLocalDB = CreateFile( "AODatabase.bdb", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL ); + GetFileTime( hOrigDB, NULL, NULL, &OrigTime ); + SetFileTime( hLocalDB, NULL, NULL, &OrigTime ); + CloseHandle( hOrigDB ); + CloseHandle( hLocalDB ); + } |
From: <gn...@us...> - 2003-05-27 00:24:29
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv20227 Modified Files: ReadMe.txt Log Message: V2.2.9 Index: ReadMe.txt =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/ReadMe.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ReadMe.txt 7 May 2003 13:53:38 -0000 1.3 --- ReadMe.txt 27 May 2003 00:24:27 -0000 1.4 *************** *** 1,8 **** ! ClickSaver 2.2.7 ================ ! by MORB a.c...@fr... http://a.chavasse.free.fr/ClickSaver Some parts are from AOMD 1.4 by Muzzleflash. DLL patching done using madshi's madCodeHookLib. --- 1,13 ---- ! ClickSaver 2.2.9 ================ ! by Gnarf ! gn...@gn... ! http://clicksaver.notumwars.com/ ! ! Originally by MORB a.c...@fr... http://a.chavasse.free.fr/ClickSaver + Some parts are from AOMD 1.4 by Muzzleflash. DLL patching done using madshi's madCodeHookLib. *************** *** 69,72 **** --- 74,79 ---- or both. + The "Mission Type" tab lets you select a type of mission you wish to be alarmed on. + The "Options" tab: - Start Minimized: if this is checked, ClickSaver start in minimized *************** *** 75,78 **** --- 82,88 ---- one or more mission is found, depending is the mission search conditions (see below). + - Sounds: This turns on/off the sounds.. It plays found.wav and notfound.wav when running buying agent. + - Select Match: This turns on/off the mouse movement to select the first matching mission when using buying agent + Mission search conditions: *************** *** 81,91 **** - Listed location is found: if this is checked, a mission must have a location search match (red). ! When none of the above are checked, any mission containing ! a watched item or a watched location is searched. ! If only one is checked, only missions with the corresponding ! type of match are searched. ! If both are checked, it searches for missions whith both a ! location search match and an item search match. The window is resizable horizontally. It's size and position are --- 91,102 ---- - Listed location is found: if this is checked, a mission must have a location search match (red). + - Mission Type Found: if this is checked, a mission must + have a mission type search match (red). ! A mission must match all checked criteria for it to alert. ! ! Highligh: ! - Turn these off to disable the red highlighting of certain types ! of matches. (if you only want to highlight items for example) The window is resizable horizontally. It's size and position are *************** *** 115,124 **** searching only missions with matching items, but item list is empty) - Note that once started, there's no means of stopping it. That's why - you should think twice before setting a high number of tries - (and don't forget to multiply it by the cost of generating missions at - the terminal where you're at, just to be sure that the buying agent - won't get you bankrupt ;) - If you start the buying agent with the mission booth window misplaced, it will wait forever for missions to appear, and it won't get out of --- 126,129 ---- *************** *** 146,149 **** --- 151,183 ---- History ------- + 2.2.9 - "Google Like" search strings: + - Item Search, to allow web-search-like constructors "<text>", -<text> and word-match + Examples: + Searching for 'decus -gloves' will match all decus items except gloves; + Searching for 'decus armor' will match on 'decus body armor', and 'decus + armor boots' + Searching for '"decus armor"' will match on 'decus armor boots' but not on + 'decus body armor' + Searching for '"primus decus" -gloves -boots -body' will match on all primus + decus armor except for gloves, boots and body + - Location Search, to allow as above, plus location range search + Examples: + Searching for 'athen -shire' will match on 'west athens' and 'old athens' + Searching for 'athen (100-200,500-600)' will match on any athen mission with + coords x from 100 to 200, y from 500 to 600. + Searching for 'athen (100.2,200.3)' will match on any athen mission with + coords x and y exacly 100.2 and 200.3 respectively + Searching for 'athen (0-500,3000-999999)' will match on any athen mission + with coords x <=500, y>=3000 (but less than 999999) + - Made clicksaver a little smarter about only getting 3 or 4 missions from the terminal. + - Added a checkbox to disable the auto-selection of matching mission when your in buying agent. + + 2.2.9 beta - Fixed a bug with 14.8 where missions without rewards would stop clicksaver from reading the other missions after it + Added Mission XP reward to display + Added logging. I'm working on a log parser later, and I will release the log format as well, but this is an emergency release to fix the bug with 14.8. + Added Sounds.. There is now "found.wav" and "notfound.wav" if someone wants to make some sounds for it, e-mail em to me, right now it just uses some sounds I hijacked from the windows media directory + Fullscreen mode - If you hit this, it starts a mode where it will automatically start buying agent everytime you roll the first mission. It also has a "Fullscreen mode" UI box that never switches windows, which should get rid of some window swapping issues + 2.2.8 - New Maintainer.. Added mission types/time into the display/search. + Also made it select the mission you want selected before it ends buying agent 2.2.7 - Fixed (for good, it seems, I actually tested it this time...) the PUL bug that was causing the crash with team missions. |
From: <gn...@us...> - 2003-05-27 00:14:45
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv17185 Modified Files: clicksaver.c clicksaver.h guidef.c hook.c mission.c Log Message: Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions Index: clicksaver.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.c,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** clicksaver.c 8 May 2003 09:11:09 -0000 1.7 --- clicksaver.c 27 May 2003 00:14:42 -0000 1.8 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.8 2003/05/27 00:14:42 gnarf37 + * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions + * * Revision 1.7 2003/05/08 09:11:09 gnarf37 * Fullscreen Mode *************** *** 292,295 **** --- 295,299 ---- if( !( pMissionData = ( void* )puDoMethod( MissionControls[g_MishNumber], CSM_MISSION_PARSEMISSION, ( PUU32 )pMissionData, 0 ) ) ) break; + ReleaseMutex( g_Mutex ); *************** *** 542,545 **** --- 546,550 ---- CFG_SOUNDS, CFG_LOG, + CFG_MOUSEMOVE, }; *************** *** 552,555 **** --- 557,561 ---- { CFG_AODIR, "AODIR" }, { CFG_SOUNDS, "SOUNDS" }, + { CFG_MOUSEMOVE, "MOUSEMOVE" }, { CFG_LOG, "LOG" }, { CFG_WINDOWX, "WINDOWX" }, *************** *** 641,644 **** --- 647,656 ---- break; + case CFG_MOUSEMOVE: + sscanf( Value, "%d", &Val ); + if( !Val ) + puSetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED, FALSE ); + break; + case CFG_LOG: sscanf( Value, "%d", &Val ); *************** *** 722,725 **** --- 734,740 ---- puGetAttribute( puGetObjectFromCollection( g_pCol, CS_SOUNDS_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); + fprintf( fp, "MOUSEMOVE\n%d\n", + puGetAttribute( puGetObjectFromCollection( g_pCol, CS_MOUSEMOVE_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); + fprintf( fp, "LOG\n%d\n", puGetAttribute( puGetObjectFromCollection( g_pCol, CS_LOG_CB ), PUA_CHECKBOX_CHECKED ) ? 1 : 0 ); *************** *** 880,884 **** } ! if (g_FoundMish != 255) { // Move mouse and select mission that finished our Buying Agent MousePos.x = 47 + ((g_FoundMish % 3) * 60); MousePos.y = 44 + ((g_FoundMish / 3) * 57); --- 895,899 ---- } ! if (g_FoundMish != 255 && PUL_GET_CB(CS_MOUSEMOVE_CB)) { // Move mouse and select mission that finished our Buying Agent MousePos.x = 47 + ((g_FoundMish % 3) * 60); MousePos.y = 44 + ((g_FoundMish / 3) * 57); Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** clicksaver.h 9 May 2003 14:26:47 -0000 1.7 --- clicksaver.h 27 May 2003 00:14:42 -0000 1.8 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.8 2003/05/27 00:14:42 gnarf37 + * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions + * * Revision 1.7 2003/05/09 14:26:47 gnarf37 * Version 2.2.9 beta 2 *************** *** 9,13 **** #define __CLICKSAVER_H__ ! #define CS_VERSION "2.2.9 beta 2" #include "mission.h" --- 12,16 ---- #define __CLICKSAVER_H__ ! #define CS_VERSION "2.2.9" #include "mission.h" *************** *** 56,59 **** --- 59,63 ---- CS_SOUNDS_CB, + CS_MOUSEMOVE_CB, CS_LOG_CB, Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** guidef.c 9 May 2003 14:26:47 -0000 1.9 --- guidef.c 27 May 2003 00:14:42 -0000 1.10 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.10 2003/05/27 00:14:42 gnarf37 + * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions + * * Revision 1.9 2003/05/09 14:26:47 gnarf37 * Version 2.2.9 beta 2 *************** *** 181,184 **** --- 184,188 ---- PUM_ADDCHILD, PU_CHECKBOX( CS_STARTMIN_CB, "Start minimized" ), PUM_ADDCHILD, PU_SET_CHECKBOX( CS_MSGBOX_CB, "Alert box" ), + PUM_ADDCHILD, PU_SET_CHECKBOX( CS_MOUSEMOVE_CB, "Select Match" ), PUM_ADDCHILD, PU_CHECKBOX( CS_SOUNDS_CB, "Sounds" ), PUM_ADDCHILD, PU_CHECKBOX( CS_LOG_CB, "Logging" ), Index: hook.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/hook.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hook.c 21 Feb 2003 12:11:50 -0000 1.1 --- hook.c 27 May 2003 00:14:42 -0000 1.2 *************** *** 50,53 **** --- 50,54 ---- WaitForSingleObject( g_Mutex, INFINITE ); + memset(g_CurrentPacket, 0, 65536); memcpy( g_CurrentPacket, pData->lpData, pData->cbData ); ReleaseMutex( g_Mutex ); Index: mission.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/mission.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** mission.c 8 May 2003 09:11:09 -0000 1.9 --- mission.c 27 May 2003 00:14:42 -0000 1.10 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.10 2003/05/27 00:14:42 gnarf37 + * Added Checkbox to stop mouse movement, and cleaned up mission info parsing so it doesnt match stale missions + * * Revision 1.9 2003/05/08 09:11:09 gnarf37 * Fullscreen Mode *************** *** 293,297 **** --- 296,303 ---- { if( _pMissionData >= pEndMissionData ) + { + puSetAttribute( puGetObjectFromCollection( _pData->pCol, ROOTOBJ ), PUA_CONTROL_HIDDEN, TRUE); return 0; + } _pMissionData++; *************** *** 299,302 **** --- 305,309 ---- TempVal = EndianSwap32( TempVal ); } while( TempVal != 0xdac3 ); + puSetAttribute( puGetObjectFromCollection( _pData->pCol, ROOTOBJ ), PUA_CONTROL_HIDDEN, FALSE ); #ifdef DEBUG_MISSION_PACKETS // Debug Packect |
From: <gn...@us...> - 2003-05-09 16:29:30
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv14140 Modified Files: ClickSaver.dsp Log Message: added winmm.lib to release mode Index: ClickSaver.dsp =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/ClickSaver.dsp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ClickSaver.dsp 8 May 2003 07:36:55 -0000 1.5 --- ClickSaver.dsp 9 May 2003 16:29:27 -0000 1.6 *************** *** 55,59 **** LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 ! # ADD LINK32 PUL.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 /libpath:"PUL\lib" !ELSEIF "$(CFG)" == "ClickSaver - Win32 Debug" --- 55,59 ---- LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 ! # ADD LINK32 PUL.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib /nologo /subsystem:windows /machine:I386 /libpath:"PUL\lib" !ELSEIF "$(CFG)" == "ClickSaver - Win32 Debug" *************** *** 81,85 **** LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept ! # ADD LINK32 PULd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /libpath:"PUL\lib" !ENDIF --- 81,85 ---- LINK32=link.exe # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept ! # ADD LINK32 PULd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /libpath:"PUL\lib" !ENDIF |
From: <gn...@us...> - 2003-05-09 14:26:51
|
Update of /cvsroot/clicksaver/ClickSaverSrc In directory sc8-pr-cvs1:/tmp/cvs-serv15549 Modified Files: clicksaver.h guidef.c Log Message: Version 2.2.9 beta 2 Index: clicksaver.h =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/clicksaver.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** clicksaver.h 8 May 2003 09:11:09 -0000 1.6 --- clicksaver.h 9 May 2003 14:26:47 -0000 1.7 *************** *** 1,4 **** --- 1,13 ---- + /* + * $Log$ + * Revision 1.7 2003/05/09 14:26:47 gnarf37 + * Version 2.2.9 beta 2 + * + */ + #ifndef __CLICKSAVER_H__ #define __CLICKSAVER_H__ + + #define CS_VERSION "2.2.9 beta 2" #include "mission.h" Index: guidef.c =================================================================== RCS file: /cvsroot/clicksaver/ClickSaverSrc/guidef.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** guidef.c 8 May 2003 09:11:09 -0000 1.8 --- guidef.c 9 May 2003 14:26:47 -0000 1.9 *************** *** 1,4 **** --- 1,7 ---- /* * $Log$ + * Revision 1.9 2003/05/09 14:26:47 gnarf37 + * Version 2.2.9 beta 2 + * * Revision 1.8 2003/05/08 09:11:09 gnarf37 * Fullscreen Mode *************** *** 158,162 **** PU_ACTION_OBJDEF, CS_OPTIONS_TAB, ( PUU32 )"VerGroup", 0, PUM_ADDCHILD, PU_SPACER, ! PUM_ADDCHILD, PU_TITLE( "ClickSaver 2.2.8"), PUM_ADDCHILD, PU_LABEL( "Originally by MORB, Updates by Gnarf" ), PUM_ADDCHILD, PU_LABEL( "http://clicksaver.notumwars.com" ), --- 161,165 ---- PU_ACTION_OBJDEF, CS_OPTIONS_TAB, ( PUU32 )"VerGroup", 0, PUM_ADDCHILD, PU_SPACER, ! PUM_ADDCHILD, PU_TITLE( "ClickSaver "CS_VERSION), PUM_ADDCHILD, PU_LABEL( "Originally by MORB, Updates by Gnarf" ), PUM_ADDCHILD, PU_LABEL( "http://clicksaver.notumwars.com" ), |