rootx Posted August 28, 2014 Share Posted August 28, 2014 (edited) I would like to read the value of $PicAuthor, I also tried using GUICtrlRead, but it does not work. Can anyone help me? $PicAuthor = GUICtrlCreatePic("", 325, 314, 60, 60) GUICtrlSetImage($PicAuthor, $bgAuthor) MsgBox("","",$PicAuthor) Edited August 28, 2014 by rootx Link to comment Share on other sites More sharing options...
mikell Posted August 28, 2014 Share Posted August 28, 2014 The value ? which value ? Link to comment Share on other sites More sharing options...
rootx Posted August 28, 2014 Author Share Posted August 28, 2014 The value ? which value ? The name of the image, example.. GUICtrlSetImage($PicAuthor,@ScriptDir & "images1.jpg") then MsgBox("","",$PicAuthor) .... should give me back the value of $PicAuthor 1.jpg Link to comment Share on other sites More sharing options...
UEZ Posted August 28, 2014 Share Posted August 28, 2014 $PicAuthor is the identifier (controlID) of the control not the file name! What about MsgBox("","",$bgAuthor)? Br, UEZ Please don't send me any personal message and ask for support! I will not reply! Selection of finest graphical examples at Codepen.io The own fart smells best! ✌Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ Link to comment Share on other sites More sharing options...
mikell Posted August 28, 2014 Share Posted August 28, 2014 ? $bgAuthor = @ScriptDir & "\images\1.jpg" MsgBox(0,"", StringRegExpReplace($bgAuthor, '.+\\(.+)', "$1") ) 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