INSTRUES PARA USAR O TERMINAL COM O Gespos

Verifique o ReadMeGespos.txt para configurar corretamente o Gespos.


Primeira utilizao:

-Verifique se a porta srie do seu computador  a Com1. Se no for tem que alterar as propridades dos links, alterando /ComPort 1 para /ComPort (numero da porta).
-Execute o link:'Apagar todos os dados do terminal'.
-Acorde o terminal com uma tecla e pouse o terminal no cradle, o cradle tem que estar alimentado.
-Aguarde at que o processo termine.


Para fazer um inventrio:

-No terminal escolha a opo Inventario, preencha o numero do armazem e inicie a recolha de dados.
-No Gespos indique que pretende ler os dados do terminal clicando no icone respectivo.
-Coloque o terminal no cradle e aguarde at o processo ficar terminado. 
-Os dados no sero apagados do terminal. ( para apagar os dados tem que se alterar a linha de comando acrescentando um /Clear 2).
-Apague os dados no terminal.

Para fazer uma venda:

-No terminal escolha a opo Vendas, preencha o numero do armazem e inicie a recolha de dados.
-No Gespos indique que pretende ler os dados do terminal clicando no icone respectivo.
-Coloque o terminal no cradle e aguarde at o processo ficar terminado. 
-Os dados no sero apagados do terminal. ( para apagar os dados tem que se alterar a linha de comando acrescentando um /Clear 2).
-Apague os dados no terminal.




----------------------------------------------------INSTRUOES GERAIS------------------------------------------------------------------------


Este setup colocou na pasta x64/bin_offline o datacollector.exe e cria links com as seguintes opes:


-Clear all data in the terminal.
	datacollector /Clear					-> Limpa os dados do terminal.



-Send data to Notepad throw Keyboard
	datacollector /ComPort 1 /Save Keyboard 2 /SendKeysBefore "{Delay=100}@rnotepad~{BEEP 500 500}{appactivate Notepad}" /BodyConf "[CB][XXXXXXXXXX]{Enter}[Qt][XXXXXXDDD]{Enter}"
								-> Activa o Notepad e insere os dados do inventrio.


-Read all the data from terminal to file 'vendas.txt'
	datacollector /ComPort 1 /Save vendas.txt 1 		-> Cria um ficheiro 'vendas.txt' com os dados do terminal



-Read all the data from terminal to file 'inventarios.txt'
	datacollector /ComPort 1 /Save inventarios.txt 2 	-> Cria um ficheiro 'inventarios.txt' com os dados do terminal
		Formato:	Body Conf = [CB][XXXXXXXXXXXXXXXXXXXX][Armazem][XXX][Qt][XXXXXXXXXDDD][Preco][XXXXXXXXXDDD]	(Pode ser alterado usando /BodyConf)


-Send data to terminal from file 'sample.txt'
	datacollector /ComPort 1 /Load sample.txt		-> Envia o ficheiro sample.txt para o terminal.
		Formato: 	19 Referencia	20 Descrio	9 Preo


-Listar todas as funes
	datacollector /?


-----------------------------------------------------------------------------------------------------------------------------------

datacollector [/Comport ComPort] [/Load filename [table]]

datacollector [/Comport ComPort] [/Clear]

-----------------------------------------------------------------------------------------------------------------------------------

datacollector [/Save[+] filename Position ReadHeader] [/C ComPort] [/BodyConf ...] [/HeaderConf ...] [/SendKeysBefore ...] [/SendKeysAfter ...] [/Background]

/Save		Read from terminal and save to file

Parameters:

		[+]		Append to the end of file

		filename	If filename is 'Keyboard' data will be redirected to the keyboard

		Position	'1' for the stocks control file, '2' for the sales file

		ReadHeader	Yes/No


/ComPort	Specify the Com port to use.
		Ex: '/C 1' for COM1

-----------------------------------------------------------------------------------------------------------------------------------

/Load filename

-----------------------------------------------------------------------------------------------------------------------------------

/Clear [Position]	
'1' for the stocks control file, '2' for the sales file, 'All' for all

-----------------------------------------------------------------------------------------------------------------------------------

/Background
Permite que o programa continue a correr depois de ler os dados. Nesta situao sempre que o terminal  pousado os dados so descarregados.

-----------------------------------------------------------------------------------------------------------------------------------

/BodyConf 	'new format to retrive data' example: /BodyConf [CB][XXXXXXXXXXXXXXXXXXXX]{ENTER}[Qt][XXXXXDDD]{ENTER}
/HeaderConf 	'new format to retrive data' example: /HeaderConf [invoice]{tab}
/SendKeysBefore	' 
/SendKeysAfter

-----------------------------------------------------------------------------------------------------------------------------------

Example 1:datacollector /S+ test.txt All Yes /L client.txt Clients
Example 2:datacollector /S Keyboard /SendKeysBefore {ENTER}{TAB}{TAB}
Example 3:/SendKeysBefore "{DELAY=200}@rnotepad~{appactivate Notepad}{DELAY 100}Hello!!!!%ha{BEEP 1999 1000}{ESC}% {DOWN 5}"
Example 4:datacollector /S test.txt -1
Example 5:datacollector /S Keyboard /BodyConf "[ref][xxxxxx]{TAB}{TAB}[qt][xxx]{PGDN}"

-----------------------------------------------------------------------------------------------------------------------------------

/SendKeysBefore /SendKeysAfter /BodyConf /HeaderConf  Special Keys to use...



Key 			Code
BACKSPACE 		{BACKSPACE}, {BS}, or {BKSP}
BREAK 			{BREAK}
CAPS LOCK 		{CAPSLOCK}
DEL or DELETE 		{DELETE} or {DEL}
DOWN ARROW 		{DOWN}
END 			{END}
ENTER 			{ENTER} or ~
ESC 			{ESC}
HELP 			{HELP}
HOME 			{HOME}
INS or INSERT 		{INS}
LEFT ARROW 		{LEFT}
NUM LOCK 		{NUMLOCK}
PAGE DOWN 		{PGDN}
PAGE UP 		{PGUP}
PRINT SCREEN 		{PRTSC} (reserved for future use)
RIGHT ARROW 		{RIGHT}
SCROLL LOCK 		{SCROLL}
TAB 			{TAB}
UP ARROW 		{UP}
F1 			{F1}
F2 			{F2}
F3 			{F3}
F4 			{F4}
F5 			{F5}
F6 			{F6}
F7 			{F7}
F8 			{F8}
F9 			{F9}
F10 			{F10}
F11 			{F11}
F12 			{F12}
F13 			{F13}
F14 			{F14}
F15 			{F15}
F16 			{F16}
Keypad add 		{ADD}
Keypad subtract 	{SUBTRACT}
Keypad multiply 	{MULTIPLY}
Keypad divide 		{DIVIDE}

+ 			{PLUS}
@ 			{AT}
APPS 			{APPS}
^ 			{CARET}
~ 			{TILDE}
{ } 			{LEFTBRACE} {RIGHTBRACE}
( ) 			{LEFTPAREN} {RIGHTPAREN}
Left/Right WINKEY 	{LWIN} {RWIN}
WINKEY 			{WIN} equivalent to {LWIN}

WINKEY 			@
SHIFT 			+
CTRL 			^
ALT 			%



{VKEY X} 		Sends the VKEY of value X.
For example, {VKEY 13} is equivalent to VK_RETURN.

{BEEP X Y} 		Beeps with a frequency of X and a duration of Y milliseconds.

{DELAY X} 		Delays sending the next key of X milliseconds. After the delaying the following key, the subsequent keys will not be further delayed unless there is a default delay value (see DELAY=X).
Example: {DELAY 1000} <-- delays subsequent key stroke for 1 second.

{DELAY=X} 	Sets the default delay value to X milliseconds. This will cause every key to be delayed X ms.
If a value is already set and you specify {DELAY Y} you will have your following key delay Y ms but the subsequent keys will be delayed X ms.
Example: {DELAY=1000} <-- all subsequent keys will be delayed for 1 second.

{APPACTIVATE WindowTitle} 	Activates an application using is WindowTitle.

Very useful if you want to send different keys to different applications.

Here are some examples:

Keystrokes 					
	{DELAY=50}@rnotepad~hello world%ha 	

Description
	1. set delay after each character to 50 ms
	2. WINKEY+R to invoke the run dialog

	3. type "notepad" and press ENTER
	4. Type "hello world"
	5. Invoke Alt+H then press "A" to invoke the about dialog of notepad 

Keystrokes 					
	{delay=100}{appactivate Calculator}{ESC}5*7~{beep 1000 500}^c{appactivate Notepad}^a{DEL}Result of 5*7 is: ^v 	Given that "Calc.exe" and "Notepad.exe" are running:

Description
	1. set delay to 100 ms
   	2. activate calculatr
   	3. press ESC to clear previous result
   	4. type in 5*7 then press ENTER
   	5. beep for 500ms with a frequency of 1000
   	6. press CTRL+C to copy result
   	7. activate notepad
   	8. press CTRL+A then DEL in notepad to delete previously written text
   	9. type in a phrase then press CTRL+V to paste the copied result 

Keystrokes 					
	{DELAY=500}{NUMLOCK}{CAPSLOCK}{SCROLL}{SCROLL}{CAPSLOCK}{NUMLOCK} 	

Description
	1. Press NUM,CAPS,SCROll lock in order
	2. Turn them off in reverse order 

Keystrokes 					
	{DELAY=500}% {DOWN 5} 	

Description
	1. press ALT+SPACE
   	2. press DOWN key 5 times 


IMPORTANTE:
-----------------------------------------------------------------------------------------------------------------------------------

Para criar um programa diferente no terminal deve-se usar o ProgramGenerator.

-----------------------------------------------------------------------------------------------------------------------------------

Para criar um setup diferente para um cliente especifico basta seguir os seguintes passos:

1. Abrir o "X64_Inventory pt.zip"
2. Copiar o ficheiro SSEset.dat para o desktop.
3. Abrir o ficheiro SSEset.dat  com o Notepad.
4. Na seco LINKS alterar os respectivos parametros. (http://www.ssesetup.com/)
5. Voltar a colocar o ficheiro no zip.
6. Terminado.
