AutoHotkey Community

It is currently May 27th, 2012, 12:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: November 30th, 2009, 3:12 pm 
Offline

Joined: November 30th, 2009, 11:52 am
Posts: 9
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% ?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:20 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
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
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:22 pm 
Offline

Joined: June 9th, 2008, 2:32 am
Posts: 936
Location: Canada
You may be looking for Gui Control. This allows for Refreshing.


BTW.

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

_________________
Image
I know i have 6 legs. It's cuz I'm special.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:24 pm 
Offline

Joined: November 30th, 2009, 11:52 am
Posts: 9
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 :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:25 pm 
Offline

Joined: November 30th, 2009, 11:52 am
Posts: 9
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

^^


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:31 pm 
Offline

Joined: November 30th, 2009, 11:52 am
Posts: 9
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 :'(


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:42 pm 
Offline

Joined: November 30th, 2009, 11:52 am
Posts: 9
Finshed

MouseGetPos, xje, yje


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 30th, 2009, 3:46 pm 
Offline

Joined: May 17th, 2007, 12:07 pm
Posts: 1004
Location: Germany - Deutschland
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?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, Bing [Bot], Google [Bot], Leef_me, Pulover, rjgatito, XstatyK and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group