EMO Style ForumPro - Hos Geldiniz
[Coding] - Simple Mouse Source Uyeols10

Join the forum, it's quick and easy

EMO Style ForumPro - Hos Geldiniz
[Coding] - Simple Mouse Source Uyeols10
EMO Style ForumPro - Hos Geldiniz
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Giriş yap

Şifremi unuttum

Istatistikler
Toplam 203 kayıtlı kullanıcımız var
Son kaydolan kullanıcımız: crayzboy76

Kullanıcılarımız toplam 1186 mesaj attılar bunda 862 konu
Tarıyıcı
 Kapı
 Indeks
 Üye Listesi
 Profil
 SSS
 Arama
Arama
 
 

Sonuç :
 


Rechercher çıkıntı araştırma

RSS akısı


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Anahtar-kelime

pointer  loot  kutu  

Kimler hatta?
Toplam 2 kullanıcı online :: 0 Kayıtlı, 0 Gizli ve 2 Misafir :: 1 Arama motorları

Yok

[ Bütün listeye bak ]


Sitede bugüne kadar en çok 217 kişi C.tesi Tem. 29, 2017 1:46 am tarihinde online oldu.
En son konular
» İnternetten Para Kazandıran Oyun ! Ödeme Alt Limiti Yok ! DEV KONU
[Coding] - Simple Mouse Source I_icon_minitimeCuma Ağus. 29, 2014 8:33 am tarafından Hello EMO

» goldenchase.net maden yaparak para kazanma
[Coding] - Simple Mouse Source I_icon_minitimeCuma Ağus. 29, 2014 8:18 am tarafından Hello EMO

» etichal hacker görsel egitim seti
[Coding] - Simple Mouse Source I_icon_minitimeÇarş. Ağus. 06, 2014 4:57 am tarafından Hello EMO

» KO TBL Source C#
[Coding] - Simple Mouse Source I_icon_minitimePtsi Ara. 09, 2013 6:36 am tarafından Hello EMO

» x86 Registers
[Coding] - Simple Mouse Source I_icon_minitimeC.tesi Ağus. 24, 2013 5:02 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de WYD
[Coding] - Simple Mouse Source I_icon_minitimeÇarş. Tem. 10, 2013 7:25 am tarafından Hello EMO

» [Tutorial] Pegando Address, Pointers de CS Metodo²
[Coding] - Simple Mouse Source I_icon_minitimeÇarş. Tem. 10, 2013 7:23 am tarafından Hello EMO

» [Tutorial] Aprendendo basico deASM OLLYDBG
[Coding] - Simple Mouse Source I_icon_minitimeÇarş. Tem. 10, 2013 7:22 am tarafından Hello EMO

» Basic C# DLL injector
[Coding] - Simple Mouse Source I_icon_minitimePtsi Tem. 08, 2013 7:48 am tarafından Hello EMO

Reklam

[Coding] - Simple Mouse Source

Aşağa gitmek

[Coding] - Simple Mouse Source Empty [Coding] - Simple Mouse Source

Mesaj tarafından Hello EMO Cuma Ara. 10, 2010 2:28 am

My main reason for posting this is the fix I came up with for running your game in a window. Basically, however far off the games window would be from 0,0 on the screen, that is how much your cursor would be offset to the bottom right.


If my window was 100 pixels away from 0, 0 (top left of screen) my cursor would be off by 100 pixels, this is a nice fix and a working code snippet.


For anyone asking about mouse menus/GUI's, have fun


Kod:
POINT Pos;
RECT wRect;
bool showMenu = false;
int cursorx, cursory;

__inline void DoMenu()
{
    if(GetAsyncKeyState(VK_DELETE)&1)
    {
        showMenu = !showMenu;
    }
    if(showMenu)
    {
        //Our ghetto menu item
        Renderer.FillRectD3D(60, 60, 20, 20, 0xFFFFFF00);


        /* This is to correct for a problem with getcursorpos and windowed mode */
        GetWindowRect(hWnd, &wRect);

        //Cursor pos (Pos.x/Pos.y)
        GetCursorPos(&Pos);

        //Windowed correction
        cursorx = Pos.x - wRect.left;
        cursory = Pos.y - wRect.top;
       
        //Draw cursor
        Renderer.DrawTextD3D(cursorx, cursory, 0xFFFF0000, "+", DT_CENTER | DT_VCENTER, 0);

        //Mouse 1
        if(GetAsyncKeyState(0x1)&1)
        {
            if(cursorx > 60 && cursory > 60
                && cursorx < 80 && cursory < 80)
            {
                //Toggle/Action here
            }
        }
    }
}
Hello EMO
Hello EMO
EMO Team
EMO Team

Cinsiyet : Erkek
Burçlar : Yay
Yılan
Mesaj Sayısı : 935
Puan : 374693
Rep Puanı : 18
Doğum tarihi : 28/11/89
Kayıt tarihi : 21/07/09
Yaş : 34
Nerden : EMO WorlD
İş/Hobiler : RCE Student / Game Hacking / Learn Beginner C#,C++,Delphi
Lakap : EMO

https://emostyle.yetkinforum.com

Sayfa başına dön Aşağa gitmek

Sayfa başına dön

- Similar topics

 
Bu forumun müsaadesi var:
Bu forumdaki mesajlara cevap veremezsiniz