Jump to content

Recommended Posts

Posted

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]

GUISetState()

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!

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