 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Andelhofs
Joined: 30 Nov 2009 Posts: 9
|
Posted: Mon Nov 30, 2009 2:12 pm Post subject: Condinete's do not work with a var in GUI SHOW |
|
|
| 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 |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Mon Nov 30, 2009 2:20 pm Post subject: |
|
|
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 |
|
 |
SpiderGames
Joined: 09 Jun 2008 Posts: 936 Location: Canada
|
Posted: Mon Nov 30, 2009 2:22 pm Post subject: |
|
|
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 |
|
 |
Andelhofs
Joined: 30 Nov 2009 Posts: 9
|
Posted: Mon Nov 30, 2009 2:24 pm Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
Andelhofs
Joined: 30 Nov 2009 Posts: 9
|
Posted: Mon Nov 30, 2009 2:25 pm Post subject: |
|
|
| 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 |
|
 |
Andelhofs
Joined: 30 Nov 2009 Posts: 9
|
Posted: Mon Nov 30, 2009 2:31 pm Post subject: |
|
|
| 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 |
|
 |
Andelhofs
Joined: 30 Nov 2009 Posts: 9
|
Posted: Mon Nov 30, 2009 2:42 pm Post subject: |
|
|
Finshed
MouseGetPos, xje, yje |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Mon Nov 30, 2009 2:46 pm Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|