AutoHotkey Community

It is currently May 27th, 2012, 1:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 258 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 18  Next
Author Message
 Post subject:
PostPosted: January 4th, 2010, 4:16 pm 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 18th, 2010, 4:36 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject: more info
PostPosted: January 18th, 2010, 4:53 pm 
seems that it ocurrs when I close previous flashing notify with:

Notify("","",-3,"Wait",Last_Notify_ID)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 21st, 2010, 10:41 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2010, 11:17 pm 
Nice function, thanks for sharing!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2010, 1:52 am 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2010, 9:58 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2010, 10:42 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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?

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 26th, 2010, 3:17 pm 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 11:28 am 
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!!!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 28th, 2010, 2:00 pm 
segalion what phone system is this for ?
Care to share


Report this post
Top
  
Reply with quote  
 Post subject: sugestions
PostPosted: January 29th, 2010, 1:40 pm 
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...).


Report this post
Top
  
Reply with quote  
 Post subject: Re: sugestions
PostPosted: January 29th, 2010, 1:44 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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...

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 5:07 pm 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2010, 4:46 pm 
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


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 258 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 18  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 15 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