| |
|
|
| CompileMarkSeparation {$cleq}
cls
subClass hWnd,true
do {waitInput}
subClassProc{
select sWnd
caseOf hWnd
select sMessage
caseOf wm_getminmaxinfo
pokeDW sLparam+24,600
pokeDW sLparam+28,420
pokeDW sLparam+32,800
pokeDW sLparam+36,600
endSelect
endSelect
setWinProc true
}
pokedw(long adr,float v){
long vi
rtlMoveMemory(adr+2,addr(vi),2)
vi=int(v-(vi*2^16))
rtlMoveMemory(adr,Addr(vi),2)
}
or CompileMarkSeparationDECLARE __cf1&
Def __cf1(2) !KERNEL32,GetProcAddress
Def __cf2(1) !KERNEL32,GetModuleHandleA
__cf1&=__cf1(__cf2(KERNEL32),RtlMoveMemory)
CLS
SUBCLASS %HWND,1
WHILE 1
WAITINPUT
ENDWHILE
SUBCLASSPROC
SELECT &SWND
CASEOF %HWND
SELECT %SMESSAGE
CASEOF $0024
POKEDW &SLPARAM+24,600
POKEDW &SLPARAM+28,420
POKEDW &SLPARAM+32,800
POKEDW &SLPARAM+36,600
ENDSELECT
ENDSELECT
SETWINPROC 1
endproc
proc POKEDW
PARAMETERS ADR&,V!
var VI&=0
call(__cf1&,ADR&+2,ADDR(VI&),2)
VI&=INT(V!-(VI&*2^16))
call(__cf1&,ADR&,ADDR(VI&),2)
endproc
|
|
|
| |
|
|
|
| ...what me on it reminds already x time vorzuschlagen the peek and poke never in a XProfan are missing must/can/ought to/becomes. |
|
|
| |
|
|
|
RGH | POKEDW ADDR& + OFFSET&, WERT& WERT& = PEEKDW(ADDR& + OFFSET&)
is identical with
LONG ADDR&, OFFSET& = WERT& WERT& = LONG(ADDR&, OFFSET&)
they say hold only differently.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 02/22/08 ▲ |
|
|
|
|
Frank Abbing | gives it yet Speicherarten, on The LONG not grab can? Z.B. through API defined memory? was at least in previous Profanversionen so. |
|
|
| |
|
|
|
RGH | at that commands LONG must first thing Parameter one Variablenname stand. this must but too one LongInt (&) or Integer(%) his. One expression is here (yet?) not permits.
with the function LONG must the first Parameter one beliebiger expression his. (even if it in the Help not on The large Glocke gehängt becomes. ;) )
to Version 11 counted here The same Einschränkung How at commands and previous versions (i don't know More very, when I the changed have) were in both Make only Memory-Variables allows.
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 02/22/08 ▲ |
|
|
|
|
Frank Abbing | thanks, Roland! the ought to generally for all command/functions zutreffen, The on reaches or Strings grab. |
|
|
| |
|
|
|
RGH | Frank Abbing
thanks, Roland! the ought to generally for all command/functions zutreffen, The on reaches or Strings grab.
i'll once more nachschauen, where I there yet what do can. (in the rule goes it Yes only therefore, some Sicherheitsabfragen herauszunehmen. in principle find I everything sympathetic, what whom code schlanker power, but whom users nevertheless not rain stand can.)
Greeting Roland |
|
|
| Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 02/22/08 ▲ |
|
|
|
|
Frank Abbing | see I just as! especially since I the Difference between Strings and reaches not einsehe. in the Grunde is memory Yes memory. I would glad over each Lockerung in this relationship. |
|
|
| |
|
|