yalil Posted February 4 Share Posted February 4 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 While 1 GUICtrlSetData($Input1,@ScriptDir & "\Screenshot_1.png") $hImage = _LoadImage($Input1, $Pic1, $hImage, $iPicW,$iPicH) Local $hHBITMAP = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage, 0x00000000) how can i add a function to capture a picture form application and send it to 'GUICtrlSetData($Input1,@ScriptDir & "\Screenshot_1.png")' Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now