sorry, misunderstood your question
the code i suggested only checks if a window is open and its title ends with mozilla firefox
to get informations about tabs...
there is an article which describes how msie tab and firefox tab information are retrieved, buts its not too simple. especially the firefox part invokes a custom plugin that allows communication with external apps
may you want to give it a try .... i'd do myself, but right now im focused on other things and dont have too much time for it
http://www.codeproje...t=2306648#ffExtfirefox is a multi os application and to have it look the same on multiple operating systems like linux, mac os or windows, the developers created own ways to display informations. so working with these structures requires somewhat special treatment.
probably a workaround for your problem would be to store in the script if the hotkey was pressed and check for that status when its pressed
something like:
firefoxtab := 0
+#p::
if !(fireFoxTab) {
Run "http://localhost:8080/"
firefoxTab:=1
}
return
but this only works once util you restarted the script, and there is no control about the tab thing
another solution might be to send ctrl+tab to firefox application, cycle this way through tabs and remember their names (due to changing fireox title bar)
when all names are gathered twice you've cycled through all and repeated a around - you can stop sending the ctrl tab then and check for your desired name
if this one's not in that name bunch open it again ...
this solution is not a real elegant one, but should work
greets
derRaphael