•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Existing Scripts section within the Web Development category of DaniWeb, a massive community of 422,977 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,925 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Existing Scripts advertiser: Web Code Converter
Views: 1550 | Replies: 0
![]() |
•
•
Join Date: Aug 2006
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi all,
Can anyone please let me know if it is possible to bring a minimised web page running on mozilla browser to the foreground using shell script.
I am using the following piece of code to bring it to the front on my display:
XCLIENTS=/usr/openwin/bin/xlsclients
XLSCLIENTS_TMP_FILE=/tmp/tmp_xlsclients_$$
this_instance=`$XCLIENTS -display $DISPLAY | grep -c "$COE_CRAFT_URL"`
if ["$this_instance -eq "1"]
then
#echo "A session is already open" >> /tmp/log.txt
$XCLIENTS -display $DISPLAY -l } grep -v 'Machine:' | grep -v 'Name:' | grep 'Instance/Class:' > $XCLIENTS_TMP_FILE
WINDOW_ID_HEX=`paste -s -d "\t\n" $XCLIENTS_TMP_FILE | grep $COE_CRAFT_URL | sed s/://| awk '{print $2}'`
if ["$WINDOW_ID_HEX"!=""]
then
WINDOW_ID_INT=`printf "%d" $WINDOW_ID_HEX`
WINDOW_ID_INT=$<<WINDOW_ID_INT+32>>
$RAISEWIN$DISPLAY $WINDOW_ID_INT > /dev/null 2>&1
fi
exit 1
fi
Please let me know if this will work.
Thanks a lot.
Regards,
Sabi
Can anyone please let me know if it is possible to bring a minimised web page running on mozilla browser to the foreground using shell script.
I am using the following piece of code to bring it to the front on my display:
XCLIENTS=/usr/openwin/bin/xlsclients
XLSCLIENTS_TMP_FILE=/tmp/tmp_xlsclients_$$
this_instance=`$XCLIENTS -display $DISPLAY | grep -c "$COE_CRAFT_URL"`
if ["$this_instance -eq "1"]
then
#echo "A session is already open" >> /tmp/log.txt
$XCLIENTS -display $DISPLAY -l } grep -v 'Machine:' | grep -v 'Name:' | grep 'Instance/Class:' > $XCLIENTS_TMP_FILE
WINDOW_ID_HEX=`paste -s -d "\t\n" $XCLIENTS_TMP_FILE | grep $COE_CRAFT_URL | sed s/://| awk '{print $2}'`
if ["$WINDOW_ID_HEX"!=""]
then
WINDOW_ID_INT=`printf "%d" $WINDOW_ID_HEX`
WINDOW_ID_INT=$<<WINDOW_ID_INT+32>>
$RAISEWIN$DISPLAY $WINDOW_ID_INT > /dev/null 2>&1
fi
exit 1
fi
Please let me know if this will work.
Thanks a lot.
Regards,
Sabi
![]() |
•
•
•
•
•
•
•
•
DaniWeb Existing Scripts Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
advertising blog browser browsing community competition data design development domains email firefox google html intel internet legal linux marketing microsoft monetization mozilla msn multimedia navigation networking news open source php privacy report research revenue rss search security seo software standards sun survey thunderbird video w3c web web development webmaster wiki xml yahoo
- Change Web Page Font Size on the Fly (Windows tips 'n' tweaks)
- A Particular Web Page Will Not Open (Web Browsers)
- DEfault web page has been jacked by a passthrough (Viruses, Spyware and other Nasties)
- Unable to open web page (Web Browsers)
- Printing Web Page (Windows 9x / Me)
- unable to access my web page (Domains and DNS)
- Opening a Web Page in a New Window (Windows tips 'n' tweaks)
- Win XP Explorer - Web Page View (Windows NT / 2000 / XP / 2003)
Other Threads in the Existing Scripts Forum
- Previous Thread: Looking for help on this
- Next Thread: HotScripts Equiv


Linear Mode