 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
gwarble
Joined: 23 May 2009 Posts: 127 Location: north bay, california
|
Posted: Mon Jan 04, 2010 4:16 pm Post subject: |
|
|
yeah i still have to fix this bug, from the poor way i manage statics...
for now, try setting "IN=" in the second call and see what happens,
otherwise use IN=132 and "shell32.dll" as the image parameter (not as elegant i know)
i'll fix this in the future, but thanks for the feedback, i'm glad you're using the function! and would love to see some examples of yours or anyone who is using it
- gwarble |
|
| Back to top |
|
 |
segalion Guest
|
Posted: Mon Jan 18, 2010 4:36 pm Post subject: |
|
|
Seems that there are a bug with the flash in notify. Sometimes after a long time it shows an error trying to execute new inexistent thread:
Usually:
Gui, 127:Color, Silver
I dont know how FlashGN2 get the 127 value.
One time it get the 126 value. |
|
| Back to top |
|
 |
segalion Guest
|
Posted: Mon Jan 18, 2010 4:53 pm Post subject: more info |
|
|
seems that it ocurrs when I close previous flashing notify with:
Notify("","",-3,"Wait",Last_Notify_ID) |
|
| Back to top |
|
 |
Marty Guest
|
Posted: Thu Jan 21, 2010 10:41 pm Post subject: |
|
|
| gwarble wrote: | thanks man, never saw those, htmltext looks perfect i'll play with it
- gwarble |
Hi
Did you ever try this ? I'd be keen to see how it works with notify. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jan 24, 2010 11:17 pm Post subject: |
|
|
| Nice function, thanks for sharing! |
|
| Back to top |
|
 |
gwarble
Joined: 23 May 2009 Posts: 127 Location: north bay, california
|
Posted: Tue Jan 26, 2010 1:52 am Post subject: |
|
|
thank you, i'm glad you like it
re: htmltext... to be honest i looked and got a little disheartened about implemented what seemed to be a fairly unpolished, though useful, library...
i was also hoping someone else would go to the trouble
but really i just havent had time to dive in and make an implementation... and i don't have any stressing needs for it at the moment... one of these days
anyone using Notify() for something creative/useful/professional/fun/anything i'd love to hear about how its being used... after about a year of learning AHK i can say for at least a couple months now i have more AHK tray icons than all other combined! i'm loving ahk... and yes i do keep a tidy tray area so more may only be 4 ahk ones vs. 2 windows ones + realvnc, but still!
i'm also using this function with great success, in almost all apps/scripts i write... including a a machine (cnc milling/turning centers) monitoring system and a job tracking system, as well as in batch files (which i havent had the time to replace with an ahk script) via Notify.exe (see above somewhere)
anyway, thanks to this great forum, AHK is extremely acccessible even to non-programmers such as myself, and even for advanced tasks!
- gwarble |
|
| Back to top |
|
 |
segalion Guest
|
Posted: Tue Jan 26, 2010 9:58 am Post subject: |
|
|
Im using notify to popup incoming calls. I discover the calling number, and get info from web directory and output photo and info of calling user. If I get the call, notify is closed, if not , I can see missing calls. Then I can right-clic over notify to make a call.
The problem is that bug reported.
I cant understand how the funtion work, to debug the error. |
|
| Back to top |
|
 |
hugov
Joined: 27 May 2007 Posts: 2459
|
Posted: Tue Jan 26, 2010 10:42 am Post subject: |
|
|
Can you post the exact error because "I dont know how FlashGN2 get the 127 value." isn't very helpful The 127 is probably gui number, perhaps you have to many notify windows that aren't closed properly? _________________ Tut 4 Newbies
TF : Text file & string lib, TF Forum |
|
| Back to top |
|
 |
gwarble
Joined: 23 May 2009 Posts: 127 Location: north bay, california
|
Posted: Tue Jan 26, 2010 3:17 pm Post subject: |
|
|
strange i'll look into that segalion... poor math internally i guess cuz gui number should be constrained with gf and gl options, and to 99 by default...
thanks and sorry i didnt see that post earlier
- gwarble |
|
| Back to top |
|
 |
segalion Guest
|
Posted: Thu Jan 28, 2010 11:28 am Post subject: |
|
|
Hello:
For the bug:
To show notfy
| Code: | options:= "AC=MenuNotify IW=48 IH=-1 GC=FFFFFF"
Last_Notify_ID:= Notify( title , A_Hour . ":" . A_min . " (" . A_DDDD . " " . A_DD . "/" . A_MMMM . "/" . A_YYYY . ")`n" ,0, options , file) |
(sometimes file="")
To close notify (sometimes):
| Code: | | Notify("","",-3,"Wait",Last_Notify_ID) |
Sugestions for the code:
An option PX PY to force XY position. I have modified:
| Code: | SysGet, Workspace, MonitorWorkArea
If PX =
NewX := WorkSpaceRight-GW-5
else
NewX := PX
If PY =
{
If (OtherY)
NewY := OtherY-GH-5
Else
NewY := WorkspaceBottom-GH-5
If NewY < % WorkspaceTop
NewY := WorkspaceBottom-GH-5
}
else NewY := PY
Gui, %GN2%:-Caption +ToolWindow +AlwaysOnTop -Border +E0x20
|
Disable animate ST dont works on close notify (missing "if ST")
| Code: | Gui, % Image + GL - GF + 1 ":Destroy"
If ST
DllCall("AnimateWindow","UInt",NotifyGuiID,"Int",ST,"UInt", "0x00050001")
Gui, %Image%:Destroy |
Thanks for this great code!!! |
|
| Back to top |
|
 |
jon_bently Guest
|
Posted: Thu Jan 28, 2010 2:00 pm Post subject: |
|
|
segalion what phone system is this for ?
Care to share |
|
| Back to top |
|
 |
segalion Guest
|
Posted: Fri Jan 29, 2010 1:40 pm Post subject: sugestions |
|
|
I would like to propose some sugestions:
1. Some function to hide/show all notifications (temporally). I.e. you have a lot of missing calls, and you want to interact with desktop without close.
I was trying externally with:
| Code: |
DetectHiddenWindows on
Winget, ln, List, NotifyGui
Winget, ln2, List, NotifyShadow
If ( togle := !togle )
loop, %ln%
{
this_id:= ln%A_Index%
WinHide, ahk_id %this_id%
this_id:= ln2%A_Index%
WinHide, ahk_id %this_id%
}
else
loop, %ln%
{
this_id:= ln2%A_Index%
WinShow, ahk_id %this_id%
this_id:= ln%A_Index%
WinShow, ahk_id %this_id%
}
DetectHiddenWindows off |
I had to title GN2 gui shadows
My problem is that Notify() dont work fine when hidden notifications...
Another thing can be option to disable flash (you can make BF=-1 or BF=-2, but dont disable shadow...). |
|
| Back to top |
|
 |
hugov
Joined: 27 May 2007 Posts: 2459
|
Posted: Fri Jan 29, 2010 1:44 pm Post subject: Re: sugestions |
|
|
| segalion wrote: | I had to title GN2 gui shadows
My problem is that Notify() dont work fine when hidden notifications. | What happens if you simply move them off screen rather than hiding them ? Could indeed be a useful suggestion to add... _________________ Tut 4 Newbies
TF : Text file & string lib, TF Forum |
|
| Back to top |
|
 |
gwarble
Joined: 23 May 2009 Posts: 127 Location: north bay, california
|
Posted: Fri Jan 29, 2010 5:07 pm Post subject: |
|
|
hey
i agree, those would be useful additions...
don't forget you can access the gui directly with the returned value being the gui number (and the shadow being the gui number plus half of the maximum number (gl-gf)
so you can use ##:+LastFound or what not
also, i thought you could already disable flash by using: BF=0, t thats not working for you?
thanks for the feedback
- gwarble
edit: also i'll have to go thru the ST logic but thanks for clarifying... and i like the idea of a positional notification, but it will have to do something (like rename the gui to some other pattern so that stacking notifications is not disrupted... or maybe NotifyXY() function which could really be a whole lot simpler
- gwarble |
|
| Back to top |
|
 |
segalion Guest
|
Posted: Tue Feb 09, 2010 4:46 pm Post subject: |
|
|
Finally, I have disable flash option due to the strange bug reported...
I have used:
options:= " GC=f5d35f BC=846700 BF=-1 BT=150 BW=4"
BF=-1 =>dissable flash (now system is stable)
BT=150 => poor transparence
BW=4 => big border
GC and BC => colors
I had to change notify code to get propper border color without flash
| Code: | _Notify_Flash_25:
StringReplace, FlashGN, A_ThisLabel, _Notify_Flash_
FlashGN += GF - 1
FlashGN2 := FlashGN + GL - GF + 1
If Flashed%FlashGN2% := !Flashed%FlashGN2%
Gui, %FlashGN2%:Color, %BC%
Else
Gui, %FlashGN2%:Color, Silver
Return |
|
|
| 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
|