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
|