Hey, been messing around with various experiements. But for the most part I haven't been able to get anywhere. The biggest problem is that I don't know how to send information to FFXI through WindowerHelper. I thought I had it, but it wouldn't compile.
So I was wondering if someone could give a little quick tutorial on how to do this in C++.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
CKeyboardHelper* pKeyboardHelper;
CTextHelper* pTextHelper;
pKeyboardHelper = new CKeyboardHelper("WindowerMMFKeyboardHandler");
pTextHelper = new CTextHelper("WindowerMMFTextHandler");
Is that code necessary? Also...
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
pKeyboardHelper->SendString(sInput) ;
I thought this is how u actually send the char array sInupt to WindowerHelper. But when I try to compile I get a whole bunch of errors about odd things being undefined in the TEMP folder. Maybe I need to use a different compiler? I am using MinGW.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
In file included from RandomCaster.cpp:2:
WindowerHelper.h: In function `void DeleteTextHelper(void*)':
WindowerHelper.h:131: warning: deleting `void*' is undefined
WindowerHelper.h: In function `void DeleteKeyboardHelper(void*)':
WindowerHelper.h:151: warning: deleting `void*' is undefined
WindowerHelper.h: In function `void DeleteConsoleHelper(void*)':
WindowerHelper.h:159: warning: deleting `void*' is undefined
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x59): und
efined reference to `_imp___ZN11CTextHelperC1EPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0xde): und
efined reference to `_imp___ZN11CTextHelper16CreateTextObjectEPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0xfa): und
efined reference to `_imp___ZN11CTextHelper16DeleteTextObjectEPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x11d): un
defined reference to `_imp___ZN11CTextHelper7SetTextEPcS0_'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x148): un
defined reference to `_imp___ZN11CTextHelper13SetVisibilityEPcb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x172): un
defined reference to `_imp___ZN11CTextHelper7SetFontEPcS0_i'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x1c7): un
defined reference to `_imp___ZN11CTextHelper8SetColorEPchhhh'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x1f6): un
defined reference to `_imp___ZN11CTextHelper11SetLocationEPcff'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x220): un
defined reference to `_imp___ZN11CTextHelper7SetBoldEPcb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x24a): un
defined reference to `_imp___ZN11CTextHelper7SetBoldEPcb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x29f): un
defined reference to `_imp___ZN11CTextHelper10SetBGColorEPchhhh'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x2c7): un
defined reference to `_imp___ZN11CTextHelper15SetBGBorderSizeEPcf'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x2f2): un
defined reference to `_imp___ZN11CTextHelper15SetBGVisibilityEPcb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x31c): un
defined reference to `_imp___ZN11CTextHelper17SetRightJustifiedEPcb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x331): un
defined reference to `_imp___ZN11CTextHelper13FlushCommandsEv'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x393): un
defined reference to `_imp___ZN15CKeyboardHelperC1EPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x42d): un
defined reference to `_imp___ZN15CKeyboardHelper6SetKeyEhb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x451): un
defined reference to `_imp___ZN15CKeyboardHelper10BlockInputEb'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x46e): un
defined reference to `_imp___ZN15CKeyboardHelper10SendStringEPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x4cf): un
defined reference to `_imp___ZN14CConsoleHelperC1EPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x54d): un
defined reference to `_imp___ZN14CConsoleHelper12IsNewCommandEv'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x565): un
defined reference to `_imp___ZN14CConsoleHelper11GetArgCountEv'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x589): un
defined reference to `_imp___ZN14CConsoleHelper6GetArgEiPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x719): un
defined reference to `_imp___ZN15CKeyboardHelperC1EPc'
C:\DOCUME~1\KELLYG~1\LOCALS~1\Temp/ccsVbaaa.o:RandomCaster.cpp:(.text+0x77c): un
defined reference to `_imp___ZN11CTextHelperC1EPc'
collect2: ld returned 1 exit status
thats all the error messages I am getting :/. Trying to model it off of the CHelperDemo that is distributed by FFXI Windower, but I think they are using some developing environment while I only have a dos prompt.
New to C++ so I don't really know where to start tryingt o fix this. Any help would be great.
Also, on another note...would anyone know how to access/find the clock that is managed within the game? Its not the same as the system time I don't think b/c I changed the system time and FFXI's time remained unchanged. I tried using artmoney to search through the memory, but couldn't turn anything up :/ Any help would be appreciated and also possibly could benefit u in the future.