alert(3alleg4) Allegro manual alert(3alleg4)NAME
alert - Displays a popup alert box. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int alert(const char *s1, *s2, *s3, const char *b1, *b2, int c1, c2);
DESCRIPTION
Displays a popup alert box, containing three lines of text (s1-s3), and with either one or two buttons. The text for these buttons is
passed in `b1' and `b2' (`b2' may be NULL), and the keyboard shortcuts in `c1' and `c2' as ASCII value. Example:
if (!exists(CONFIG_FILE))
alert(CONFIG_FILE, "not found.", "Using defaults.",
"&Continue", NULL, 'c', 0);
RETURN VALUE
Returns 1 or 2 depending on which button was clicked. If the alert is dismissed by pressing ESC when ESC is not one of the keyboard short-
cuts, it treats it as a click on the second button (this is consistent with the common "Ok", "Cancel" alert).
SEE ALSO alert3(3alleg4), gui_fg_color(3alleg4), exgui(3alleg4), expackf(3alleg4), exspline(3alleg4)Allegro version 4.4.2 alert(3alleg4)
Check Out this Related Man Page
alert(3alleg4) Allegro manual alert(3alleg4)NAME
alert - Displays a popup alert box. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
int alert(const char *s1, *s2, *s3, const char *b1, *b2, int c1, c2);
DESCRIPTION
Displays a popup alert box, containing three lines of text (s1-s3), and with either one or two buttons. The text for these buttons is
passed in `b1' and `b2' (`b2' may be NULL), and the keyboard shortcuts in `c1' and `c2' as ASCII value. Example:
if (!exists(CONFIG_FILE))
alert(CONFIG_FILE, "not found.", "Using defaults.",
"&Continue", NULL, 'c', 0);
RETURN VALUE
Returns 1 or 2 depending on which button was clicked. If the alert is dismissed by pressing ESC when ESC is not one of the keyboard short-
cuts, it treats it as a click on the second button (this is consistent with the common "Ok", "Cancel" alert).
SEE ALSO alert3(3alleg4), gui_fg_color(3alleg4), exgui(3alleg4), expackf(3alleg4), exspline(3alleg4)Allegro version 4.4.2 alert(3alleg4)
I have a bit of javascript
function hasSpaces(name)
{
if(name.search(/^\s*/) != -1){
alert(name);
name.replace((/^\s*/, "~"))
alert(name);
}
return name;
} ... (2 Replies)
Hi friends
I have configuration files in one directory. I want to get an alert if any of the existing files gets modified or any new configuration file is present in the directory.
Please help me to design a script for this task.
Thanks in advance.
John (2 Replies)
Hi Guys...
I want to change the below script to send an alert when my file system is greater than 5G.
# If any filesystem has less than 5k, issue an alert
if
Regards (3 Replies)
hi,
i serarch monitoring and alert system.
when HDD and services are down. Send email and sms alert to me and help desk.
but i don't find any program.
Can you help me ?
Thanks. (1 Reply)
Hi All,
My below shell script is not capturing %used value in the filesystem alert in the subject of the mail alert:
#!/bin/bash
export DBALIST="abc@xyz.com"
df -k /oradata/xyz/archive > dfk.result
archive_capacity=`awk -F" " '{ print $5 }' dfk.result|grep -i %| cut -c 1-4`
if ]
then... (5 Replies)
Hello,
I want to check the size of text files in a directory continuously via cronjob.
I would like to receive an e-mail alert if the file is greater than 0 kb.
Thank you for your help. (3 Replies)
I have an issue with one of the processes which is showing %cpu over 120% when i issue the top command. I am looking for a script that send me an email alert when it crosses the 90% thresholds.
Appreciate your help (1 Reply)
I am not system admin on Unix or Linux server. I am Oracle DBA to work on these operating systems. On our Oracle Linux 5.8 box, it always pump up the alert message like this:
Cron Daemon
/bin/sh: /opt/oracle/product/middleware/agent11g/ccr/bin/emCCR: No such file or directory
Please help... (2 Replies)
Hi ,
I want a script who will send alert the moment someone edit any file in a directory in LINUX. Can some one throw some light on this please.!! (4 Replies)
hi all members
I have a shell script to generate disk space usage email alert if threshold is more than 80 %, now the requirement changed to keep sending alert emails for every 5% incremental usage ........ Any help would be greatly appreciated.
ex - 80% , 85% ,90%,95%,100% we should get an... (6 Replies)