AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Condinete's do not work with a var in GUI SHOW

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Andelhofs



Joined: 30 Nov 2009
Posts: 9

PostPosted: Mon Nov 30, 2009 2:12 pm    Post subject: Condinete's do not work with a var in GUI SHOW Reply with quote

Code:
if A_GuiEvent = DoubleClick
{
    LV_GetText(plaatje, A_EventInfo)
    LV_GetText(Secs, A_EventInfo, 2)
    xje = %A_GuiX%
    yje = %A_GuiY%
    Gui, 2: -MaximizeBox +MinSize100x100 +MaxSize100x100 -border +LastFound +LabelSec +AlwaysOnTop
    Gui, 2: Add, Picture, w75 h75 x25 y5,  %plaatje%
    Gui, 2: Add, edit, R1 W100 x0 y80, %secs%
    Gui, 2: Color, White
    Gui, 2: Show, W100 H100 X%xje% Y%yje%, Center, Pandelhofs - DeskImage
}


He do not pop up at %xje% and %yje%, why ?

It may not be a %var% ?
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Mon Nov 30, 2009 2:20 pm    Post subject: Reply with quote

Try this. There was a comma too much. Also now you see if the vars have content:
Code:
if A_GuiEvent = DoubleClick
{
    LV_GetText(plaatje, A_EventInfo)
    LV_GetText(Secs, A_EventInfo, 2)
    xje = %A_GuiX%
    yje = %A_GuiY%
    Gui, 2: -MaximizeBox +MinSize100x100 +MaxSize100x100 -border +LastFound +LabelSec +AlwaysOnTop
    Gui, 2: Add, Picture, w75 h75 x25 y5,  %plaatje%
    Gui, 2: Add, edit, R1 W100 x0 y80, %secs%
    Gui, 2: Color, White
Msgbox xje: %xje%`nyje: %yje%
    Gui, 2: Show, W100 H100 X%xje% Y%yje%, Center Pandelhofs - DeskImage
}
Back to top
View user's profile Send private message
SpiderGames



Joined: 09 Jun 2008
Posts: 936
Location: Canada

PostPosted: Mon Nov 30, 2009 2:22 pm    Post subject: Reply with quote

You may be looking for Gui Control. This allows for Refreshing.


BTW.

What is your main languidge? ( <- I can't spell worth sht)
_________________

I know i have 6 legs. It's cuz I'm special.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Andelhofs



Joined: 30 Nov 2009
Posts: 9

PostPosted: Mon Nov 30, 2009 2:24 pm    Post subject: Reply with quote

aaffe wrote:
Try this. There was a comma too much. Also now you see if the vars have content:
Code:
if A_GuiEvent = DoubleClick
{
    LV_GetText(plaatje, A_EventInfo)
    LV_GetText(Secs, A_EventInfo, 2)
    xje = %A_GuiX%
    yje = %A_GuiY%
    Gui, 2: -MaximizeBox +MinSize100x100 +MaxSize100x100 -border +LastFound +LabelSec +AlwaysOnTop
    Gui, 2: Add, Picture, w75 h75 x25 y5,  %plaatje%
    Gui, 2: Add, edit, R1 W100 x0 y80, %secs%
    Gui, 2: Color, White
Msgbox xje: %xje%`nyje: %yje%
    Gui, 2: Show, W100 H100 X%xje% Y%yje%, Center Pandelhofs - DeskImage
}


thx, i see, thank you very much Very Happy
Back to top
View user's profile Send private message
Andelhofs



Joined: 30 Nov 2009
Posts: 9

PostPosted: Mon Nov 30, 2009 2:25 pm    Post subject: Reply with quote

SpiderGames wrote:
You may be looking for Gui Control. This allows for Refreshing.


BTW.

What is your main languidge? ( <- I can't spell worth sht)


Dutch, Nederlands
Not German / Duitch

language

^^
Back to top
View user's profile Send private message
Andelhofs



Joined: 30 Nov 2009
Posts: 9

PostPosted: Mon Nov 30, 2009 2:31 pm    Post subject: Reply with quote

aaffe wrote:
Try this. There was a comma too much. Also now you see if the vars have content:
Code:
if A_GuiEvent = DoubleClick
{
    LV_GetText(plaatje, A_EventInfo)
    LV_GetText(Secs, A_EventInfo, 2)
    xje = %A_GuiX%
    yje = %A_GuiY%
    Gui, 2: -MaximizeBox +MinSize100x100 +MaxSize100x100 -border +LastFound +LabelSec +AlwaysOnTop
    Gui, 2: Add, Picture, w75 h75 x25 y5,  %plaatje%
    Gui, 2: Add, edit, R1 W100 x0 y80, %secs%
    Gui, 2: Color, White
Msgbox xje: %xje%`nyje: %yje%
    Gui, 2: Show, W100 H100 X%xje% Y%yje%, Center Pandelhofs - DeskImage
}



U try by myself, but the output of the msgbox:

---------------------------
xje: -2147483648
yje: -2147483648
---------------------------
OK
---------------------------

How fix ?

Thanks

i msgbox %A_GuiX% and the same value :'(
Back to top
View user's profile Send private message
Andelhofs



Joined: 30 Nov 2009
Posts: 9

PostPosted: Mon Nov 30, 2009 2:42 pm    Post subject: Reply with quote

Finshed

MouseGetPos, xje, yje
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Mon Nov 30, 2009 2:46 pm    Post subject: Reply with quote

So A_GuiX and A_GuiY arent there. What do you want to do? What did you expect where to get the content of them? From Another gui?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group