
Now that is a quality cheat!

Code: Select all
Define hCurrentDesktop.l, sNewDesktopName.s, hNewDesktop.l
hCurrentDesktop = GetThreadDesktop_(GetCurrentThreadId_())
sNewDesktopName = Hex(Random(10000000))
hNewDesktop = CreateDesktop_(sNewDesktopName, #Null, #Null, 0, #GENERIC_ALL, #Null)
If (hNewDesktop <> #INVALID_HANDLE_VALUE)
;********************
;New desktop successfully created
;********************
SetThreadDesktop_(hNewDesktop)
Define Info.STARTUPINFO
ClearStructure(@Info, STARTUPINFO)
Info\cb = SizeOf(STARTUPINFO)
Info\dwFlags = #STARTF_USESHOWWINDOW
Info\lpDesktop = @sNewDesktopName
Info\wShowWindow = #SW_SHOW
Define ProcessInfo.PROCESS_INFORMATION
ClearStructure(@ProcessInfo, PROCESS_INFORMATION)
If (CreateProcess_(@FileName, 0, 0, 0, 0, #NORMAL_PRIORITY_CLASS, 0, 0, @Info, @ProcessInfo))
;********************
;Process created, switch current desktop
;********************
If (ProcessInfo\hThread)
CloseHandle_(ProcessInfo\hThread)
EndIf
SwitchDesktop_(hNewDesktop)
;********************
;Wait for process to exit
;********************
WaitForSingleObject_(ProcessInfo\hProcess, #INFINITE)
CloseHandle_(ProcessInfo\hProcess)
EndIf
;********************
;Switch to original desktop
;********************
SwitchDesktop_(hCurrentDesktop)
CloseDesktop_(hNewDesktop)
EndIf
That's right, it doesn't do anything until you tell it to...Kwaï chang caïne wrote:Hello FLOWER
Thanks for your code but, you surely don't know KCC, .....the programmer who coding slower that his shadow
How i can use your skyrocket
I have try to launch it with match...but he don't do anything
Code: Select all
Define FileName.s
FileName = "C:\Windows\System32\Notepad.exe"
Code: Select all
Global x,y,W,H
ExamineDesktops()
Procedure Fake(Image,x,y,WW,WH)
hImage = CreateImage(Image,WW,WH)
hDC = StartDrawing(ImageOutput(Image))
BitBlt_(hDC,0,0,WW,WH,GetDC_(GetDesktopWindow_()),x,y,#SRCCOPY)
StopDrawing()
ProcedureReturn hImage
EndProcedure
WW = DesktopWidth(0)
WH = DesktopHeight(0)
OpenWindow(0,0,0,W,H,"",#PB_Window_Invisible|#PB_Window_BorderLess)
ImageGadget(0,0,0,W,H,Fake(1,0,0,WW,WH))
StringGadget(1,WW/2-100,WH/2-12, 200,24,"",#ES_CENTER)
ButtonGadget(2,WW/2-40,WH/2+30,80,22,"Exit")
DisableGadget(0,1)
SetWindowState(0,#PB_Window_Maximize)
Repeat
Select WaitWindowEvent()
Case #PB_Event_Gadget
Select EventGadget()
Case 1
Case 2
Q =1
CloseWindow(0)
EndSelect
EndSelect
Until Q =1
Code: Select all
SetActiveGadget(1)
Kwaï chang caïne wrote:
@FLOWER
I have try your code and you have right....my desktop disappears and i have the mouse pointer into the notepad![]()
I have search all my icons behind my screen ..turn it and no icons too![]()
![]()
So i have close the notepad and all the littles icons come back in my screen![]()
You are a magician but without rabbit and hat![]()