Sign in to follow this  
Followers 0
NCR

buttons

8 posts in this topic

hello. im spanish and my english es ugly...sorry... i need ability a button in a autoit program with gui...what tools i need?.

thanks.

Share this post


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

Share this post


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.

Share this post


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!!.

Share this post


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.

Share this post


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.

Share this post


Link to post
Share on other sites

now, i will send you a tut that explain all i say in my message...thanks for all your help. bytes!.

Share this post


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
Sign in to follow this  
Followers 0