Need help Form Scripts
I am trying to create a page that would have the client
request a username and login that would be predetermined by site
owner. (he wants to use two specific words only that he created).
The client would have to email him to ask for these words before
being able to his gallery page. I created the form in dreamweaver
but do not know how to find script to actually put a his username
and passwords into it. I also don't know how to set up the "submit"
button to go to the page that is only able to access with the
password. I don't know how to activate this to actually work and do
the functions that I want it to do. Any help???
Hello,
If the login and password is going to be the same for
everyone, just two
words, you don't need a database.
You could just have the host password protect the directory
for you.
When the user clicks a link to a page in that directory, a
login dialog box
pops up.
Call your Host's tech support, check out their FAQ online or
look at your
account and try to find Control Panel or an icon that say's
"Password
Protect Directory".
-OR-
You can also just use some server side script, no database
needed.. You just
need to find out what server side language your hosting plan
supports. If
you go this way, just post again here with the server side
language you need
to use.
Take care,
Tim
"ljdiscount" <[email protected]> wrote in
message
news:fmbgs0$pne$[email protected]..
>I am trying to create a page that would have the client
request a username
>and
> login that would be predetermined by site owner. (he
wants to use two
> specific
> words only that he created). The client would have to
email him to ask
> for
> these words before being able to his gallery page. I
created the form in
> dreamweaver but do not know how to find script to
actually put a his
> username
> and passwords into it. I also don't know how to set up
the "submit"
> button to
> go to the page that is only able to access with the
password. I don't
> know how
> to activate this to actually work and do the functions
that I want it to
> do.
> Any help???
>
Similar Messages
-
Need Help with scripting for Automator/AppleScript.
Hi everybody,
I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
and example being:
example.jpg
(when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
I am using it for application specific files.
Kind regards,
Pete.
iBook G4; 60GB Hard Drive, 512MB RAM, Airport ExtremeOpen the Script Editor in the
/Applications/AppleScript/ folder and enter the
following:
on open(the_file)
tell application "Finder"
set name of the_file to "Image"
end tell
end open
Save this script as an application.
(11347)
this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
I am also given the option of editing the script or just quitting.
thanks for your help -
Need Help in scripts relating to subscripts
I have encountered a HUGE problem in flash and I desperately
need urgent help from flash experts out there so please hear me
out. Here it goes >> I am currently working on ‘fill in
the blanks’ questions and answer for my chemistry project and
the thing is , I need to ENABLE other people who are going to do
the questions I created to type ‘subscripts’ for
example ‘3 2’. Now I have seen similar questions from
other flash documents is also requires entering of
‘subscripts’ and they used some script in the flash
document, WHICH is the user( person who is answering the questions)
can type in normal fonts as well as subscripts by HOLDING down ALT
key and typing the number, and the subscript would appear in the
selected INPUT BOX. i have attached an image below for better
understanding of my problem.
http://img239.imageshack.us/my.php?image=problemyd5.jpg
apart from that, i am also looking for a script that i can insert
into my 'check' button at the bottom of the page to check the
answers. To be specific, the script must be able to check the
answers WHICH also includes SUBSCRIPTS for example '
HNO[SIZE="2"]3[/SIZE] or H[SIZE="2"]2[/SIZE]O ' as I fail to obtain
the first script i mentioned which is the script that enables one
to type in normal fonts AND subscripts by holding ALT key or
something similar to that, i also fail to come up with a proper
script for my 'check' button to check my answers. I hope readers of
this passage are able to understand what i am trying to say here as
well as help me solve my dilemma that i am facing. IN a nutshell, i
am need 2 types of scripts now .....which are
1) script that enables one to type in subscript by holding
down the 'alt' key and typing the letter at the same time 2)and the
second script which when embedded to my 'check' button, when
CLICKED will be able to check the answers which includes
SUBSCRIPTS.
if you need any further information to have a better
understanding, do tell and i will provide more pictures or even
flash documents.No I am just using SET DATE MASK command to make it appear as required but that is changing my value at the other window also so I dont want this date format anywhere else other than footer.
Thanks
Sudharshan -
Need Help in scripts relating ot subscripts
I have encountered a HUGE problem in flash and I desperately
need urgent help from flash experts out there so please hear me
out. Here it goes >> I am currently working on ‘fill in
the blanks’ questions and answer for my chemistry project and
the thing is , I need to ENABLE other people who are going to do
the questions I created to type ‘subscripts’ for
example ‘3 2’. Now I have seen similar questions from
other flash documents is also requires entering of
‘subscripts’ and they used some script in the flash
document, WHICH is the user( person who is answering the questions)
can type in normal fonts as well as subscripts by HOLDING down ALT
key and typing the number, and the subscript would appear in the
selected INPUT BOX. i have attached an image below for better
understanding of my problem.
http://img239.imageshack.us/my.php?image=problemyd5.jpg
apart from that, i am also looking for a script that i can insert
into my 'check' button at the bottom of the page to check the
answers. To be specific, the script must be able to check the
answers WHICH also includes SUBSCRIPTS for example '
HNO[SIZE="2"]3[/SIZE] or H[SIZE="2"]2[/SIZE]O ' as I fail to obtain
the first script i mentioned which is the script that enables one
to type in normal fonts AND subscripts by holding ALT key or
something similar to that, i also fail to come up with a proper
script for my 'check' button to check my answers. I hope readers of
this passage are able to understand what i am trying to say here as
well as help me solve my dilemma that i am facing. IN a nutshell, i
am need 2 types of scripts now .....which are
1) script that enables one to type in subscript by holding
down the 'alt' key and typing the letter at the same time 2)and the
second script which when embedded to my 'check' button, when
CLICKED will be able to check the answers which includes
SUBSCRIPTS.
if you need any further information to have a better
understanding, do tell and i will provide more pictures or even
flash documents.No I am just using SET DATE MASK command to make it appear as required but that is changing my value at the other window also so I dont want this date format anywhere else other than footer.
Thanks
Sudharshan -
Need help writing script for Digital DAQ
Hello,
I am trying to write an aquisition program for digital input coming from a hall sensor. I will be passing a magnet over a hall sensor on a motor and want to record the number of rotations. I have pasted together a script based on various websites, but it isn't functioning the way I want. I would like to be able to collect data points indefinately, or fixed, and then print out the resulting count. I have attepted to use the ctypes wrapper in Python. The NI functions remain unchanged though, so if you don't know Python it shouldn't be a problem to read. I am using a NI PCI-6503.
NI PCI-6503
NI PCI-6503
NI PCI-6503
The code:
# C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk\Acq-IntClk.c
import ctypes
import numpy
nidaq = ctypes.windll.nicaiu # load the DLL
# Setup some typedefs and constants
# to correspond with values in
# C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
# the typedefs
int32 = ctypes.c_long
uInt32 = ctypes.c_ulong
uInt64 = ctypes.c_ulonglong
float64 = ctypes.c_double
TaskHandle = uInt32
# the constants
DAQmx_Val_ChanForAllLines = int32(0)
def CHK(err):
"""a simple error checking routine"""
if err < 0:
buf_size = 200
buf = ctypes.create_string_buffer('\000' * buf_size)
nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
# initialize variables
taskHandle = TaskHandle(0)
max_num_samples = 1000
# array to gather points
data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
# now, on with the program
CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
CHK(nidaq.DAQmxCreateDIChan(taskHandle,'Dev1/port1/line1',"", DAQmx_Val_ChanForAllLines))
CHK(nidaq.DAQmxStartTask(taskHandle))
read = int32()
CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),DAQmx_Val_GroupByChannel,data.ctypes.data,max_num_samples,ctypes.byref(read),None))
print "Acquired %d points"%(read.value)
if taskHandle.value != 0:
nidaq.DAQmxStopTask(taskHandle)
nidaq.DAQmxClearTask(taskHandle)
print "End of program, press Enter key to quit"
raw_input()
This script returns "Acquired 1 points" immediately, regardless of how many times the hall sensor has been switched.
I apologize for the sloppy code, but I understand very little of the underlying principles of these DAQ functions, despite reading their documentation. Seeing as how the code does not return an error, I am hoping there is just a minor tweak or two that will be farily obvious to someone with more experience.
ThanksHey Daniel,
Most of this script is from http://www.scipy.org/Cookbook/Data_Acquisition_with_NIDAQmx.
I needed to run the ReadDigitalU32 function in Python loop because my DAQ device did not support timed aquistion and I don't have LabView.
import numpy
import time
import ctypes
nidaq = ctypes.windll.nicaiu # load the DLL
# Setup some typedefs and constants
# to correspond with values in
# C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
# the typedefs
int32 = ctypes.c_long
uInt32 = ctypes.c_ulong
uInt64 = ctypes.c_ulonglong
float64 = ctypes.c_double
TaskHandle = uInt32
# the constants
DAQmx_Val_Cfg_Default = int32(-1)
DAQmx_Val_Volts = 10348
DAQmx_Val_Rising = 10280
DAQmx_Val_FiniteSamps = 10178
DAQmx_Val_GroupByChannel = 0
DAQmx_Val_ChanForAllLines = int32(0)
# initialize variables
taskHandle = TaskHandle(0)
max_num_samples = 10000
data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
read = uInt32()
bufferSize = uInt32(10000)
def CHK(err):
"""a simple error checking routine"""
if err < 0:
buf_size = 200
buf = ctypes.create_string_buffer('\000' * buf_size)
nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
# Start up DAQ
CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
CHK(nidaq.DAQmxCreateDIChan(taskHandle,"Dev?/port?/line?","", DAQmx_Val_ChanForAllLines))
CHK(nidaq.DAQmxStartTask(taskHandle))
#initialize lists and time 1
t1 = time.time()
times = []
points = []
while True:
try:
CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),
DAQmx_Val_GroupByChannel,data.ctypes.data,uInt32(2*bufferSize.value)
,ctypes.byref(read), None))
t2 = time.time()
#data[0] is the position in the numpy array 'data' that holds the value aquired
#from your device
points.append(data[0])
times.append(t2 - t1)
t1 = time.time()
#Choose time interval between data aquisition
time.sleep(.02)
except KeyboardInterrupt:
break
#process the lists of points and time intervals as you so choose
Thanks for the help!
Paul -
Need help with scripting Jumps
Hi - hope someone can help me. I'm in over my head. I have a long (4 hrs.) commercial video track separated by dozens of markers (placed earlier in FCP). All my menu buttons work fine, but I want to include a button which serves as an "In-Store" demo loop featuring about 30-45 minutes of highlights (meaning favorite clips) looped endlessly for in-store sales. I can't seem to get the right combination going. New user of DVDSP but not of Mac. I managed to get it to jump to a marker, but so far, every attempt results in the program not recognizing the end of a segment. Struggling with the manual and need an expert to simplify things.
Hi Hal -
Just perfect. Thanks very much, Hal. I'd entirely skipped the "Stories" sections of my tutorials and manual automatically assuming (from prior experiences with Flash, SuperCard, etc.,) that scripting would be the solution. (Plus I'm rushing to complete the thing.) The best part is that it this extremely easy to do. If I need to shorten a clip I can just add a separate marker in DVDSP with no apparent down side. Stories are a sweet feature, and I'm sure I'll be using them over and over with each new production.
So, you've just scored the "Expert" ranking in my book and I'm wondering you'd like to make it a daily double... Here's the next and hopefully last sticking point in my little project: I set up multiple angles in several clips in FCP, which don't seem to display in DVDSP. They might, I just can't tell from the sim. And yes, I'm aware that importing separate tracks and re-compositing them in DVDSP is a way to make angles happen, but I already did all this once, with great care, and I'm wondering how to get the Final Cut angles to change in the simulator in DVDSP. Any experience in these areas?
Thanks again for the "stories" advice. Right on the money. -
There is request to dump every days data from one table into text file. I need to write shell script and sql script for that
There are two tables (INSPECTION_RESULTS and NJAS) under NJSHDOWN schema. The table NJAS is child table of INSPECTION_RESULTS. The key is RES_SYS_NO. The script should get the MIN and MAX RES_SYS_NO from INSPECTION_RESULTS table for yesterdays date. Then use these RES_SYS_NOs to fetch data from NJAS table. I then need to create comma delimited file for following columns. Also, to add the logic in shell script to check for oracle error (ORA-). If there is error, it should send email to DBAs group(first test it with your email address).
Following columns are needed from NJAS table.
NJA_RES_SYS_NO
NJA_TEST_REC_NO
NJA_LIC_ST_ID
NJA_ETS_ID
NJA_SW_VER
NJA_TECH_ID
NJA_VIN
NJA_LIC_NO
NJA_LIC_JUR
NJA_LIC_SRC
NJA_MODEL_YR
NJA_MAKE
NJA_MODEL
NJA_VHCL_TYPE
NJA_BODY_STYLE
NJA_CERT_CLASS
NJA_GVWR
Okay- here is the script that I have so far but now, I am stuck. I cannot figure out how to get my script to finish output to comma delimited file and to check for oracle errors. Can anyone help me out here? Thanks!
Initial script:
SELECT NJA_RES_SYS_NO, NJA_RES_SYS_NO, NJA_TEST_REC_NO,
NJA_LIC_ST_ID,
NJA_ETS_ID,
NJA_SW_VER,
NJA_TECH_ID,
NJA_VIN,
NJA_LIC_NO,
NJA_LIC_JUR,
NJA_LIC_SRC,
NJA_MODEL_YR,
NJA_MAKE,
NJA_MODEL,
NJA_VHCL_TYPE,
NJA_BODY_STYLE,
NJA_CERT_CLASS,
NJA_GVWR,
NJA_ASM_ETW,
NJA_ETW_SRC,
NJA_NO_OF_CYL,
NJA_ENG_SIZE,
NJA_TRANS_TYPE,
NJA_DUAL_EXH,
NJA_FUEL_CD,
NJA_VID_SYS_NO,
NJA_VRT_REC_NO,
NJA_ARMSTDS_REC_NO,
NJA_RSN_F_N_TESTABLE,
NJA_DYNO_TESTABLE,
NJA_CURR_ODO_RDNG,
NJA_PREV_ODO_RDNG,
NJA_PREV_TEST_DT,
NJA_TEST_TYPE,
NJA_TEST_START_DT,
NJA_TEST_END_TIME,
NJA_EMISS_TEST_TYPE,
NJA_TEST_SEQ_NO,
NJA_LOW_MILE_EXEMP,
NJA_TIRE_DRY,
NJA_REL_HUMID,
NJA_AMB_TEMP,
NJA_BAR_PRESS,
NJA_HCF,
NJA_GAS_CAP_ADAP_AVL,
NJA_GAS_CAP_REPL,
NJA_OVERALL_GAS_CAP_RES
FROM NJAS
WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
(SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE SYSDATE=SYSDATE-1)
Thanks!
ScottThanks here is thus far what I have, focusing on the sql script part which is the trickiest:
-- writedate.sql script for njas
SELECT NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||NJA_SW_VER||','||NJA_TECH_ID||','||NJA_VIN||','||NJA_LIC_NO||','
||NJA_LIC_JUR||','||NJA_LIC_SRC||','||NJA_MODEL_YR||','||NJA_MAKE||','||NJA_MODEL||','||NJA_VHCL_TYPE||','||NJA_BODY_STYLE||','||NJA_CERT_CLASS||','||
NJA_GVWR||','||NJA_ASM_ETW||','||NJA_ETW_SRC||','||NJA_NO_OF_CYL||','||NJA_ENG_SIZE||','||NJA_TRANS_TYPE||','||NJA_DUAL_EXH||','||NJA_FUEL_CD||','
|| NJA_VID_SYS_NO||','|| NJA_VRT_REC_NO||','|| NJA_ARMSTDS_REC_NO||','|| NJA_RSN_F_N_TESTABLE||','|| NJA_DYNO_TESTABLE||','||
NJA_CURR_ODO_RDNG||','|| NJA_PREV_ODO_RDNG||','|| NJA_PREV_TEST_DT||','|| NJA_TEST_TYPE||','||
NJA_TEST_START_DT||','|| NJA_TEST_END_TIME||','|| NJA_EMISS_TEST_TYPE||','|| NJA_TEST_SEQ_NO||','
||NJA_LOW_MILE_EXEMP||','||NJA_TIRE_DRY||','|| NJA_REL_HUMID||','|| NJA_AMB_TEMP||','||NJA_BAR_PRESS||','|| NJA_HCF||','||
NJA_GAS_CAP_ADAP_AVL||','|| NJA_GAS_CAP_REPL||','|| NJA_OVERALL_GAS_CAP_RES
FROM NJAS
WHERE NJA_RES_SYS_NO IN (SELECT MIN(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS WHERE NJA_RES_SYS_NO IN
(SELECT MAX(NJA_RES_SYS_NO) FROM INSPECTION_RESULTS, (SELECT SYSDATE-1 FROM DUAL))
=====================
Output thus far:
======================
NJA_RES_SYS_NO||','||NJA_TEST_REC_NO||','||NJA_LIC_ST_ID||','||NJA_ETS_ID||','||
4,,04-MAR-03,R,27-MAR-03,27-MAR-03,O,,N,,,,,,,,Z
10871630,5274,CIF000025,CL002901,4.13,INL004025,1B7GL22X7WS569744,VK765K,NJ,B,19
98,DODGE,DAKOTA,T,3,TIER0,5200,3750,M,06,3.9,A,N,GASO,1446865,14663,3019,,Y,4654
5,,21-MAR-03,I,21-MAR-03,21-MAR-03,O,,N,,,,,,N,N,P
How do I strip the comments from the output file? Also not sure if my subquery is performing the output correctly. Thanks.
Scott -
Need help creating script for specific instance
I am having trouble coming up with a working script for this part of the pricing form I am editing. I am trying to get the calculation fields to the right to change and populate in the respective field based on the selection in the Material Type dropdown. Would it be less of a headache if I made another text field to calculate the LE versions separately instead of trying to merge them into one field? I have attached screenshots below to give you an example of what I'm working with. Any help with this is greatly appreciated!
Script I'm tinkering with at the moment:
//Dropdown37 = Quantity Field
//Type of Door IB = Material Type dropdown
var x = this.getField("Type of Door IB").value;
if ( x = 1468 ) event.value = x * this.getField("Dropdown37").value;
if (x = 1202) event.value = x * this.getField("Dropdown37").value;
else event.value = 0;The comparison operator in JS is "==", so change this line:
if ( x = 1468 )
To this:
if ( x == 1468 )
(as well as the other if-statement). -
Need Help With Script Skipping Word Before Variable
I borrowed and modified a skip I found here: http://forums.adobe.com/message/4808804 with code borrowed from elsewhere.
I noticed that it seems to run fine, but it skips any word that appears right before a variable. The point of the script is to find any text using an italic override or bold override, and replace the override with the appropriate character format from the catalog.
Can someone tell me why the code below skips words before a variable? I am sure it is a simple thing, but I am teaching myself Extendscript, and only recently started the attempt/
Thanks,
Marc
var doc = app.ActiveDoc;
removeOverrides (doc)
function removeOverrides (pDoc)
var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
var vBoldFmt=pDoc.GetNamedCharFmt ('bold')
var vItalicFmt=pDoc.GetNamedCharFmt ('italic')
initFA_errno ();
var vTextLoc = new TextLoc(vDocStart,0);
var vFindParams=findOverrideParams (pDoc);
while (FA_errno==Constants.FE_Success)
var vTextRange=pDoc.Find(vTextLoc,vFindParams);
if (vTextRange.beg.obj.ObjectValid())
var vTextItems=pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)
if (vTextItems.length==!0 )
$.writeln(vTextItems.String)
if (vTextItems[0].idata==Constants.FTF_WEIGHT)
pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps())
if (vTextItems[0].idata==Constants.FTF_ANGLE)
pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps())
}// else (Log (vLogFileName, '\nERROR: No items were found in the text format array but format override was found: '+pDoc.Name))
vTextLoc = vTextRange.end
vDocStart=vDocStart.NextPgfInFlow;
function findOverrideParams (pDoc)
var vFindParams = AllocatePropVals(1);
vFindParams[0].propIdent.num = Constants.FS_FindObject;
vFindParams[0].propVal.valType = Constants.FT_Integer;
vFindParams[0].propVal.ival = Constants.FV_FindCharacterFormatOverride;
return vFindParams;
function initFA_errno()
app.GetNamedMenu("!MakerMainMenu"); //If this fails, you've got bigger problems
return;It looks like home assignment. Home assignment are not very welcome here. I can help you only a little. It's very simple application, but if you dont know basics in OO, you are in trouble.
Create these three files, even empty with all points you need to accomplish in them as comments.
Think about gui you need. If you do not know how to make menus and other fancy gui you can do only with one main panel with a few buttons and JOptionPanes appearing for every input.
Buttons for each task:
1. get available rooms; press and see JOptionPane telling what rooms are empty (information message)
2. book: JOptionPane asking how many guests, you input, it checks for availability, if available rooms are not enough (or beds) another OP tells that it's impossible, if enough - offer to input room number, you input, check if the room is booked, then offer to input name, then offer quit.
3. unbook.
4.get report
Once you design how it looks, every step becomes very simple. All methods you need to implement are simple array manipulations. Make report last, because it's just collection of printouts from methods you've already done.
In book, you need to look for definitions of constructor, passing arguments to methods, returning results from methods, creating object with "new" operator, simple event handling, JOptionPane documentation and examples, which are in every decent textbook.
Do not panic, it's really simple but rather tiresome application, if you do it by yourself you learn almost everything necessary to start programming in java. -
Need help with script to save iPhoto RSS pix to album
Hi all. I'm a very green Applescripter needing some pointers.
Goal: Create a script to "save" pictures from subscribed RSS feeds in iphoto (they get automatically deleted when they fall off the RSS feed).
I can "add" or "duplicate" the images from the subscribed album to my "archive" album but I can't figure out how to tell if I've already copied an image or not. Is there some way to say something like:
if RssPhoto exists in ArchiveAlbum then
don't copy
else
do copy
end if
I tried doing a file name comparison but iphoto adds a incremental number to the filename so it ends up failing the comparison.
Thanks for any help.'I tried doing a file name comparison ...' - please show your code, and respective RSS url(s).
-
Need Help with script For Bulk Users Name & Description Updation
Hi Guys,
I have below requirement :
We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).
1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required. )Attached the screenshot)
Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.
Any help will be highly appreciated,
Thanks,
Suvajit BasuHi,
I dont have any script but seeking for a help.
Thanks,
Suvajit Basu
In that case you should read this first:
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
Prewritten scripts can be found in the repository (Brent has already suggested one for you):
https://gallery.technet.microsoft.com/scriptcenter
If you can't find what you need and you can't write your own, you can request a script here:
https://gallery.technet.microsoft.com/scriptcenter/site/requests
Let us know if you have any specific questions.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Need Help in scripts...its urgent
Hi ,
we have RVADOR01 a print program
RVORDER01 - Form Name and the transaction VA03 to disp.
How the data is flown to the print program,,after selecting the required output tupe in the VA03. How the print rogram decides which output type is selected by the user ??
How can i debug the print program from the VA03 to check the flow/?
Best answers r rewardedHi Mahesh ,
Please check the transaction code 'NACE' . Here you will find the settings done for various output types ...for each output type it is defined which print program will be used and that print program will call which layout / sapscript or smart form .
Regarding ..how system decides which output type to be selected ..that is defined in customising for output determination in respective config areas in IMG . Once that output type is decided by the system it checks your config in NACE to determine what print program & Layout combination is to be used.
Regards ..where it gets data ..the call in the print program is fed with the document no ..in that print program values are extracted based on these document no and then the output is passed to the layout format.
The NACE is used mainly for logistics area ..for finance instead of nace there are respective config nodes available to mention the calling program and form layout ..for this you need to take help of functional person ..
Hope this helps buddy .. -
Need Help with script: CS4 Flash Buttons
I created a 3 button bar using Flash CS4. It will link to three different HTML pages in a website. This is one of the three scripts I have on the first frame of the main timeline, the code is for one of the buttons, the other two are really the same with differing button numbers. This code does now open the page up in a NEW BROWSER window, but I would like the page to open in the existing window and not in a new one. The 3 buttons also have down states identified by a frame label of “hold”, I would like the script to set the hold frame or down state to be displayed when the proper page is loaded in the browser . Will someone please suggest to me what I need to add to this script to achieve this, your time and effort will be appreciated.
stop();
button1_btn.addEventListener(MouseEvent.CLICK, illus);
function illus(e:MouseEvent):void {
var targetURL:URLRequest=new URLRequest("illustrator.html");
navigateToURL(targetURL);Thank you Todd... How about the code to display the Down stage when displayed,
got any thoughts on this.
Thanks'
Bill -
Need help forming randomly colored lines, that are equidistant(ex included)
My assignment: The
top-right cell requires horizontal lines that are equidistant in the cell. Each line is 10 pixels apart. Additionally, the lines need to be colored randomly in any possible red, green and blue range.
example: http://i68.photobucket.com/albums/i35/stxda/example.jpg
(example of what I need to do)
what I have now: http://i68.photobucket.com/albums/i35/stxda/current.jpg
I have all the lines coded for the top right cell, but I do not know how to get the colors random. I only know how to set all the lines to one single color.
Below is my coding:
(please try this out and help me code it)
my AIM screen name is sTxDa if there are any questions/comments
import java.awt.*;
import java.applet.*;
import java.util.*;
public class Lab06G90 extends Applet
public void paint(Graphics g)
// BELOW is for the top left cell and box (which is int a and the box's frame)
int width = 800;
int height = 600;
g.drawRect(10,10,width,height);
g.drawLine(410,10,410,610);
g.drawLine(10,310,810,310);
for (int a = 20; a <= 400; a += 10)
g.drawLine(a,20,a,290);
// BELOW is for the top right cell, which is int b. so far
// i've only done the lines, and not yet the random colors
for (int b = 10; b <= 290; b += 10)
g.drawLine(420,b,800,b);
}but I do not know how to get the colors randomUse the Random class.
-
Need Help in Scripting Turning Off JPEG Processing in ACR
Back in 2005 (Win PS CS) I wrote a javascript script which allows me to batch add captions, headlines, author, etc to JPEG image files. When CS3 came along I found I needed to turn off ACRs JPEG processing before I ran the script and on again after the script ran. I now need to do the same thing for PS CS4 and soon CS5. I have tried to create two (one off - another for on) actions to do that but they don't appear to work. Can this be done by an action? If it can done by an action can it be scripted?
I want to thank Michael L. Hale for the great code below which worked in PS CS3:
// Oct 3, 2007 this code from from Michael L Hale - Adobe Forums - Photoshop Scripting
// This code allows one to determine and/or set the state of jpeg file handling in ACR
// (i.e. get current user setting for edit->pref->file handling->file compatibility->prefer Adobe Camera Raw for JPEG files.
// Usage: cameraRawJPEG(bool)
// JpegState = cameraRawJPEG(); // true if open jpegs in ACR is on, else false
// cameraRawJPEG(false); // turns OFF "open jpegs in ACR"
// cameraRawJPEG(true); // turns ON "open jpegs in ACR"
var ref = new ActionReference();
ref.putProperty( charIDToTypeID( "Prpr" ), charIDToTypeID( "FlSP" ) );
ref.putEnumerated( charIDToTypeID( "capp" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
if(bool != undefined && bool.constructor == Boolean){
var desc = new ActionDescriptor();
desc.putReference( charIDToTypeID( "null" ), ref );
var desc1 = new ActionDescriptor();
desc1.putBoolean( stringIDToTypeID( "cameraRawJPEG" ), bool );
desc.putObject( charIDToTypeID( "T " ), charIDToTypeID( "FlSv" ), desc1 );
executeAction( charIDToTypeID( "setd" ), desc, DialogModes.NO );
return executeActionGet(ref).getObjectValue(charIDToTypeID( "FlSP" )).getBoolean(stringIDToTypeID( "cameraRawJPEG" ));
Using the scriptlistener I was able to get the code below, but it doesn't work. I think for the same reason that regular actions Edit --> Preferences -->Camera Raw -->Jpeg & Tiff Handling -->Disable JPEG support doesn't work:
// ===ACR JPEG Off ====================================================
function ACR_JPEG_Off() {
var idDlt = charIDToTypeID( "Dlt " );
var desc3 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref2 = new ActionReference();
var idActn = charIDToTypeID( "Actn" );
ref2.putName( idActn, "jpeg-off" );
var idASet = charIDToTypeID( "ASet" );
ref2.putName( idASet, "Default Actions" );
desc3.putReference( idnull, ref2 );
executeAction( idDlt, desc3, DialogModes.NO );
return;Thanks Michael! I hoped you'd respond. The CS4 ACR JPEG support interface has changed from CS3, so that may be why you code doesn't work.
I don't think I copied the log file incorrectly, but I can try again. Can you please please explain your original script - I can't quite get it.
I also tried just using an action - Edit-->Preferences-->Camera Raw-->JPEG & Tiff Handling -->Disable JPEG support but that doesn't work. I wonder if I need to set both the JPRG and Tiff settings to make it work???
Thanks,
Steve
Maybe you are looking for
-
Standard report to check MRP status
Hi, Is there any standard reports to check the materials based on the MRP status? (Eg: Materials that are under A(Free and avilable) etc etc) Im using SAP 6.0 Thanks in advance.
-
Details to share my screen in iMessage is not working
When clicking the details at first, saw that a sign is showing... but other person doesn't show any message from me, and I just turned it off. Since then, the sharing is not working, and as same as other iPhone Users... Who knows to solve this error?
-
External hard drive suddenly not readable
Help! I have an external 160GB hard drive (LaCie; Firewire connection) that has suddenly stopped mounting on my desktop. I have used this drive with no problem for ages and with OSX 10.4. Now I get the message: 'The disk you inserted was not readable
-
hi, Is there any Bapi or BDC for me12.
-
I have just upgraded a 4215 sensor to ver 5, it was a replacement so I started afresh. I ran the setup and then entered IDM, under Interfaces I can only see one I/F fa0/1 the management I/F the monitoring doesn't appear, I have re-checked the sensors