Jump to content

eHrgo

Active Members
  • Posts

    112
  • Joined

  • Last visited

eHrgo's Achievements

Adventurer

Adventurer (3/7)

0

Reputation

  1. Hi all, Thanks for you time I have something like this in one of my script: Global $var=10 AutoItSetOption('GuiOnEventMode', 1) GUICreate('', 100,200) $button=GUICtrlCreateButton('clear', 5, 180, 90, 20) GUICtrlSetOnEvent($button, 'clear') For $i=1 To $var $text=GUICtrlCreateLabel('Number'&$i, 5, 15*$i, 90, 15) Next Func clear() GuiCtrlDelete($text) EndFunc While 1 Sleep(40) GuiSetState(@SW_SHOW) Wend The only problem is I want the button clear to delete the whole 10 labels, instead of the last one, the $var is random, I'm not able to know how much label I've got. Is there an easy way to do that? Thanks
  2. Hum....... SxGuy, your script is full of error and doesn't seems to be different as mine, except the file install which seems to be pretty useless here.. Ashley, what do you mean by "koda"?
  3. #include <GUIConstants.au3> GUICreate("", 50, 50, -1, -1, $WS_POPUP,$WS_EX_LAYERED) GUICtrlCreatePic(@ScriptDir&'/background.gif', 0,0,0,0,BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS)) GUISetState(@SW_SHOW) GUICtrlCreateGraphic(20,20) GUICtrlSetBkColor (-1, 0x00ff1e ) While 1 GUISetState(@SW_SHOW) Sleep(10) Wend It doesn't seems to work... Thanks
  4. Hi, I've seen many post like : http://www.autoitscript.com/forum/index.ph...ost&p=97355 http://www.autoitscript.com/forum/index.ph...rlCreateGraphic Which explains : "It is not possible to create a graphic control over a picture control" So.. How can I replace that? I want to put a simple form Widht=40 height=10 and specify its color over by GuiCtrlCreateGraphic (with transparency/setted as background).. How? Thanks
  5. Can't edit, but the color of "other.jpg" doesn't matter:
  6. Huuuuum, ok. I found out something: To be able to see through the Window (instead of juste seeing through the picture) you need the exact same code but you need to put a pixel of whatever color (different from white)... Every other pixel of the picture will be transparent! Thats why this script: #include <GUIConstants.au3> GUICreate("", 50, 50, -1, -1, $WS_POPUP,$WS_EX_LAYERED) GUICtrlCreatePic(@ScriptDir&'/background.gif', 0,0,0,0) While 1 GUISetState(@SW_SHOW) Sleep(10) WendoÝ÷ Ø&§«ÞÙçßyËl!ûazÚ)çí¦,^+0+^b«¦'-º·°YezÖ©¥æ«¶iÉ ®§v)ð+^ÎÞ±ç­êkzø¨ºÃìj[r +®*m!ûazÚ)çí¦,^+0«^½êÞÇ¢êéËn­ì"Y^µªiyªò¢êÝzÉ-¢§¶¬rh¯}âm¶ÿËb*bqÊ&ÿ¢_;?h+ayû+"¶Ê¢jeÆ­yÐnl¸­µéç£^­è§éißvîêíêæ¢·¿»öÍ£ajÒ!j÷®×«²Ú(vØ^· -­©ì¥ªÞÌjÇq©ð¢¹(¬(®H§ìZ^¶¬¼«y©i®åze¢¶ZrH+¢éÝ'âm¶ÿ]í|©Ç(þíÙ3¦:`þ) :Ø^®:`h!¶Úþ-t¶)ò¦'¢oùÛý³Héø¦ ݶ¬±Êâ¦Ö®¶­sb6æ6ÇVFRfÇC´uT6öç7FçG2æS2fwC° ¤uT7&VFRgV÷C²gV÷C²ÂSÂSÂÓÂÓÂb33cµu5õõUÂb33cµu5ôUôÄU$TB¤uT7G&Ä7&VFU267&DF"fײb33²ö&6¶w&÷VæBævbb33²ÂÃÃà ¤uT7G&Ä7&VFU267&DF"fײb33²ô÷FW"æ§rb33²ÂÃÃÃÂÓ ¥vÆR¢uT6WE7FFR5uõ4õr¢6ÆVW¥vVæ@ We can see the effect I described before is applied to the second GuiCtrlCreatePic ignoring the first one at all (no transparency).. So we can't GuiCtrlCreate a Pic if we already use a Transparent background ... Another Bug? Is there another way to create Square without pic? (modulable size?) thanks.
  7. Up! I've really tried anything, it worked with another script, with an other picture .. but now.. weird.
  8. Hi there, There is not much code I can share you for this... thats quite usual situation: At the begining I wouldn't create a post for that but I don't even suceed to recreate a background with transparency: #include <GUIConstants.au3> GUICreate("", 50, 50, -1, -1, $WS_POPUP,$WS_EX_LAYERED) GUICtrlCreatePic(@ScriptDir&'/background.gif', 0,0,0,0) While 1 GUISetState(@SW_SHOW) Sleep(10) Wend Why isn't that working? I have a white background why this script! I've heard about top left pixel on this forum, why? Transparency should be defined in software like photoshop, not by one pixel on top left corner? I'm lost. Thanks for your time and your help.
  9. This old post saved my life Thanks
  10. Hum.. I don't kow, but it works ! Thanks for those two example
  11. Problem semi solved by using GUICtrlCreateButton("", 5, 51, 92, 16, $BS_BITMAP) GUICtrlSetImage ( -1, @ScriptDir&'/GuiSettings.bmp' )
  12. Hum... Maybe it wasn't a good idea to create this topic here. I figured out where does the problem come from: The transparency seems to only be applied to the second GuiCtrlCreateGraphic...Why? How can I avoid this? If I can't, Is there any other way to define a part of the picture as a button? Thanks
  13. Hi guys, I have a little transparency problem: $Main=GUICreate("MyGui", 237, 67, -1, -1, $WS_POPUP, BitOR($WS_EX_TOPMOST,$WS_EX_LAYERED)) $Back=GUICtrlCreatePic(@ScriptDir&'/GuiMain.gif', 0,0, 0,0) GUICtrlSetState($Back, $GUI_DISABLE) ;$settings=GUICtrlCreatePic(@ScriptDir&'/GuiSettings.jpg',5,51,0,0) While 1 GUISetState(@SW_SHOW) Sleep(100) WendoÝ÷ Ùh­Øb²+e¢,)h!¶Úþ-t¶)ò¦'¢oø§goÉÈéø¦«­¢+ØÀÌØí5¥¸õU% ÉÑ ÅÕ½Ðí5åÕ¤ÅÕ½Ðì°ÈÌܰØÜ°´Ä°´Ä°ÀÌØí]M}A=AU@° ¥Ñ=H ÀÌØí]M}a}Q=A5=MP°ÀÌØí]M}a}1eI¤¤(ÀÌØí ¬õU% Ñɱ ÉÑA¥¡MÉ¥ÁѥȵÀìÌäì½Õ¥5¥¸¹¥Ìäì°À°À°À°À¤)U% ÑɱMÑMÑÑ ÀÌØí ¬°ÀÌØíU%}%M 1¤((ÀÌØíÍÑÑ¥¹ÌõU% Ñɱ ÉÑA¥¡MÉ¥ÁѥȵÀìÌäì½Õ¥MÑÑ¥¹Ì¹©ÁÌäì°Ô°ÔİÀ°À¤()]¡¥±Ä(%U%MÑMÑÑ¡M]}M!=¤(%M±À ÄÀÀ¤)]¹With this, like that: See arrows for bugs.. __________________________________________ But i want it to look like: Its kind of weird.. Just by adding this line, my whole transparency of the previous picture disapear... I keep trying to superpose those 2 GuiCtrlCreatePic because I need the second one to be a button. Thanks a lot§
  14. Thanks a lot, i'm gonna try it.
×
×
  • Create New...