Script for auto recovery of standby node - Simple dataguard
Hi.
I have set up several solutions with Oracle SE and simple dataguard on linux.
On physical standby, I have created a script which performs the recovery every 15 minuts:
source /u01/app/oracle/sb_scripts/.profile_websb
/u01/app/oracle/product/10.2.0/bin/sqlplus "/ as sysdba" <<EOFSQL
recover automatic standby database;
exit;
EOFSQL
However, I am trying to perform the same on a windows environment but struggles a bit with the script.
Initally I tried %ORACLE_HOME%\bin\sqlplus / as sysdba @c:\scripts\recover.sql
Where recover.sql has been:
recover automatic standby database;
exit;
and :
recover automatic standby database until cancel;
alter database recover cancel;
exit;
Neither of these exits the bat scripts but awaits user input on CANCEL after the last archived log has been added.
Anyone with a bright idea on how to solve this?
Thanks.
Kjell Ove
Kjell wrote:
Hi.
I have set up several solutions with Oracle SE and simple dataguard on linux.
On physical standby, I have created a script which performs the recovery every 15 minuts:
source /u01/app/oracle/sb_scripts/.profile_websb
/u01/app/oracle/product/10.2.0/bin/sqlplus "/ as sysdba" <<EOFSQL
recover automatic standby database;
exit;
EOFSQL
However, I am trying to perform the same on a windows environment but struggles a bit with the script.
Initally I tried %ORACLE_HOME%\bin\sqlplus / as sysdba @c:\scripts\recover.sql
Where recover.sql has been:
recover automatic standby database;
exit;
and :
recover automatic standby database until cancel;
alter database recover cancel;
exit;
Neither of these exits the bat scripts but awaits user input on CANCEL after the last archived log has been added.
Anyone with a bright idea on how to solve this?
Thanks.
Kjell OveKjell
This script I use for windows (linked from my old site at http://www.niall.litchfield.dial.pipex.com/ ) uses
alter database recover automatic standby database until cancel;
alter database recover cancel;Note the extra alter database I'll admit I haven't run this personally in 2 or 3 years now.
Niall Litchfield
http://www.orawin.info/
Edited by: Niall Litchfield on Apr 23, 2009 10:21 AM can't use bold in code apparently.
Similar Messages
-
VBS script for auto integration for multiple channels
Hello there,
I would like to create a Diadem script to auto analyse multple channels in a tdms file.
As I haven't yet gone on the diadem advanced course, I need help.
I have tried the recording mode but I must pick each channel manually then integrate it (but I have around 150 separate channels !)
I would like to therefore create a routine which starts at the first channel, integrates it, times it by 3600, then chooses the max value and stores this in a new channel.
It would then continue down the list until all channels are complete.
I need a loop routine , but don't understand yet how to create it....one day I'm sure it will appear simple ...
Can anybody help ..?Hi adek,
Why don't you post a typical data sett of yours with 150 channels. That way the code we give you will work without any edits needed on your end.
Brad Turpin
DIAdem Product Support Engineer
National Instrumens -
[SOLVED] Script for auto-connection
Hey,
I want to write a script that does the following:
When I switch my laptop on, checks (using the "iwlist wlan0 scan" command) which wireless networks are in range.
Then, if my home's essid is found, launch the file that connects to that network.
I know quite a few programming languages (JAVA, C, C++, etc.), but no scripting languages what so ever..
I would like a recommendation of a good scripting language to use, and maybe a few pointers as well..
Thanks in advance
Fiod
Last edited by fiod (2007-10-22 18:16:52)I started to write a script wich list the available networks in python
maybe that can help you for starting
It is really fun to write python but when you come from java or C, you have to learn a new way of programming !!!
Python is really easy to learn.
#!/usr/bin/env python
import os
class AccessPoint:
adress = ""
essid = ""
quality = 0
mode = ""
frequency = ""
channel = 0
encryptionKey = ""
encryptionType = "No Information available"
def __init__(self, address):
self.address = address
def __cmp__(a, b):
return cmp(a.quality, b.quality)
tmpFile = "/tmp/wifiap"
interface = "wlan0"
if (os.path.exists(tmpFile) == False):
os.system ("iwlist %s scan > %s" % (interface,tmpFile))
data = open(tmpFile).readlines() # open the file
accessPoints = []
for line in data:
if "Address" in line: # create a new network dict
address = line[line.find("Address") + 8:]
accessPoints.append(AccessPoint(address.strip()))
elif "ESSID" in line:
accessPoints[-1].essid = line[line.find("ESSID") + len("ESSID") + 1:].strip()
elif "Mode" in line:
accessPoints[-1].mode = line[line.find("Mode") + len("Mode") + 1:].strip()
elif "Frequency" in line:
accessPoints[-1].frequency = line[line.find("Frequency") + len("Frequency") + 1:].strip()
elif "Encryption key" in line:
accessPoints[-1].encryptionKey = line[line.find("Encryption key") + len("Encryption key") + 1:].strip()
elif "IE" in line:
accessPoints[-1].encryptionType = line[line.find("IE") + len("IE") + 1:].strip()
elif "Quality" in line:
accessPoints[-1].quality = line[line.find("Quality") + len("Quality") + 1:line.find("Signal")].strip()
elif "Channel" in line:
accessPoints[-1].channel = line[line.find("Channel") + len("Channel") + 1:].strip()
accessPoints.sort()
accessPoints.reverse()
print "Listing found networks:"
print '%-18s %-20s %-8s %-7s %-4s (%s)' % ("ADDRESS", "ESSID", "QUALITY", "CHANNEL", "ENCRYPTION KEY" , "ENCRYPTION TYPE")
for accessPoint in accessPoints:
print '%-18s %-20s %-8s %-7s %-4s (%s)' % (accessPoint.address, accessPoint.essid, accessPoint.quality, accessPoint.channel, accessPoint.encryptionKey , accessPoint.encryptionType) -
Powerpoint 2010 - Manually saving a working document as versions for auto recovery
Basically to ensure that I dont lose any content due to both powerpoint crashes and to make sure i preserve everything, I save a working file as a differnet versions v1, v2, v3.. I always do this before making any major change to a document. But due to version
control issue, this is diffuclt to manage.
I see that in PPT 2010, i can recover earlier versions of the document IF it has autosaved.
I want to know, if I can periodically save the document as a version while i am working so that i dont have to create 10 separate v1, v2, v3 in a folder.
Thanks
VijayHi Vijay,
You can perform the following steps to periodically save the document.
1.Click the File tab.
2.Under Help, click Options.
3.Click Save.
4.Select the Save AutoRecover information every x minutes check box.
5.In the minutes field, specify how often you want the program to save your data and the program state.
Tip The amount of new information that the recovered file contains depends on how frequently a Microsoft Office program
saves the recovery file. For example, if the recovery file is saved only every 15 minutes, your recovered file won't contain your last 14 minutes of work before the power failure or other problem occurred.
6.You can also change the location (specified in the AutoRecover file location box) where the program automatically saves a version of files you work
on.
For detail, you can refer to the following article:
http://office.microsoft.com/en-us/word-help/automatically-save-and-recover-office-files-HP010354296.aspx
Hope it does help.
Best Regards,
Nick Wan -
Script for auto select of subtitle stream with 16:9 or 4:3 display
I have an anamorphic 16:9 project that is set for 16:9 letterbox display. It is letterboxed in anamorphic for a 2.35:1 aspect ratio. I have 2 subtitle streams both identical in content. One stream is positioned for 16:9 displays with subtitles in the lower movie frame. The other stream is positioned for 4:3 displays with subtitles completely in the lower letterbox.
I would like to create a script that can choose the appropriate stream depending on the user's setup (either 16:9 or 4:3). I would like the non-appropriate subtitle stream to appear non existent to the user. Basically, I don't want the user to have access to both of the streams. If they push the subtitle button on their remote, I would like to have just the proper one available. Can this be done in DVDSP? I'm not a total idiot with authoring, just not that experienced with scripting, so it's a little intimidating.
I've gone as far to look in the manual and have found that SPRM 14 seems to be the key to display prefs. Could someone map out how to create such a script? Thank you.In general this script should work:
mov GPRM0, SPRM14
and GPRM0, 3072
Set System Stream St(Subtitle Stream 1) (On) if GPRM 0 = 3072)
Set System Stream St(Subtitle Stream 2) (On) if GPRM 0 != 3072)
Jump Track 1
The value of 3072 is returned when 16:9 value is stored in SPRM14.
However some players may disregard this script as they might look for the presentation information in IFO files or in the video stream itself.
The better approach is to flag one subtitle stream as 16:9 and the other as 4:3 in DVD After Edit if you have an access to it.
MacPro 2.66, G5 DP 2.7 Mac OS X (10.4.9) TASCAM DA-88, DigiBeta, DeckLink HD Extreme, Cinemacraft Encoder -
How to Enable Custom Java Scripts for forms in Planning 11.1.2.2
I am working on Planning 11.1.2.2 right now.
Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
thanks in advance.Thanks guys, for your quick replies..!
Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
What I did, is here.
a. Cleared all cookies and temp files from IE.
b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
c. Stopped EPM services
d. Dropped tmp folder.
e. Started EPM services and let system deploy ear file (with my java script code).
All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
I am able to open my application and form.
But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
Any clue? thanks in advance, -
Hi.
I have set up a simple dataguard solution for one of our veritas cluster systems. We are running 10.2.0.4 on Rhel 4 x86-64.
Logs are shipped using rsync to standby node. PL/SQL and DBMS_JOBS ensures scheduled log switching and crontab jobs ensures both log shipping from primary node aswell as log apply on standby node.
In the alert log on the standby node, I can see that logs are applied correctly.
We uses db_file_name_convert and log_file_name_convert on the standby node.
Now, when I want to test a failover, I issue a alter system archive log current on primary node, shuts it down, and ships over all logs to standby node.
I do an "recover standby database auto" on the standby node and it stops when reaching the last known archive log.
So, how do I fail over.
I have tried the following:
Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
CANCEL
Media recovery cancelled.
SQL> alter database commit to switchover to primary;
alter database commit to switchover to primary
ERROR at line 1:
ORA-16139: media recovery required
and
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-01666: control file is for a standby database
Anyone who have an idea?
Thanks.
Kjell OveThis implementation, in SE, is also known as the poor man's dataguard. You must make all steps manually, don't expect the switch over to perform the way it has been defined for a EE environment. You must transfer all the available archivelog files to the standby site, then stop the recovery process, activate the standby and open it just as a regular database:
ALTER DATABASE RECOVER [FROM 'pathname'] STANDBY DATABASE;
SQL> ALTER DATABASE RECOVER CANCEL;
sql> Alter database activate standby database;
sql> shutdown immediate;
sql> startup mount;
sql> alter database open read write;
~ Madrid
http://hrivera99.blogspot.com -
Auto recovery;
What are the steps to auto recovery in case of the database is a standalone.
can we write the script to do it automatically.
if so links pls
Thanks!936666 wrote:
Auto recovery;
What are the steps to auto recovery in case of the database is a standalone.
can we write the script to do it automatically.
if so links pls
Thanks!
The details of every recovery is dependent on the nature and extent of the failure. This requires analysis by the DBA. That's what we get paid the big bucks for. -
Could someone please sketch out this simple script for me?
Could someone please sketch out a simple java script for me. I will have a document with one background
layer and a layer set (group) called "Analyze" that consists of 63 adjustment layers. The layer names in that "Analyze" group(folder) will be
"01" ...through "63" with 01 on the bottom and 63 at the top. Initially, all of the adjustment layers will be invisible and the
group will be closed (not expanded). I need a simple script that will check for the first invisible layer in that group
and make it visible without selecting that layer nor expanding the group. The script has to check
for the first invisible layer every time it runs because other actions may have turned off a layer in the set.
The point of this is so I can hotkey flipping on the layers one at a time without expanding the set or
changing focus off the background. It seems it should be a simple loop, but I just can't wrap my head
around all the objects (e.g. Layer as opposed to Layers and Artlayer as opposed to Artlayers)
and the constants constants.
for (i = 63; i>0; i--){ /* I have found layer indexes 0 are the topmost layer */
if( layerset[i] == INVISIBLE){
layerset[i] = VISIBLE;
break;
Could someone please write me a simple script that would do this?
Edit I found this and its very close to what I need:
var doc = app.activeDocument;
for(var i = 0 ; i < doc.layers.length;i++){
doc.layers[i].visible = (i % 2 == 0);
From here : Function to show/hide layer with Photoshop script (JSX) - Stack Overflow
In my case I would rewrite it to this
for(var i = 62; i >=0; i--){
if( !doc.layers[i].visible){
doc.layers[i].visible =TRUE;
break;
My problem is I just need to traverse the layers in my layerset "Analyze"
How do I reference just those? Is there a doc.layersets["Analyze"].layers[i].visible = TRUE?
Message was edited by: Shawn Laughlin To add more informationWell this works:
var doc = app.activeDocument;
var analyze = doc.layerSets.getByName("Analyze").layers
for(var i = 62 ; i >= 0; i --){
if (!analyze[i].visible){
analyze[i].visible =1;
break;
Hard to believe TRUE is not a constant in java. -
Where are the auto recovery files stored for Visio 2010?
I have auto recovery set for every 5 minutes. I have been working on a file that has been saved several times a day. Today when just moving a shape Viso 2010 crashed after I had been working on the file for over 2 hours. Auto recovery popped
up every 5 minutes indicating it was saving the file. After the crash the ony file I could find was the file as it was when I first opened it this AM. None of the work done today was saved.
Did auto recovery completely fail? Where can I look for the auto recovery file?
I have not done a reboot because I am afraid that if the file exits it will be gone for sure if I reboot. Any suggestions are welcome.
There must be a temp file or something that I can look for but not sure what the extension would be or the location.
Hopefully someone here can help.
thanks,
greg
Greg J WilsonHow do I know? You state the the auto-save file extension is .vxd - that's the Visio document XML format.
You can change this in File -> Options -> Save
As for the crashes, are there any messages when a crash occurs?
Check that the video drivers you have are the latest, try a different screen resolution to see if that changes anything and turn off or change any screen accelerators.
-- Paul Herber, Sandrila Ltd. http://www.sandrila.co.uk/ Engineering and software shapes for Visio.
My mistake - the file format is .vsd - standard visio format
Here is the info from the event viewer for the specific crash that caused me temporary pain.
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider
Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated
SystemTime="2011-07-25T17:15:25.000000000Z" />
<EventRecordID>83552</EventRecordID>
<Channel>Application</Channel>
<Computer>gw-Tosh_laptop</Computer>
<Security
/>
</System>
<EventData>
<Data>VISIO.EXE</Data>
<Data>14.0.6022.1000</Data>
<Data>4d6eacd6</Data>
<Data>unknown</Data>
<Data>0.0.0.0</Data>
<Data>00000000</Data>
<Data>c0000005</Data>
<Data>8469f91f</Data>
<Data>1668</Data>
<Data>01cc4ae02611b81c</Data>
<Data>C:\Program
Files\Microsoft Office\Office14\VISIO.EXE</Data>
<Data>unknown</Data>
<Data>af70a4ff-b6e1-11e0-82fc-001e33913568</Data>
</EventData>
</Event>
Greg J Wilson -
Disaster Recovery server for SAP and HACMP Cluster script for SAP ECC 6.0
Hi,
I need document for Disaster Recovery server for SAP? I have to configure the DR Server If you have, please share this document if possible.
Have you any cluster script ( HACMP Cluster script for SAP ECC 6.0 ) ?
Thanks & Regards,Hello, I'm doing a "Plant ECC6 to do a test disatre / Recovery.
During the installation, I would use the same <sidadm> existing as it is in the PRD.
If I tell you to install it during the same <sidadm> it will overwrite what already exists, or do I just enter the password of existing <sidadm>? -
Disaster Recovery Scripts for Managed Server MSI Startup
I am trying to get some custom start scripts created for each of my managed servers in the event the admin console is down or server gets hosed. We use nodemanager to start the managed servers in a Windows environment. I have about 8 managed servers and they all use the same nodemanager classpath but all have different server start arguments (different memory settings, etc....) so I need to make different custom scripts for each.
Verbose Garbage Collection to Determine Heap Size .....this thread by Jay has been very helpful but so far I am just getting kicked back to the syntax screen like something is wrong in my script. Attached is the script and the output when I run it. Any help would be appreciated...thanks.
startManagedFPCE1.cmd contents
java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=beaadmin -Dweblogic.management.password=beaadminxxx -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\deprecated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
Results of running above script:
C:\Oracle\Middleware\user_projects\domains\SIT11\servers\FPCE1>java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=b
eaadmin -Dweblogic.management.password=beaadminsit11 -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle
\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\
sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\M
iddleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\dep
recated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-server to select the "server" VM
-hotspot is a synonym for the "server" VM [deprecated]
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options"bharat nagwani" <[email protected]> wrote:
>
Hi,
Configuration: Weblogic 8.1SP2 on Windows 2000, 1 admin server and 14
managed
servers
whats the right way from these 2 scenarious to create a domain on managed
server
1. create domain on managed server using configuration wizard. Then point
to this
domain from administration server remote start tab(root directory). This
is what
we do so far.This is the best way to create managed servers for your domain.
>
2. Just enter user_projects/domains folder/$domain name$ in remote start
tab(root
directory)
on admin server console and when you start the managed server from
admin console
the domain folder and files will be created.
Yes, the managed server is started in this case at the root directory you specified.
The difference is in the
1. first case we see all scripts like startManagedWeblogic, setenv, boot.properties
etc
this may help(we still dont know) if one wants to bring up managed
server
manually using
startManagedServer.bat without using node manager.Yes, that is correct. You will need to edit the startManagedServer.bat to include
the admin server URL, username and paswword..
>
2. second case only 2-3 files get created like msi-config.xml and SerializedSystemIni.dat
Basically first case is superset of second case.
What is the experience of people in this regard?
thanks much
bharat -
Can Auto Recovery be disabled in InDesign CC for PC?
I have InDesign running on a server and its sole purpose to is create previews of ID documents for my Digital Asset Management system. The auto recovery halts previews from being made through the DAM and really slows down my system. Isn't there a way I could disable document recovery entirely, since it's not actually helping me in this case?
I can assure you that it's a legal, licensed copy of the CC! My DAM just picks up activity from our production server and creates thumbnail previews of our ID documents.
Thanks for your input! -
Simple UCCX script for IVR,Welcome message then press 1 and press 2
Dear Experts;
I have uccx 10.5.
I want to write a simple IVR script as below.
Step-1- Welcome message.with press 1 for Sales and Press 2 for Marketing
step-2 User Press 1 then transfer the call to Sales Skill Group.
Step-3 User press 2 then transfer the call to Marketing Skill group.
My doubt is how to accept when user press 1 and match the value and then transfer the call to that skill group.
Really appreciate any link or script for this.
Regards
DebashisDear Martyn;
Thanks a lot that was very nice and valuable information.
just want to ask which palette i have to use to save the value 1 or 2 when user press 1 or 2.
I know using Menu we can create different Menu option.
After user press 1 it will go SALES skill group and if press 2 Go MARKETING Skill group.
Appreciate if you can help me in this regard.
Regards
Debashis -
I'm working on a pilot for an educational DVD with a simple quiz.
The idea is to match a word in the left column with another word in the right column. E.g. in the quiz Opposites, the first 'question' is the word 'Large'. From the other column the viewer has to select 'Small' from among 5 other words. When the selected word is correct, you automatically proceed to question 2; if you selected the incorrect word, you have to try again.
Can anyone give me a hint in the right direction and approach? Thanks...
G Mac OS X (10.4.8)There can be a few ways to approach this - not sure if you want people to be able to navigate back to column 1 after they select the column 1 choice ( or do you meean there is just one selection in column 1?)
Going with the assumption there is just one thing in Column 1 (just Large) and Coolumn 2 has the 5 choices, the general way is as follows:
Make the buttons in order over the choices
Then this script (My comments italics) which is attached as the action for each button
// moves the value of the button which was selected, which is SPRM 8 into a GPRM. I just happen to choose GPRM 0. Make sure the buttons are made in order from top to bottom when you create them, or the buttons will have different values
mov GPRM 0, SPRM 8
// SPRM 8 is in multiples of 1024, such as 1024, 2048, etc. Makes them 1-5 to make it easier to work with
div GPRM 0, 1024
// assume button 4 covers the proper answer, if correct goes to where you want the user to go, otherwise jumps back to the menu for the question
jump MenuQuestion 2: if (GPRM 0 = 4)
Jump MenuQuestion 1
So the whole script is:
mov GPRM 0, SPRM 8
div GPRM 0, 1024
jump MenuQuestion 2: if (GPRM 0 = 4)
Jump MenuQuestion 1
Maybe you are looking for
-
I recently have started using iCloud for Mail on both my laptop (MacBookPro, OSX 10.8.5) and my smartphone (iPhone4, iOS7.1.1). I understand that with iCloud mail is stored in the cloud. Is there a way of erasing a message from either the laptop or
-
I have a cllegue who sends me pdfs created in Word 2011. When I cut and paste the copy into InDesign eac word comes up as an item and list each with a para return. When running a test on the doc it tells me it has no tags but will still not add them
-
Hi, This is the first time that I use this Iphoto to create a book. Now that I have done everything , When I purchase my book it redirect me to Apple France. But I'm from Canada and I do not want to buy from France, what do I do wrong ? Also, what is
-
Enable contact photo in iMessage
Hi to everyone, this saturday i went to an Apple Store to buy a new iPhone 6. In the iPhone 6 (not plus) exposed on the counters in the store the iMessage app had the photo of the contacts near each message of the conversation. To explain better insi
-
Hello. I am trying to distribute a compiled labview program on Ubuntu linux machines. However, I can't seem to get the Labview Run Time Enviroment to install on Ubuntu in order to run the executable. Has anyone managed to do this? I have tried using