Jump to content
rm4453

_IEFormElementSetValue Help!

Recommended Posts

rm4453

I am trying to get my code to be loopable based off of a variable count for example number of images selected variable is named $imgCount = 6 (meaning there were 6 images selected) I need to know if this will work assuming all images paths are stored in the gui created...

$image1

$image2

$image3

$image4

$image5

$image6

That would be the variable names that would equal the gui for guictrlread ....

$ImUploadCount = 0
$imageCounter = 6 ; has been set by incrementing every time an image was picked via gui button 1-6 we will assume it equals 6

Func Upload()

Do
$imUpload = $ImUploadCount + 1

_IEFormElementSetValue($browsefield, GUICtrlRead($Image & $imUpload))

Until $imageCounter = $imUpload

So Essentially will $Image & $imUpload provide $image1, $image2, $image3, etc... when it sets the value then uploads? or will that cause a problem...? "is there a better way to do this?

Share this post


Link to post
Share on other sites
Dgameman1
$ImUploadCount = 0
$imageCounter = 6 ; has been set by incrementing every time an image was picked via gui button 1-6 we will assume it equals 6

Func Upload()

Do
_IEFormElementSetValue($browsefield, GUICtrlRead($Image & $imUpload))
$ImUploadCount += 1
Until $imageCounter = $ImUploadCount

 

Share this post


Link to post
Share on other sites
rm4453
10 hours ago, Dgameman1 said:
$ImUploadCount = 0
$imageCounter = 6 ; has been set by incrementing every time an image was picked via gui button 1-6 we will assume it equals 6

Func Upload()

Do
_IEFormElementSetValue($browsefield, GUICtrlRead($Image & $imUpload))
$ImUploadCount += 1
Until $imageCounter = $ImUploadCount

 

Sweet Thanks... btw one more ? Would this work to grab the file path from a gui store it as a variable then put then upload the file on a webpage? I keep getting the error Browser security prevents SetValue of TYPE=FILE when I use _IEFormElemntSetValue so I am wondering if this would work to set the file....

 

$imUploadCount = 0
$ImageCounter = 6 ; This is set via buttons in gui based of of how many images are selected
            Do
                $imUpload = $imUploadCount + 1

                $oForm = _IEFormGetObjByName($ksl, "f-142")
                $oInputFile = _IEFormElementGetObjByName($oForm, "142")

                ; Assign input focus to the field and then send the text string
                _IEAction($oInputFile, "focus")
                _IEAction($oInputFile, "click")
                If $imUpload = 1 Then
                    Send(GUICtrlRead($Image1))
                ElseIf $imUpload = 2 Then
                    Send(GUICtrlRead($Image2))
                ElseIf $imUpload = 3 Then
                    Send(GUICtrlRead($Image3))
                ElseIf $imUpload = 4 Then
                    Send(GUICtrlRead($Image4))
                ElseIf $imUpload = 5 Then
                    Send(GUICtrlRead($Image5))
                ElseIf $imUpload = 6 Then
                    Send(GUICtrlRead($Image6))
                EndIf


                ;Find Image Description field!
                $descriptionimfield = _IEGetObjById($ksl, "d-142")
                If Not @error Then
                    ; MsgBox("Success", "Email Input Found", "Next Step!")
                Else
                    ;MsgBox("Failed", "Email Input Not Found", "Try Again!")
                    Exit
                EndIf


                ;Fill Image Description(s) field!
                If $imUpload = 1 Then
                    _IEFormElementSetValue($descriptionimfield, $Image1_Description)
                    If Not @error Then
                        ; MsgBox("Success", "Email Input Filled", "Next Step!")
                    Else
                        ;MsgBox("Failed", "Email Input Not Filled", "Try Again!")
                        Exit
                    EndIf
                ElseIf $imUpload = 2 Then
                    _IEFormElementSetValue($descriptionimfield, $Image2_Description)
                    If Not @error Then
                        ; MsgBox("Success", "Email Input Filled", "Next Step!")
                    Else
                        ;MsgBox("Failed", "Email Input Not Filled", "Try Again!")
                        Exit
                    EndIf
                ElseIf $imUpload = 3 Then
                    _IEFormElementSetValue($descriptionimfield, $Image3_Description)
                    If Not @error Then
                        ; MsgBox("Success", "Email Input Filled", "Next Step!")
                    Else
                        ;MsgBox("Failed", "Email Input Not Filled", "Try Again!")
                        Exit
                    EndIf
                ElseIf $imUpload = 4 Then
                    _IEFormElementSetValue($descriptionimfield, $Image4_Description)
                    If Not @error Then
                        ; MsgBox("Success", "Email Input Filled", "Next Step!")
                    Else
                        ;MsgBox("Failed", "Email Input Not Filled", "Try Again!")
                        Exit
                    EndIf
                ElseIf $imUpload = 5 Then
                    _IEFormElementSetValue($descriptionimfield, $Image5_Description)
                    If Not @error Then
                        ; MsgBox("Success", "Email Input Filled", "Next Step!")
                    Else
                        ;MsgBox("Failed", "Email Input Not Filled", "Try Again!")
                        Exit
                    EndIf
                ElseIf $imUpload = 6 Then
                    _IEFormElementSetValue($descriptionimfield, $Image6_Description)
                    If Not @error Then
                        ; MsgBox("Success", "Email Input Filled", "Next Step!")
                    Else
                        ;MsgBox("Failed", "Email Input Not Filled", "Try Again!")
                        Exit
                    EndIf
                EndIf


                ;Go to Next page!
                $oButtons = _IETagNameGetCollection($ksl, "input")
                For $oButton In $oButtons
                    If String($oButton.value) = "Upload File" Then
                        _IEAction($oButton, "click")
                        ;MsgBox("Success", "Login Successful!", "Login Credentials Verified!")
                        ExitLoop
                    Else
                    EndIf
                Next
                Sleep(2000)
            Until $imUpload = $ImageCounter

 

Here Is The Form Code i am Trying To Use IT On In IE

<DIV id=bodyCol1 sizcache06735652359028728="138" sizset="0"><DIV style="WIDTH: 424px; FLOAT: left; MARGIN: 0px 0px 10px">
<STYLE type=text/css>.announcement_box {
    FONT-SIZE: 14px; WIDTH: 615px; BACKGROUND: #eee; FLOAT: left; FONT-WEIGHT: bold; PADDING-BOTTOM: 10px; PADDING-TOP: 10px; PADDING-LEFT: 10px; CLEAR: left; MARGIN: 0px 0px 20px; PADDING-RIGHT: 10px
}
.announcement_box A {
    TEXT-DECORATION: none
}
</STYLE>

<DIV class=announcement_box><FONT color=#aa0000>UPDATE:</FONT> Services is now part of <A href="http://local.ksl.com/?s_cid=services">KSL Local</A> with more categories and added features.<BR>To take full advantage of KSL Local be sure to <A href="http://local.ksl.com/merchant/locations">add your business</A> today. Service ads posted outside of KSL Local will be deleted.<BR></DIV>
<DIV style="CLEAR: both"></DIV></DIV>
<DIV style="WIDTH: 424px; FLOAT: left; MARGIN: 0px 0px 10px"><!-- Hack -->
<SCRIPT type=text/javascript>
 $(document).ready( function() {
 $('#3').attr('disabled', 'disabled');
 $('#4').attr('disabled', 'disabled');
 $('.element:eq(3)').append(
 ' <a href="index.php?nid=1126">Change »</a>'
 );
 $('.element:eq(4)').append(
 ' <a href="index.php?nid=1126">Change »</a>'
 );
 } );
</SCRIPT>
</DIV>
<DIV id=bodyCol2><!-- ===================[ STORY PAGES ]================= --><!-- ===================[ STORY MEDIA ]================= --><!-- ===================[ STORY RELATED ]================= --><!-- ===================[ STORY RELATED ]================= --><!-- ===================[ STORY GALLERIES ]================= --></DIV>
<SCRIPT language=JavaScript type=text/javascript>
function addInputs()
{
    var oNewNode = document.createElement("div");
    oNewNode.setAttribute("style","padding-top: 5px;");
    document.getElementById('attr_fields').appendChild(oNewNode);
    oNewNode.innerHTML="<input type=\"text\" name=\"text[]\" id=\"text[]\" size=\"25\" \/>";
//      document.getElementById('attr_fields').innerHTML="<input type=\"text\" name=\"text[]\" id=\"text[]\" size=\"25\" \/>";
}

var mediaCount = 0;

// ================================================================
function addMedia(ctrlID,divID,inputName,limit)
{
    var name = "media_"+mediaCount;
    var oNewNode = document.createElement("div");

    oNewNode.setAttribute("style","padding-top: 3px;");
    oNewNode.setAttribute("id",name);
    document.getElementById(divID).appendChild(oNewNode);
    oNewNode.innerHTML="<input name=\""+inputName+"[]\" type=\"file\" /> <a href=\"#\" onClick=\"delMedia('"+ctrlID+"','"+name+"')\">Remove</a>";

    mediaCount++;

    if (document.getElementById(divID).childNodes.length >= limit) {
        document.getElementById(ctrlID).style.display = "none";
    }
    //      document.getElementById('attr_fields').innerHTML="<input type=\"text\" name=\"text[]\" id=\"text[]\" size=\"25\" \/>";
}
// ================================================================
function delMedia(ctrlID,name)
{
    var oNode = document.getElementById(name);
    oNode.parentNode.removeChild(oNode);

    mediaCount--;
    document.getElementById(ctrlID).style.display = "block";
}

var subName;

// ================================================================
function setCat(cName,sName,col,tId)
{
    var sNode = document.getElementById(sName);
    var cIndex = document.getElementById(cName).selectedIndex;
    var cValue = document.getElementById(cName).options[cIndex].value;

    //alert(cValue);

    //sNode.style.background = "#ddd";
    sNode.options[1] = new Option("[Loading Options]", "", false, false);
    sNode[1].selected = true;

    subName = sName;
    $('#throbber-'+subName).css('display','inline');

    //document.getElementById("rmiCmd").src = "/scripts/cat_options.php?col="+col+"&tid="+tId+"&nid="+cValue;
    $.get('/scripts/cat_options2.php', { col: col, tid: tId, nid: cValue }, setSub2, 'json');
}
// ================================================================
function setSub2(d) {
    var sub = $('#'+subName);
    $('#throbber-'+subName).css('display','none');

    if(d.result == 'error') return;

    //sub.css('background-color','#ffffff');
    sub.empty();

    sub.append('<option value="">Select a Sub-Category</option>');
    for(i in d.categories) {
        var v = d.categories[i].split('|');
        sub.append('<option value='+v[0]+'>'+v[1]+'</option>');
    }
}
// ================================================================
function setSub(doc) {
    var sNode = document.getElementById(subName);
    var rmiData = doc.getElementById('rmiData').innerHTML;
    var aItems = rmiData.split("|");
    var aVals;

    sNode.style.background = "#fff";

    //var tNode = document.getElementById("id_text");
    //tNode.value = rmiData;

    for (var x = 0; x < (aItems.length -1); x ++) {
        aVals = aItems[x].split("=");
        sNode.options[x+1] = new Option(aVals[1],aVals[0],false,false);
    }

    sNode.length = x+1;
    sNode[0].selected = true;
}
// ================================================================
function start_upload(id)
{
    $('#d-'+id).css('background-color', '#ccc');
    $('.throbber').css('display', 'inline');
}
// ================================================================
function stop_upload(id, src, desc, alt)
{
    var html = '';
    var idx = $('#u-'+id+' div.photo').length;

    if(src == false) {
        alert("Error: "+desc);
    }
    else {
        html = '<div class="photo"><div class="operations"><button class="photo-up" onclick="photo_up(this)">Move up</button> <button class="photo-down" onclick="photo_down(this)">Move down</button> <button class="photo-delete" onclick="photo_delete(this)">Delete</button></div><img class="thumbnail" src="'+src+'?filter=ksl/newhl"><div class="title"><span class="title-prefix">Photo:</span> '+alt+'</div><div><span class="title-prefix">Description:</span> <span class="description">'+desc+'</span></div><div><button class="photo-edit" onclick="photo_edit_description(this)">Edit description</button></div></div>';
        $('#u-'+id).append(html);
    }

    // clear the form
    $('#d-'+id).css('background-color', 'white');
    $('#f-'+id).get(0).reset();
    $('.throbber').css('display', 'none');
}
// ================================================================
function photo_up(e)
{
    var src = $(e).parent().parent();
    var dst = $(src.prev());

    if(dst.length == 0)
        return;

    var srcidx = src.prevAll().length;
    var dstidx = srcidx-1;

    // perform API call
    $.post('/resources/form/airlock_api.php',
            { cmd: 'move_media', source: 'airlock', aid: '71621910', from: srcidx, to: dstidx },
            function (d) {
                if(d.result != 'success')
                    return;

                $(src).insertBefore(dst);
            },
            'json'
    );
}
// ================================================================
function photo_down(e)
{
    var src = $(e).parent().parent();
    var dst = $(src.next());

    if(dst.length == 0)
        return;

    var srcidx = src.prevAll().length;
    var dstidx = srcidx+1;

    // perform API call
    $.post('/resources/form/airlock_api.php',
            { cmd: 'move_media', source: 'airlock', aid: '71621910', from: srcidx, to: dstidx },
            function (d) {
                if(d.result != 'success')
                    return;

                $(src).insertAfter(dst);
            },
            'json'
    );
}
// ================================================================
function photo_delete(e)
{
    var src = $(e).parent().parent();
    var index = src.prevAll().length;

    // perform API call
    $.post('/resources/form/airlock_api.php',
            { cmd: 'delete_media', source: 'airlock', aid: '71621910', index: index },
            function (d) {
                if(d.result != 'success')
                    return;

                src.remove();
            },
            'json'
    );
}
// ================================================================
function photo_edit_description(e)
{
    var src = $(e).parent().parent();
    var index = src.prevAll().length;

    var desc = src.find('.description');
    var odesc = desc.text();
    var ndesc = prompt('Please enter the description for the photo:', odesc);

    if(ndesc == null)
        return;

    // perform API call
    $.post('/resources/form/airlock_api.php',
            { cmd: 'edit_media', source: 'airlock', aid: '71621910', index: index, desc: ndesc },
            function (d) {
                if(d.result != 'success')
                    return;

                desc.text(ndesc);
            },
            'json'
    );
}
// ================================================================
function supports_html5_storage()
{
    try {
        return 'localStorage' in window && window['localStorage'] !== null;
    } catch (e) {
        return false;
    }
}
// ================================================================
function send_id()
{
    //20110427 - BH
    //this causes double posting in the classifieds, as it resubmits anything in the airlock a second time.

    return;

    var id;

    if(!supports_html5_storage())
        return;

    id = localStorage.getItem('ddmId');
    if(id == null) {
        id = Math.round(Math.random()*10000000);
        localStorage.setItem('ddmId', id);
    }

    $.post('/resources/form/airlock_api.php',
           { cmd: 'set_id', source: 'airlock', aid: '71621910', id: id},
           function(){},
           'json'
          );
}
// ================================================================
$(document).ready(function(){
    send_id();
});
</SCRIPT>

<STYLE type=text/css>.barBox {
    FONT-SIZE: 14px; HEIGHT: 21px; BORDER-RIGHT: #000 1px solid; WIDTH: 620px; FONT-WEIGHT: normal; COLOR: #fff; TEXT-ALIGN: center; MARGIN-LEFT: 0px; CLEAR: left; BORDER-LEFT: #000 1px solid
}
.bar1 {
    HEIGHT: 21px; BACKGROUND: url(/images/barBackRed.gif) no-repeat right top; FLOAT: left
}
.bar2 {
    HEIGHT: 21px; BACKGROUND: url(/images/barFrontRed.gif) no-repeat right top; FLOAT: left
}
.bar3 {
    HEIGHT: 21px; BACKGROUND: url(/images/barBackGrey.gif) no-repeat right top; FLOAT: left
}
.bar4 {
    HEIGHT: 21px; BACKGROUND: url(/images/barBackGrey.gif) no-repeat left top; FLOAT: left
}
.bar5 {
    HEIGHT: 21px; BACKGROUND: url(/images/barFrontRed.gif) no-repeat left top; FLOAT: left
}
.barLabels {
    FONT-SIZE: 12px; HEIGHT: 21px; WIDTH: 332px; FONT-WEIGHT: bold; COLOR: #666; TEXT-ALIGN: center; PADDING-TOP: 5px; MARGIN-LEFT: 10px; CLEAR: left
}
.barBottom {
    HEIGHT: 40px; FLOAT: left; TEXT-ALIGN: left
}
.barText {
    POSITION: relative; LEFT: -6px; TOP: 4px
}
.formDivider {
    FONT-SIZE: 14px; MARGIN-BOTTOM: 15px; BORDER-TOP: #ccc 1px solid; HEIGHT: 20px; WIDTH: 620px; BACKGROUND: #eeeeee; MARGIN-TOP: 10px; FONT-WEIGHT: bold; PADDING-BOTTOM: 0px; PADDING-TOP: 3px; PADDING-LEFT: 7px; CLEAR: left; PADDING-RIGHT: 0px
}
.imageBox {
    MARGIN-BOTTOM: 5px; MARGIN-TOP: 5px; FLOAT: left; MARGIN-RIGHT: 10px
}
.help {
    FONT-SIZE: 10px
}
.boxOk {
    MARGIN-TOP: 4px
}
.boxErr {
    BORDER-TOP: #900 1px solid; BORDER-RIGHT: #900 1px solid; BACKGROUND: #fbb; MARGIN-TOP: 4px; BORDER-BOTTOM: #900 1px solid; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; PADDING-LEFT: 2px; BORDER-LEFT: #900 1px solid; PADDING-RIGHT: 2px
}
.boxStatic {
    FONT-SIZE: 14px; MARGIN-TOP: 4px; FONT-WEIGHT: bold
}
.optionBox {
    MARGIN-BOTTOM: 8px; MARGIN-TOP: 3px
}
.submitBox {
    CLEAR: both; MARGIN: 5px 0px 0px 2px
}
.element {
    MARGIN-BOTTOM: 3px; WIDTH: 585px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; CLEAR: left; PADDING-RIGHT: 0px
}
.elementFloat {
    MARGIN-BOTTOM: 4px; FLOAT: left; MARGIN-RIGHT: 10px
}
.iLabel {
    FONT-SIZE: 12px; WIDTH: 120px; FLOAT: left; FONT-WEIGHT: normal; PADDING-BOTTOM: 0px; TEXT-ALIGN: left; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 4px 0px 0px 5px; DISPLAY: block; PADDING-RIGHT: 0px
}
.gBox {
    OVERFLOW: hidden; WIDTH: 625px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 15px; PADDING-RIGHT: 0px
}
.gTitle {
    FONT-SIZE: 18px; BORDER-TOP: #ccc 1px solid; WIDTH: 620px; FONT-WEIGHT: bold; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; PADDING-LEFT: 0px; MARGIN: 0px 0px 12px; PADDING-RIGHT: 0px
}
.gBody {
    WIDTH: 590px; PADDING-BOTTOM: 5px; PADDING-TOP: 0px; PADDING-LEFT: 20px; PADDING-RIGHT: 15px
}
IFRAME.uploader {
    HEIGHT: 0px; WIDTH: 0px; DISPLAY: none
}
.photos {
    MARGIN-LEFT: 5px; CLEAR: both
}
.operations {
    FLOAT: right
}
.operations SPAN {
    COLOR: blue
}
.photos DIV.photo {
    MARGIN-BOTTOM: 8px; HEIGHT: 77px; BORDER-BOTTOM: #ccc 1px dashed; PADDING-BOTTOM: 9px; PADDING-TOP: 2px; MIN-HEIGHT: 77px
}
.photos INPUT {
    FONT-SIZE: 10px
}
.photos IMG {
    FLOAT: left; MARGIN-RIGHT: 10px
}
.photos .title-prefix {
    FONT-WEIGHT: bold
}
.photos BUTTON {
    FONT-SIZE: 80%; BORDER-TOP: #aaa 1px solid; BORDER-RIGHT: #aaa 1px solid; BORDER-BOTTOM: #aaa 1px solid; BORDER-LEFT: #aaa 1px solid; BACKGROUND-COLOR: #e6e6e6; -webkit-border-radius: 3px; -moz-border-radius: 3px
}
.photos BUTTON:hover {
    BORDER-TOP: #0073ea 1px solid; BORDER-RIGHT: #0073ea 1px solid; BORDER-BOTTOM: #0073ea 1px solid; COLOR: white; BORDER-LEFT: #0073ea 1px solid; BACKGROUND-COLOR: #0073ea
}
.photos BUTTON.photo-edit {
    MARGIN-TOP: 3px
}
.photos .thumbnail {
    HEIGHT: 75px; WIDTH: 100px
}
.throbber {
    DISPLAY: none
}
#HomeDetails {
    DISPLAY: none
}
</STYLE>

<DIV style="CLEAR: both"></DIV>
<DIV class=gBox sizcache06735652359028728="138" sizset="0">
<DIV style="FONT-SIZE: 14px; FLOAT: left; FONT-WEIGHT: bold; COLOR: #777; MARGIN: 0px 0px 2px">KSL Classifieds - Utah's Fastest Growing Classifieds Website</DIV>
<DIV style="FONT-SIZE: 20px; FONT-WEIGHT: bold; CLEAR: left; MARGIN: 0px 0px 10px">Place a FREE Classified Ad</DIV>
<DIV style="MARGIN: 0px 0px 10px">
<DIV class=barBox>
<DIV class=bar1 style="WIDTH: 137px"><SPAN class=barText><SPAN style="FONT-SIZE: 11px">Create the Ad</SPAN></SPAN></DIV>
<DIV class=bar1 style="WIDTH: 124px"><SPAN class=barText><SPAN style="FONT-SIZE: 11px">Contact Info</SPAN></SPAN></DIV>
<DIV class=bar2 style="WIDTH: 124px"><SPAN class=barText><SPAN style="FONT-SIZE: 11px">Add Photos</SPAN></SPAN></DIV>
<DIV class=bar3 style="WIDTH: 124px"><SPAN class=barText><SPAN style="FONT-SIZE: 11px">Terms of Use</SPAN></SPAN></DIV>
<DIV class=bar4 style="WIDTH: 111px"><SPAN class=barText><SPAN style="FONT-SIZE: 11px">Thank You</SPAN></SPAN></DIV></DIV></DIV>
<DIV>
<DIV class=gBody></DIV></DIV>
<DIV id=PhotoUpload>
<DIV class=gTitle>Photo Upload</DIV>
<DIV class=gBody id=PhotoUpload>
<DIV class=element>
<P><B>Note:</B> The first photo will be used as the primary photo and will represent your ad in the listings, so make sure it's the best photo you have. Use the buttons to the right of each image to change the ordering. </P><BR></DIV>
<DIV class=element>
<DIV class=photos id=u-142></DIV>
<FORM id=f-142 onsubmit=start_upload(142) action=/resources/form/upload.php encType=multipart/form-data method=post target=i-142 jQuery170540162545780766="5"><INPUT name=nid type=hidden value=640> <INPUT name=sid type=hidden value=4516794> <INPUT name=fid type=hidden value=563456> <INPUT name=source type=hidden value=airlock> <INPUT name=aid type=hidden value=71621910> <LABEL class=iLabel for=142>File:</LABEL> <INPUT name=MAX_FILE_SIZE type=hidden value=10000000> <INPUT name=142 class=boxOk id=142 type=file><BR></DIV></FORM>
<FORM id=f-142 onsubmit=start_upload(142) action=/resources/form/upload.php encType=multipart/form-data method=post target=i-142 jQuery170540162545780766="5">
<DIV class=element><LABEL class=iLabel for=d-142>Description:</LABEL> <TEXTAREA name=d-142 class=boxOk id=d-142 style="HEIGHT: 50px; WIDTH: 400px; BACKGROUND-COLOR: white" wrap=soft></TEXTAREA> </DIV>
<DIV class=element><LABEL class=iLabel for=s-142></LABEL><INPUT name=s-142 id=s-142 type=submit value="Upload file"> <IMG width=16 height=16 class=throbber style="DISPLAY: none" src="/graphics/throbber.gif"> <BR><IFRAME name=i-142 class=uploader id=i-142 src="">
                </IFRAME></FORM>
<SCRIPT type=text/javascript>
                //$(document).ready(function () {
                    $('#f-142').submit(function () { $('#f-142').attr('target','i-142'); });
                //});
                </SCRIPT>
 <A href="index.php?nid=1126">Change »</A></DIV></DIV></DIV>
<DIV id=PhotoTips sizcache06735652359028728="138" sizset="0">
<DIV class=gTitle>Photo Tips</DIV>
<DIV class=gBody id=PhotoTips sizcache06735652359028728="138" sizset="0">
<DIV class=element sizcache06735652359028728="138" sizset="0">
<DIV style="PADDING-BOTTOM: 7px; PADDING-LEFT: 15px" sizcache06735652359028728="138" sizset="0">
<LI>Submitted images must be in JPG or GIF format.</LI>
<LI>Although all submitted images will automatically be resized to <SPAN style="FONT-WEIGHT: bold">640x480</SPAN> pixels, we recommend resizing your images to these dimensions before you upload them to avoid any potential problems. Click <A href="http://www.ksl.com/?nid=391&amp;sid=651805" target=_new>HERE</A> for instructions on how to do this.</LI>
<LI>If resizing your images, as recommended above, does not help, then try submitting the ad with no images and then add the rest later using the edit function in "My Ads".</LI></DIV> <A href="index.php?nid=1126">Change »</A></DIV></DIV></DIV></DIV>
<FORM action=/index.php?nid=640&amp;form_3=16&amp;form_4=467 encType=multipart/form-data method=post><INPUT name=nid type=hidden value=640> <INPUT name=sid type=hidden value=4516794> <INPUT name=fid type=hidden value=563456> 
<DIV class=submitBox><INPUT name=back class=submitBox type=submit value="<< Back Page"> <INPUT name=next class=submitBox type=submit value="Next Page >>"> </DIV></FORM>
<STYLE type=text/css>.mediaright {
    MARGIN-BOTTOM: 3px; WIDTH: 202px; FLOAT: right; MARGIN-LEFT: 15px
}
.medialeft {
    MARGIN-BOTTOM: 3px; WIDTH: 202px; FLOAT: left; MARGIN-RIGHT: 30px
}
.sidebarright {
    FONT-SIZE: 12px; WIDTH: 180px; BORDER-BOTTOM: #ccc 1px solid; FLOAT: right; COLOR: #000; PADDING-BOTTOM: 7px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 0px 10px 10px; PADDING-RIGHT: 0px
}
.sidebarleft {
    FONT-SIZE: 12px; WIDTH: 180px; BORDER-BOTTOM: #ccc 1px solid; FLOAT: left; COLOR: #000; PADDING-BOTTOM: 7px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px 10px 10px 0px; PADDING-RIGHT: 0px
}
.sidebarleft UL {
    PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 30px; MARGIN: 0px; PADDING-RIGHT: 0px
}
.sidebarright UL {
    PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 30px; MARGIN: 0px; PADDING-RIGHT: 0px
}
.divboxleft {
    FONT-SIZE: 12px; MARGIN-BOTTOM: 3px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; WIDTH: 202px; BORDER-BOTTOM: black 1px solid; FLOAT: left; PADDING-BOTTOM: 6px; PADDING-TOP: 6px; PADDING-LEFT: 6px; BORDER-LEFT: black 1px solid; PADDING-RIGHT: 6px; MARGIN-RIGHT: 15px
}
.divboxright {
    FONT-SIZE: 12px; MARGIN-BOTTOM: 3px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; WIDTH: 202px; BORDER-BOTTOM: black 1px solid; FLOAT: right; PADDING-BOTTOM: 6px; PADDING-TOP: 6px; PADDING-LEFT: 6px; MARGIN-LEFT: 15px; BORDER-LEFT: black 1px solid; PADDING-RIGHT: 6px
}
.divboxleft UL {
    OVERFLOW: auto; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; PADDING-LEFT: 15px; MARGIN: 0px 0px 0px 10px; PADDING-RIGHT: 0px
}
.divboxright UL {
    OVERFLOW: auto; PADDING-BOTTOM: 5px; PADDING-TOP: 5px; PADDING-LEFT: 15px; MARGIN: 0px 0px 0px 10px; PADDING-RIGHT: 0px
}
.divboxleft FONT {
    FONT-SIZE: 11px
}
.divboxright FONT {
    FONT-SIZE: 11px
}
.ksltableleft {
    FONT-SIZE: 11px; MARGIN-BOTTOM: 10px; MARGIN-TOP: 5px; FLOAT: left; MARGIN-RIGHT: 15px
}
.ksltableright {
    FONT-SIZE: 11px; MARGIN-BOTTOM: 10px; MARGIN-TOP: 5px; FLOAT: right; MARGIN-LEFT: 15px
}
.ksltable {
    BORDER-COLLAPSE: collapse
}
.ksltable TD {
    FONT-SIZE: 11px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; PADDING-BOTTOM: 2px; TEXT-ALIGN: center; PADDING-TOP: 3px; PADDING-LEFT: 7px; BORDER-LEFT: black 1px solid; PADDING-RIGHT: 7px
}
.ksltable TH {
    FONT-SIZE: 11px; BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid; BORDER-BOTTOM: black 1px solid; PADDING-BOTTOM: 2px; TEXT-ALIGN: center; PADDING-TOP: 3px; PADDING-LEFT: 7px; BORDER-LEFT: black 1px solid; PADDING-RIGHT: 7px
}
.ksltable TH {
    FONT-SIZE: 12px; FONT-WEIGHT: bold; COLOR: #fff; PADDING-BOTTOM: 4px; TEXT-ALIGN: center; PADDING-TOP: 5px; BACKGROUND-COLOR: #0b162f
}
SPAN#widgetclose:hover {
    CURSOR: pointer
}
</STYLE>
<!-- ===================[ STORY HEAD : INTRO ]================= -->
<DIV id=storyIntro></DIV><!-- HERE HERE --><!-- Google Analytics -->
<SCRIPT>
  (function(i,s,o,g,r,a,m){ i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-70949446-4', 'auto');
  ga('send', 'pageview');

</SCRIPT>
</DIV>

 

Edited by rm4453
Added Code For Webpage Form I am Trying It on.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • nooneclose
      By nooneclose
      Hey. I'm working on a new project and was wondering if there is a better way to "update" my Column E array. 
      Here is my code: 
      Local $nI  = 0                                                            ;Creates a name index of 0: nI = Name index Local $nII = 1                                                            ;Creates a name index of 1 for second loop: nII = Name Index 2 For    $iN = 0 To $IndexRows Step 1                                       ;Checks the roster for any names that appear twice      For $iN2 = 0 To $IndexRows Step 1          if $d_Names[$nI] == $d_Names[$nII] And $d_Names[$nII] <> "" Then              Local $timeSheetName = _ArraySearch($e_Names, $d_Names[$nI], 0, 0, 0, 0, 1)              ;MsgBox($MB_SYSTEMMODAL, "Found it", $d_Names[$nI] & " In column E on Row " & $timeSheetName)              Local $eI  = $timeSheetName + 1              ;ConsoleWrite($timeSheetName & @CRLF)              ;ConsoleWrite($eI & @CRLF)              ;ConsoleWrite(@CRLF)              _Excel_RangeInsert($OpenWorkbook.ActiveSheet, "E" & $eI & ":F" & $eI, $xlShiftDown)                                                                          ;Inserts a empty cell in columns E and F.              _Excel_RangeWrite($OpenWorkbook, $OpenWorkbook.ActiveSheet, $d_Names[$nII], "E" & $eI)                                                                         ;Fills the empty cell in columns E with the doubled name              $aArray_Index = 2                                           ;Array element counter              For $Index = 2 To $IndexRows Step 1                        ;Loops through every row in the Excel file unto no rows are found or a null row is found                  $Array_Value_E = _Excel_RangeRead($OpenWorkbook, Default, "E"&$Index)                  $e_names[$aArray_Index] = $Array_Value_E                ;While the code loops every value in column E is stored in the E array (updating the array)                  $aArray_Index += 1              Next              ExitLoop          EndIf      Next      $nI  += 1      $nII += 1 Next Basically, It checks a roster for people whose name appears twice then inserts a new "row" for that person because they work in two different departments.
      I have to find that name however in Column E if two appear in column D. My code works but I think it is not as efficient as it could be. 
      Any ideas on how to improve the "update" for my array?
      (once it finds the double names in Column D it then searches for that name by going name by name in the Column E array and once it finds it inserts a new row. However, the E array doesn't have that new row stored in it so I have to "update" the array to properly find the next name)
      Any and all tips would be greatly appreciated. 
       
      NOTE: Just assume I'm opening the excel file properly please do not add that code in, it only complicates your answer. 
    • Miliardsto
      By Miliardsto
      Hello Im wondering if using this https://ohtejera.github.io/ImperiusAutoIt/#started
      UDF can i make that I can control my windows application with phone?
      like for example click button Start on android phone and then something would be done in my windows app?
    • ShakeelAhmad
      By ShakeelAhmad
      I've to upload different number of photos online in different assignments. There is a problem that all photos cannot be selected at once to upload. I have to choose and upload photos one by one. For this purpose I have made a script to automate whatever I have to do manually for choosing and uploading photos one by one.
      Please see my script below and check the last "MouseClick" command. This command clicks the button to choose and upload next photo. The problem I'm facing is; the last "MouseClick" works 1 step extra when all photos have been selected and uploaded. I mean if 7 photos are to be uploaded, this command opens the box from where next photo is selected and uploaded then it again opens the box and next photo is choosen and so on.... when last photo is selected and uploaded, this button once again opens the box. When all photos are uploaded, it should not click the button to select next photo. Please suggest how can I resolve this issue.
      #include <AutoItConstants.au3> Sleep(200) HotKeySet("{ESC}","Quit") ;Press ESC key to quit Send("{ALT DOWN}") Send("{TAB}") Send("{ALT UP}") Sleep(200) Local $photos = InputBox("Question", "How many photos to upload?", "#", "", _ - 1, -1, 0, 0) ; How many photos to upload Local $selector = 0 While $photos <> $selector MouseClick("Left", 281, 238, 1) ; mouse click on very first photo in the box. if $selector = 0 Then Send("{ENTER}") ; for selecting very first photo from "open" window. Sleep(800) Else sleep(200) Send("{RIGHT " & $selector & "}") ; for selecting 2nd to onward photos from "open" window. sleep(1000) Send("{ENTER}") sleep(1000) EndIf MouseClick("Left", 495, 198, 1) ; for clicking a button to choose next photo to upload $selector = $selector + 1 WEnd Beep(1500, 300) ; beep when all photos uploaded Exit Regards,
       
      Shakeel
    • nooneclose
      By nooneclose
      How do I properly convert this to Autoit? This is a VBA macro that I recorded in Excel.
       ActiveSheet.Outline.ShowLevels RowLevels:=2 I need this to close my subtotal once it is finished. 
      any help will be greatly appreciated. 
    • iMacg3
      By iMacg3
      Hi,
      I was looking into a way to delete a registry key (not a specific value, an entire key) if it is present. I was considering using RegRead and RegDelete. However, RegRead appears to only read values, not just keys. Is there a way to delete an entire registry key if it is present? I have heard that the below function may help.
       
      #include-once ; #UDF# ======================================================================================================================= ; Title .........: Reads\Search the name of a Key\Subkey\Value ; AutoIt Version : 3.3.8.1 ; Language ......: English ; Description ...: Lists all Keys\Subkeys\Values in a specified registry key ; Author(s) .....: DXRW4E ; Notes .........: ; =============================================================================================================================== ; #CURRENT# ===================================================================================================================== ;~ _RegEnumKeyEx ;~ _RegEnumValEx ; =============================================================================================================================== #Region ;**** Global constants and vars **** Global Const $sValueTypes[12] = ["REG_NONE","REG_SZ","REG_EXPAND_SZ","REG_BINARY","REG_DWORD","REG_DWORD_BIG_ENDIAN","REG_LINK","REG_MULTI_SZ","REG_RESOURCE_LIST","REG_FULL_RESOURCE_DESCRIPTOR","REG_RESOURCE_REQUIREMENTS_LIST","REG_QWORD"] #EndRegion ;**** Global constants and vars **** ; #FUNCTION# ======================================================================================================================== ; Name...........: _RegEnumKeyEx ; Description ...: Lists all subkeys in a specified registry key ; Syntax.........: _RegEnumKeyEx($KeyName[, $iFlag = 0[, $sFilter = "*"]]) ; Parameters ....: $KeyName - The registry key to read. ; $iFlag - Optional specifies Recursion (add the flags together for multiple operations): ; |$iFlag = 0 (Default) All Key-SubKeys Recursive Mod ; |$iFlag = 1 All SubKeys Not Recursive Mod ; |$iFlag = 2 Include in ArrayList in the first element $KeyName ; |$iFlag = 16 $sFilter do Case-Sensitive matching (By Default $sFilter do Case-Insensitive matching) ; |$iFlag = 32 Disable the return the count in the first element - effectively makes the array 0-based (must use UBound() to get the size in this case). ; By Default the first element ($array[0]) contains the number of strings returned, the remaining elements ($array[1], $array[2], etc.) ; |$iFlag = 64 $sFilter is REGEXP Mod, See Pattern Parameters in StringRegExp ; |$iFlag = 128 Enum value's name (_RegEnumKeyEx Return a 2D array, maximum Array Size limit is 3999744 Key\Value) ; |$iFlag = 256 Reads a value data, this flag will be ignored if the $iFlag = 128 is not set ; $sFilter - Optional the filter to use, default is *. (Multiple filter groups such as "All "*.XXx|*.YYY|*.ZZZ") ; Search the Autoit3 helpfile for the word "WildCards" For details. ; $vFilter - Optional the filter to use for ValueName, $vFilter will be ignored if the $iFlag = 128 is not set ; default is *. (Multiple filter groups such as "All "*.XXx|*.YYY|*.ZZZ") Search the Autoit3 helpfile for the word "WildCards" For details. ; $iValueTypes - Optional, set Value Types to search (Default $iValueTypes = 0 Read All), $iValueTypes will be ignored if the $iFlag = 128 is not set ; (add the flags together for multiple operations): ; 1 = REG_SZ ; 2 = REG_EXPAND_SZ ; 3 = REG_BINARY ; 4 = REG_DWORD ; 5 = REG_DWORD_BIG_ENDIAN ; 6 = REG_LINK ; 7 = REG_MULTI_SZ ; 8 = REG_RESOURCE_LIST ; 9 = REG_FULL_RESOURCE_DESCRIPTOR ; 10 = REG_RESOURCE_REQUIREMENTS_LIST ; 11 = REG_QWORD ; Return values .: Success - Return Array List (See Remarks) ; Failure - @Error ; |1 = Invalid $sFilter ; |2 = No Key-SubKey(s) Found ; |3 = Invalid $vFilter ; |4 = No Value-Name(s) Found ; Author ........: DXRW4E ; Modified.......: ; Remarks .......: The array returned is one-dimensional and is made up as follows: ; $array[0] = Number of Key-SubKeys returned ; $array[1] = 1st Key\SubKeys ; $array[2] = 2nd Key\SubKeys ; $array[3] = 3rd Key\SubKeys ; $array[n] = nth Key\SubKeys ; ; If is set the $iFlag = 128 The array returned is 2D array and is made up as follows: ; $array[0][0] = Number of Key-SubKeys returned ; $array[1][0] = 1st Key\SubKeys ; $array[1][1] = 1st Value name ; $array[1][2] = 1st Value Type (REG_NONE or REG_SZ or REG_EXPAND_SZ ect ect) ; $array[1][3] = 1st Value Data (If is set $iFlag = 256 Else Value Data = "") ; $array[2][0] = 2nd Key\SubKeys ; $array[2][1] = 2nd Value name ; $array[2][2] = 2nd Value Type (REG_NONE or REG_SZ or REG_EXPAND_SZ ect ect) ; $array[2][3] = 2nd Value Data (If is set $iFlag = 256 Else Value Data = "") ; $array[n][0] = nth Key\SubKeys ; Related .......: _RegEnumValEx() ; Link ..........: ; Example .......: _RegEnumKeyEx("HKEY_CURRENT_USER\Software\AutoIt v3") ; Note ..........: ; =================================================================================================================================== Func _RegEnumKeyEx($KeyName, $iFlag = 0, $sFilter = "*", $vFilter = "*", $iValueTypes = 0) If StringRegExp($sFilter, StringReplace("^\s*$|\v|\\|^\||\|\||\|$", Chr(BitAND($iFlag, 64) + 28) & "\|^\||\|\||\|$", "\\\\")) Then Return SetError(1, 0, "") Local $IndexSubKey[101] = [100], $SubKeyName, $BS = "\", $sKeyList, $I = 1, $sKeyFlag = BitAND($iFlag, 1), $sKeyFilter = StringReplace($sFilter, "*", "") If BitAND($iFlag, 2) Then $sKeyList = @LF & $KeyName If Not BitAND($iFlag, 64) Then $sFilter = StringRegExpReplace(BitAND($iFlag, 16) & "(?i)(", "16\(\?\i\)|\d+", "") & StringRegExpReplace(StringRegExpReplace(StringRegExpReplace(StringRegExpReplace($sFilter, "[^*?|]+", "\\Q$0\\E"), "\\E(?=\||$)", "$0\$"), "(?<=^|\|)\\Q", "^$0"), "\*+", ".*") & ")" While $I $IndexSubKey[$I] += 1 $SubKeyName = RegEnumKey($KeyName, $IndexSubKey[$I]) If @error Then $IndexSubKey[$I] = 0 $I -= 1 $KeyName = StringLeft($KeyName, StringInStr($KeyName, "\", 1, -1) - 1) ContinueLoop EndIf If $sKeyFilter Then If StringRegExp($SubKeyName, $sFilter) Then $sKeyList &= @LF & $KeyName & $BS & $SubKeyName Else $sKeyList &= @LF & $KeyName & $BS & $SubKeyName EndIf If $sKeyFlag Then ContinueLoop $I += 1 If $I > $IndexSubKey[0] Then $IndexSubKey[0] += 100 ReDim $IndexSubKey[$IndexSubKey[0] + 1] EndIf $KeyName &= $BS & $SubKeyName WEnd If Not $sKeyList Then Return SetError(2, 0, "") If BitAND($iFlag, 128) <> 128 Then Return StringSplit(StringTrimLeft($sKeyList, 1), @LF, StringReplace(BitAND($iFlag, 32), "32", 2)) $sKeyList = _RegEnumValEx(StringSplit(StringTrimLeft($sKeyList, 1), @LF), $iFlag, $vFilter, $iValueTypes) Return SetError(@Error, 0, $sKeyList) EndFunc ; #FUNCTION# ======================================================================================================================== ; Name...........: _RegEnumValEx ; Description ...: Lists all values in a specified registry key ; Syntax.........: _RegEnumValEx($KeyName[, $iFlag = 0[, $sFilter = "*"]]) ; Parameters ....: $KeyName - The registry key to read Or one-dimensional array RegKeyList ; use _RegEnumKeyEx() to get $RegKeyList (example $RegKeyList = [3, 1st Key\SubKeys, 2st Key\SubKeys, nth Key\SubKeys]) ; |$iFlag = 16 $sFilter do Case-Sensitive matching (By Default $sFilter do Case-Insensitive matching) ; |$iFlag = 32 Disable the return the count in the first element - effectively makes the array 0-based (must use UBound() to get the size in this case). ; By Default the first element ($array[0]) contains the number of strings returned, the remaining elements ($array[1], $array[2], etc.) ; |$iFlag = 64 $sFilter is REGEXP Mod, See Pattern Parameters in StringRegExp ; |$iFlag = 256 Reads a value data ; $sFilter - Optional the filter to use, default is *. (Multiple filter groups such as "All "*.XXx|*.YYY|*.ZZZ") ; Search the Autoit3 helpfile for the word "WildCards" For details. ; $iValueTypes - Optional, set Value Types to search (Default $iValueTypes = 0 Read All) ; (add the flags together for multiple operations): ; 1 = REG_SZ ; 2 = REG_EXPAND_SZ ; 3 = REG_BINARY ; 4 = REG_DWORD ; 5 = REG_DWORD_BIG_ENDIAN ; 6 = REG_LINK ; 7 = REG_MULTI_SZ ; 8 = REG_RESOURCE_LIST ; 9 = REG_FULL_RESOURCE_DESCRIPTOR ; 10 = REG_RESOURCE_REQUIREMENTS_LIST ; 11 = REG_QWORD ; Return values .: Success - Return Array List (See Remarks) ; Failure - @Error ; |3 = Invalid $sFilter ; |4 = No Value-Name(s) Found ; Author ........: DXRW4E ; Modified.......: ; Remarks .......: The array returned is 2D array and is made up as follows: ; $array[0][0] = Number of Key-SubKeys returned ; $array[1][0] = 1st Key\SubKeys ; $array[1][1] = 1st Value name ; $array[1][2] = 1st Value Type (REG_NONE or REG_SZ or REG_EXPAND_SZ ect ect) ; $array[1][3] = 1st Value Data (If is set $iFlag = 256 Else Value Data = "") ; $array[2][0] = 2nd Key\SubKeys ; $array[2][1] = 2nd Value name ; $array[2][2] = 2nd Value Type (REG_NONE or REG_SZ or REG_EXPAND_SZ ect ect) ; $array[2][3] = 2nd Value Data (If is set $iFlag = 256 Else Value Data = "") ; $array[n][0] = nth Key\SubKeys ; Related .......: _RegEnumKeyEx() ; Link ..........: ; Example .......: _RegEnumValEx("HKEY_CURRENT_USER\Software\AutoIt v3") ; Note ..........: ; =================================================================================================================================== Func _RegEnumValEx($aKeyList, $iFlag = 0, $sFilter = "*", $iValueTypes = 0) If StringRegExp($sFilter, "\v") Then Return SetError(3, 0, "") If Not IsArray($aKeyList) Then $aKeyList = StringSplit($aKeyList, @LF) Local $aKeyValList[1954][4], $iKeyVal = Int(BitAND($iFlag, 32) = 0), $sKeyVal = 1953, $sRegEnumVal, $iRegEnumVal, $RegRead = BitAND($iFlag, 256), $vFilter = StringReplace($sFilter, "*", "") If Not BitAND($iFlag, 64) Then $sFilter = StringRegExpReplace(BitAND($iFlag, 16) & "(?i)(", "16\(\?\i\)|\d+", "") & StringRegExpReplace(StringRegExpReplace(StringRegExpReplace(StringRegExpReplace($sFilter, "[^*?|]+", "\\Q$0\\E"), "\\E(?=\||$)", "$0\$"), "(?<=^|\|)\\Q", "^$0"), "\*+", ".*") & ")" For $i = 1 To $aKeyList[0] $iRegEnumVal = 0 While 1 If $iKeyVal = $sKeyVal Then If $sKeyVal = 3999744 Then ExitLoop $sKeyVal *= 2 ReDim $aKeyValList[$sKeyVal + 1][4] EndIf $aKeyValList[$iKeyVal][0] = $aKeyList[$i] $iRegEnumVal += 1 $sRegEnumVal = RegEnumVal($aKeyList[$i], $iRegEnumVal) If @Error <> 0 Then If $iRegEnumVal = 1 And $vFilter = "" Then $iKeyVal += 1 ExitLoop EndIf $aKeyValList[$iKeyVal][2] = $sValueTypes[@Extended] If BitAND(@Extended, $iValueTypes) <> $iValueTypes Then ContinueLoop If $vFilter And Not StringRegExp($sRegEnumVal, $sFilter) Then ContinueLoop $aKeyValList[$iKeyVal][1] = $sRegEnumVal If $RegRead Then $aKeyValList[$iKeyVal][3] = RegRead($aKeyList[$i], $sRegEnumVal) $iKeyVal += 1 WEnd Next $sRegEnumVal = $iKeyVal - Int(BitAND($iFlag, 32) = 0) If Not $sRegEnumVal Or ($sRegEnumVal = 1 And $vFilter = "" And $aKeyValList[$iKeyVal - $sRegEnumVal][2] = "") Then Return SetError(4, 0, "") ReDim $aKeyValList[$iKeyVal][4] If Not BitAND($iFlag, 32) Then $aKeyValList[0][0] = $iKeyVal - 1 Return $aKeyValList EndFunc Thanks.
       
×