Jump to content

Recommended Posts

Look into Helpfile at function GUICtrlCreateButton :

#include <GUIConstants.au3>

GUICreate("My GUI Button") 

Opt("GUICoordMode",2)
$btn_ok = GUICtrlCreateButton ("OK",  10, 30, 50)
$btn_cancel = GUICtrlCreateButton ( "Cancel",  0, -1)

GUISetState () 

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

    If $msg = $btn_ok Then MsgBox(0,'Info','OK clicked.')
    If $msg = $btn_cancel Then MsgBox(0,'Info','Cancel clicked.')
Wend

Or you can use visual tool KODA Form designer

http://www.autoitscript.com/forum/index.php?showtopic=17567

Link to post
Share on other sites

Look into Helpfile at function GUICtrlCreateButton :

#include <GUIConstants.au3>

GUICreate("My GUI Button") 

Opt("GUICoordMode",2)
$btn_ok = GUICtrlCreateButton ("OK",  10, 30, 50)
$btn_cancel = GUICtrlCreateButton ( "Cancel",  0, -1)

GUISetState () 

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop

    If $msg = $btn_ok Then MsgBox(0,'Info','OK clicked.')
    If $msg = $btn_cancel Then MsgBox(0,'Info','Cancel clicked.')
Wend

Or you can use visual tool KODA Form designer

http://www.autoitscript.com/forum/index.php?showtopic=17567

oks. thanks. i will try and then i will tell you if work.

Link to post
Share on other sites

well....didnt work....i have a exe and i need to decompile it to edit the form...or a tool to ability the button permanently....koda didnt work....because the file is a exe. any other ideas?.

bye!!.

If you want control Buttons in other application then use ControlClick

and AU3Info.exe to find right title, text, classname.

Link to post
Share on other sites

well i have all info about the button but i need ability te button from a dbg...ollydbg, how i find the 'hot zone'???????...i have the classname, id, etc but a want to abillity permanetly....i try to decompile it with exetoautoit but the project has a password an error ocurred when the projects is decompile it....

thanks. see you.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...