speck Posted November 10, 2009 Share Posted November 10, 2009 Hi everyone and thnx anyway. I want to build a gui with one button which "press" another button in another GUI. The second GUI is the Shoutcast Source DSP plugin for winamp and the other button is the "Push To Talk" Button in input systab. With the autoit info window i checked the class name of the button ([CLASS:Button; INSTANCE:25]) Here is my code.... #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 1019, 788, 189, 121) $Button1 = GUICtrlCreateButton("Button1", 248, 352, 377, 73, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 ControlClick("SHOUTcast Source","","[CLASS:Button; INSTANCE:25]") EndSwitch WEnd I tried with the controlcommand("SHOUTcast Source","","[CLASS:Button; INSTANCE:25]", "Check") with the same syntax of control command i had automated some install wizards in the past. Why is this happening... ? the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
Zedna Posted November 10, 2009 Share Posted November 10, 2009 Try simpler method: ControlClick("SHOUTcast Source","","Button25") Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
speck Posted November 10, 2009 Author Share Posted November 10, 2009 Try simpler method:ControlClick("SHOUTcast Source","","Button25")Yes i did. BUT nothing at all!Thnx Zedna the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
Zedna Posted November 10, 2009 Share Posted November 10, 2009 - check return value returned by ControlClick() and read remarks about that function in helpfile - try to add ControlFocus() just before ControlClick() - check Opt('WinTitleMatchMode') - to be sure about targeting of correct window - try to use another similar functions to the same control, for example: ControlGetPos() if it works or not - ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
speck Posted November 12, 2009 Author Share Posted November 12, 2009 Well Well.... The ControlClick works fine... The thing is that this button has to be in continuous press to work right. (Push To Talk) so.... I tried Mouse Down knowing previously that it's not gone to work. Any ideas ... the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now