Search found 37 matches
- Thu Aug 02, 2012 10:48 am
- Forum: Coding Questions
- Topic: LinearGradient for CanvasOuput
- Replies: 2
- Views: 767
Re: LinearGradient for CanvasOuput
Thank you sir.
- Thu Aug 02, 2012 5:31 am
- Forum: Coding Questions
- Topic: LinearGradient for CanvasOuput
- Replies: 2
- Views: 767
LinearGradient for CanvasOuput
Its written in the manual that LinearGradient only applied to ImageOutput(), but it works for CanvasOutput() too. Is it okay to use it for Canvas?
- Sat Jul 14, 2012 5:06 am
- Forum: Coding Questions
- Topic: typeof
- Replies: 5
- Views: 766
typeof
Guys, is there a function to display type of variables like:
i.d = 2.5
Debug isDouble(i)
i.d = 2.5
Debug isDouble(i)
- Sun Apr 29, 2012 4:48 pm
- Forum: Coding Questions
- Topic: Draw Buttons
- Replies: 5
- Views: 1401
Re: Draw Buttons

- Sun Apr 29, 2012 3:44 pm
- Forum: Coding Questions
- Topic: Draw Buttons
- Replies: 5
- Views: 1401
Re: Draw Buttons
Thanks Demivec, could you show me an example?
- Sun Apr 29, 2012 3:26 pm
- Forum: Coding Questions
- Topic: Draw Buttons
- Replies: 5
- Views: 1401
Draw Buttons
I want to create a simple draw buttons. How to make the #button1 accessible on top another canvas gadget?
Enumeration
#main_window
#button1
#fontdefault
#wrapper
EndEnumeration
LoadFont(#fontdefault,"Trebuchet MS",12,#PB_Font_Bold | #PB_Font_HighQuality)
Procedure mybutton(obj,b)
y = 3 ...
Enumeration
#main_window
#button1
#fontdefault
#wrapper
EndEnumeration
LoadFont(#fontdefault,"Trebuchet MS",12,#PB_Font_Bold | #PB_Font_HighQuality)
Procedure mybutton(obj,b)
y = 3 ...
- Fri Mar 18, 2011 6:42 am
- Forum: Coding Questions
- Topic: Convert assembler instruction
- Replies: 4
- Views: 958
Re: Convert assembler instruction
That works cas. I still learn for big and litle-endian byte order :?
I want to poke these bytes to another process, it will be poke on $00457e61 (cave using VirtualAllocEx) address. It gives the right address on own process but how to dynamically change hVar to cave?
If 0 ;do not execute asm code ...
I want to poke these bytes to another process, it will be poke on $00457e61 (cave using VirtualAllocEx) address. It gives the right address on own process but how to dynamically change hVar to cave?
If 0 ;do not execute asm code ...
- Thu Mar 17, 2011 6:54 pm
- Forum: Coding Questions
- Topic: Convert assembler instruction
- Replies: 4
- Views: 958
Re: Convert assembler instruction
cas, thanks for the answer. I need it to avoid error when poking bytes.
If 0 ;do not execute asm code
Code_Start:
! mov eax,[edx]
! push eax
! push $004b9568
! jmp $0047e203
Code_End:
EndIf
;Original
;01240005 - 8b 02 - mov eax,[edx]
;01240007 - 50 - push eax
;01240008 - 68 68 95 4b 00 ...
If 0 ;do not execute asm code
Code_Start:
! mov eax,[edx]
! push eax
! push $004b9568
! jmp $0047e203
Code_End:
EndIf
;Original
;01240005 - 8b 02 - mov eax,[edx]
;01240007 - 50 - push eax
;01240008 - 68 68 95 4b 00 ...
- Thu Mar 17, 2011 3:22 am
- Forum: Coding Questions
- Topic: Convert assembler instruction
- Replies: 4
- Views: 958
Convert assembler instruction
Is there a way to convert assembler code to byte?
push eax = $50
push eax = $50
- Sat Feb 26, 2011 12:04 am
- Forum: Coding Questions
- Topic: Record SoundPlus
- Replies: 0
- Views: 531
Record SoundPlus
How to record sound from sound from MakeSound procedure by GPI?
;// you could save the wave tone To file with :
;// MS.Seek(0, soFromBeginning);
;// MS.SaveToFile('C:\MyFile.wav');
;// then reload And play them without having To
;// construct them each time.
;{now play the sound ...
;// you could save the wave tone To file with :
;// MS.Seek(0, soFromBeginning);
;// MS.SaveToFile('C:\MyFile.wav');
;// then reload And play them without having To
;// construct them each time.
;{now play the sound ...
- Sat Feb 19, 2011 4:11 am
- Forum: Coding Questions
- Topic: Delete multiple selection
- Replies: 2
- Views: 1049
Delete multiple selection
#win=0
#lg = 1
OpenWindow(#win,0,0,300,400,"TEST",#PB_Window_SystemMenu|#PB_Window_ScreenCentered)
ListViewGadget(#lg,0,0,300,400, #PB_ListView_MultiSelect)
AddKeyboardShortcut(#win,#PB_Shortcut_Delete,#lg)
For i=0 To 10
AddGadgetItem(#lg,i,"Listview Gadget "+Str(i))
Next
Procedure lselect()
il ...
- Sat Feb 12, 2011 7:07 am
- Forum: Coding Questions
- Topic: Bytes to ASM
- Replies: 1
- Views: 690
Bytes to ASM
Code: Select all
oGame = OpenProcess_(#PROCESS_ALL_ACCESS,#Null,prcID)
Poke(buffer+0,$8b)
Poke(buffer+1,$00)
WriteProcessMemory_(oGame,hAddress,buffer,2,#Null)
- Wed Feb 09, 2011 5:18 pm
- Forum: Coding Questions
- Topic: ImageGadget as a minimize button
- Replies: 3
- Views: 1001
Re: ImageGadget as a minimize button
STARGÅTE Thank you! 

- Wed Feb 09, 2011 5:09 pm
- Forum: Coding Questions
- Topic: ascii art
- Replies: 7
- Views: 1969
Re: ascii art
ts-soft i don't know how to use it
This one
FontID1 = GetStockObject_(#OEM_FIXED_FONT)
SetGadgetFont(#oText, FontID1)

This one
FontID1 = GetStockObject_(#OEM_FIXED_FONT)
SetGadgetFont(#oText, FontID1)
- Wed Feb 09, 2011 4:24 pm
- Forum: Coding Questions
- Topic: ImageGadget as a minimize button
- Replies: 3
- Views: 1001
ImageGadget as a minimize button
Enumeration
#oWin
#oButton
#oImgBtn
EndEnumeration
OpenWindow(#oWin,0,0,300,300,"Minimize", #PB_Window_BorderLess|#PB_Window_ScreenCentered)
ButtonGadget(#oButton,10,10,100,30,"Minimize")
ImageGadget(#oImgBtn,130,10,100,30,0,#PB_Image_Border)
Repeat
event=WaitWindowEvent()
Select event
Case ...