用aauto做遊戲修改器

來源:互聯網
上載者:User

標籤:winform   style   blog   http   color   io   2014   for   

import win.ui;import process;

//以下自動產生,不用看./*DSG{{*/var winform = ..win.form(text="AAuto Form";right=215;bottom=95)winform.add(button={cls="button";text="修改";left=120;top=16;right=205;bottom=57;z=1};edit1={cls="edit";text="9";left=48;top=16;right=106;bottom=33;edge=1;num=1;tabstop=1;z=3};edit2={cls="edit";text="7";left=48;top=40;right=104;bottom=56;edge=1;num=1;tabstop=1;z=5};label1={cls="static";left=112;top=64;right=207;bottom=87;ah=1;aw=1;transparent=1;z=6};static={cls="static";text="血量:";left=16;top=16;right=53;bottom=32;ah=1;aw=1;transparent=1;z=2};static2={cls="static";text="魔力:";left=16;top=40;right=56;bottom=56;ah=1;aw=1;transparent=1;z=4})/*}}*/
//以上自動產生,不用看.winform.button.oncommand = function(id,event){ //winform.msgbox( winform.button.text );//這句也是自動產生的. myproce = process.find("CallExercise1.0.exe")//要修改的程式名. if (myproce) { baseAdress = myproce.readNumber(0x40315c)//0x40315c是遊戲的基址,用cheatengine查的. myproce.writeNumber(baseAdress,winform.edit1.text) myproce.writeNumber(baseAdress+0x8,winform.edit2.text)//0x8是位移. } else { win.msgbox("沒有運行","提示") } }winform.show() win.loopMessage();

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.