Jump to content
Sign in to follow this  

Error in buttons

Recommended Posts


Hi. I put a control in the a window by anygui, but now i have a problem with the buttons. They can call functions, but if i try to Send("{F5}"), for example, they only run the another code and not the send function.

$ctr = NET_ControlGetHandleByName($test1, "", "control")

$targetctl = _GuiTarget ($test1, 1, "", $ctr)

$BtEcra = _TargetAddButton ( "", 3, 1, 32, 32, $BS_ICON,"", $targetctl)

GUICtrlSetImage(-1, "shell32.dll", 243,0)

GUICtrlSetTip(-1, "Msg","",0,1)

$BtEcra = $BtEcra[0]


In this code, is something missing for buttons to call the functions? And when i active the buttons, the mouse cursor is a little odd in the rest of the window. Thanks for any information!

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