Sign in to follow this  
Followers 0
apollopimp

help simulating a button click in IE8

24 posts in this topic

#1 ·  Posted (edited)

how could i use this in an autoit script? im trying to simulate some clicks using IE8 it is a reset button on a web page game whats the scripting to use something like that? anyhelp would be great thanks please be nice..

I think AJ.request('p=player&f=reset is the button name

<input class="button" style="width: 170px;" value="Reset Game" onclick="AJ.request('p=player&amp;f=reset', {
                    onComplete: function(response) {    
                      Site.nav('p=player&amp;f=home');      
                    } 
                });" type="button">
Edited by apollopimp

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Look at the _IE functions

Can you post more of the code or post a url. What you posted looks like javascript I think.

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

i will take a look but ive never used any of the _IE functions before

ya it is javascript heres another button i need to simulate this is its address java script:Site.load('p=player&f=setting');

Can anyone give me an example on how to use what i posted above .. im not asking for you to make my script for my i just need a lil jump start..

Edited by apollopimp

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

AJ.request is a javascript function being called by the button.

The code you posted doesn't show an ID or name.

Can you post the entire form section?

If not look at the IE GetCollection commands you should be able to find it.

I haven't had to use them personally so I don't have an example but you'll find some in the help file.

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Im not sure if this is what your asking for but this is where i got the code from out of my render.html heres all the code from the page with the reset button

ok so it doesn't show an ID or name can it be called with the function?

<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><title></title>
<script type="text/javascript" src="render_data/gadgets003.js"></script>
<script type="text/javascript" src="render_data/opensocialreference001.js"></script>
<script type="text/javascript" src="render_data/MyOpenSpace007.js"></script>
<script type="text/javascript" src="render_data/MyOpenSpace005.js"></script>
<script type="text/javascript" src="render_data/MyOpenSpace010_002.js"></script>
<script type="text/javascript" src="render_data/MyOpenSpace003.js"></script>
<script type="text/javascript" src="render_data/MyOpenSpace025.js"></script>
<script type="text/javascript" src="render_data/MyOpenSpace010.js"></script>
<script type="text/javascript" src="render_data/ifpc002.js"></script>
<script type="text/javascript" src="render_data/json001.js"></script>
<script type="text/javascript">
//<![CDATA[
var env = opensocial.getEnvironment();var myOpenSocialAppOpts = {};myOpenSocialAppOpts[MyOpenSpace.Application.Field.ID] = "119422";
myOpenSocialAppOpts[MyOpenSpace.Application.Field.NAME] = "Demon Slayer";
myOpenSocialAppOpts[MyOpenSpace.Application.Field.PROFILE_URL] = "http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=424356221";
myOpenSocialAppOpts[MyOpenSpace.Application.Field.INSTALL_URL] = "http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=424356221";
myOpenSocialAppOpts[MyOpenSpace.Application.Field.CANVAS_URL] = "http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx";
myOpenSocialAppOpts[MyOpenSpace.Application.Field.ICON_LARGE] = "http://c1.ac-images.myspacecdn.com/images02/55/l_186fc368a3784d59a8d7e5f89bf5a99c.gif";
myOpenSocialAppOpts[MyOpenSpace.Application.Field.ICON_SMALL] = "http://a772.ac-images.myspacecdn.com/images01/24/l_c6a6764fff856b2b5ff2191d0bfdc27b.gif";
env.currentApplication = new MyOpenSpace.Application(myOpenSocialAppOpts);

//]]>
</script>
<script type="text/javascript">
//<![CDATA[
opensocial.Container.get().registerParam("panelId", "apppanel_119422_canvas");
opensocial.Container.get().registerParam("remoteRelay", "http://profile.myspace.com/Modules/Applications/Pages/ifpc_relay.aspx");
opensocial.Container.get().registerParam("localRelay", "http://api.msappspace.com/OpenSocial/ifpc_relay.aspx");
opensocial.Container.get().registerParam("appid", "119422");
opensocial.Container.get().registerParam("ptoString", "COMMENTS,BLOG,BULLETINS,PROFILE,SEND_MESSAGE,SHARE_APP");
//]]>
</script>

<script src="render_data/ga.js"></script></head><body onload="MyOpenSpace.onload.runonloadHandlers();">
<style>
body {
    background: #000;
}
</style>  
<link rel="stylesheet" type="text/css" href="render_data/reset.css">     
<link rel="stylesheet" type="text/css" href="render_data/helpers.css">
<link rel="stylesheet" type="text/css" href="render_data/a.htm">  

 
<div style="">
<div style="">

    <table width="100%" align="" border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td width="1" height="600"></td>
        <td valign="top">
          <div id="body">

<div style="display: none;">for ie</div>




                              

<div class="page_wrap" id="page_wrap">

        
    <div class="page_top relative">     
      

<div class="page_top_info">


                                
       
             
            
            <span class="site_loading" style="display: none;"><img src="render_data/002_site_loading.gif"></span>
            
            &nbsp;   &nbsp;   &nbsp;             

            <a href="java script:Site.deleteCache();Site.reload()" style="text-decoration: underline; color: rgb(255, 255, 255);">Refresh</a>   &nbsp; &nbsp; &nbsp; 
           
            
            <!--[if gte IE 5]>

            <a href="java script:Site.go(-1)" style='text-decoration: underline; color: #fff;'>Go Back</a>  &nbsp;  &nbsp; &nbsp;     
            
            <![endif]-->     
                       
                
       
            Cash            <span class="bold"> 
                <span class="nav_money_container">$20,000</span>
            </span>
            
            &nbsp;   &nbsp;   &nbsp; 
                                              
                
            Allies          <span class="bold"> 
                8           </span>
            
            &nbsp;   &nbsp;   &nbsp; 
                                              
                
            Exp
            <span class="bold">
                0/20            </span> 

            
            &nbsp;   &nbsp;   &nbsp; 
                
            Level
            <span class="bold">
                <span class="nav_level_container">1</span>
            </span> 

            
            
            
            
            
                        
            <script>
            Site.playerCash = '$20,000';
            Site.playerLevel = '1';  
            Site.playerUpdateTime = 1227486619;  
            </script>   


       
 

</div>
                              


<div class="page_nav"> 


    

<a class="nav_link nav_link_player_home" href="java script:Site.load('p=player&amp;f=home');"><span>Home</span></a><a class="nav_link nav_link_battle_start" href="java script:Site.load('p=battle&amp;f=start');"><span>Combat</span></a><a class="nav_link nav_link_world_map" href="java script:Site.load('p=world&amp;f=map');"><span>Land</span></a><a class="nav_link nav_link_item_home" href="java script:Site.load('p=item&amp;f=home');"><span>Army</span></a><a class="nav_link nav_link_vault_home" href="java script:Site.load('p=vault&amp;f=home');"><span>Vault</span></a><a class="nav_link nav_link_research_home" href="java script:Site.load('p=research&amp;f=home');"><span>Upgrade</span></a><a class="nav_link nav_link_alliance_view" href="java script:Site.load('p=alliance&amp;f=view');"><span>Allies</span></a><a class="nav_link nav_link_invite_invite" href="java script:Site.nav('p=invite&amp;f=invite');"><span>Invite</span></a><a class="nav_link nav_link_player_bonus" href="java script:Site.load('p=player&amp;f=bonus');"><span>Bonus</span></a>
   

</div>
 
    </div>

                     

    <div class="page_body">  
    <!-- start body -->      
                               

    
        
    



      
                        
  

    <div class="main_header">Reset Account</div>
    <div class="under_header">
    
    When you reset, you keep your alliance, bonus upgrade points, and cash. 
    <br><br>                
              
<input class="button" style="width: 170px;" value="Reset Game" onclick="AJ.request('p=player&amp;f=reset', {
                    onComplete: function(response) {    
                      Site.nav('p=player&amp;f=home');      
                    } 
                });" type="button">

                                            
    </div>

             


 
       
       
       
        <div class="clear"></div>
    <!-- end body -->
    </div>
    

    

    <div class="page_footer">
    
    
      <ul>  
                                                                           
        <li><a href="java script:Site.load('p=player&amp;f=rank');">Top Players</a></li>      
        <li><a href="java script:Site.load('p=player&amp;f=faq');">FAQ</a></li>   
        <li><a href="java script:Site.load('p=player&amp;f=setting');">Settings</a></li>
        <li class="last"><span class="link" onclick="$('feedback_container').toggle()">Feedback</span></li>   
         
      </ul> 
        
                
    </div>
    
    
    <div id="feedback_container" style="padding: 15px; display: none;">
        
        
        Please enter your feedback below: 
        <textarea id="feedback_text" style="width: 98%; height: 60px; margin-top: 5px;"></textarea>
        
        <input class="button" style="margin-top: 5px;" value="Send" onclick="Feedback.submit( $('feedback_text').getValue(), $('feedback_container'))" type="button">
        
    </div>


</div>







 </div>
        </td>
      </tr>
    </tbody></table>

</div>         
</div>

        


<script src="render_data/prototype.js"></script> 
<script>




function f4a_bind(fn, scope) {
        var scope = scope || window;
        var args = [];
        for (var i=2, len = arguments.length; i < len; ++i) {
            args.push(arguments[i]);
        };
        return function() {
            fn.apply(scope, args);
        };
      }

function f4a_js_flash(props) {
  this.f4a_js_id = props['id'];
  this.id = this.f4a_js_id+'f4a_js_flash';
  this.flashobj_id = this.id+'_f4a';
  this.swfname = props['swfname'];
  this.swfuri = props['swfuri'];
  this.height = 1;
  this.width = 1;
  this.mostRecentResponse = '';

  if (window.log==undefined) log = function(txt) {
    try{console.log(txt)} catch (e) {}
  }
  
  this.getFlash = function() {
      return document.getElementById(this.flashobj_id);
  }
  
  this.checkFlash = function() {  // confirm that the Flash Storage is running
      try {
          return (this.getFlash().ping() == "pong");
      } catch (e) { log(e);return false; }
  }


  this.createSwfObject = function() {
    var so = new SWFObject(this.swfuri, this.flashobj_id, "1", "1", "8", "#ffffff");  
    //var so = new SWFObject(this.swfuri, this.flashobj_id, "800", "600", "8", "#0000ff");  
    so.addParam('allowScriptAccess', 'always');
    so.addParam('swliveconnect', 'true');
    so.write(this.f4a_js_id+'flashcontent');
  }
  
  this.open = function(args) {
    var meth = args['meth'];
    var url = args['url'];
    var async = args['async'];
    var user = args['user'];
    var password = args['password'];  
    var headers = args['headers'] ? args['headers'] : [];
    var contenttype = args['contenttype'] ? args['contenttype'] : null;
    var data = args['data'];
    var onready = args['onready'];
  
    var fs = this.getFlash();
    
    var cb = CallbackManager.registerCallback(this.id,onready);
    fs.xmlhttp(url, cb, meth, data, headers);
  }
}

/**************************************** CallbackManager ***************************************************/


var CallbackManager = new Object();
CallbackManager.callbacks = {};
CallbackManager.callbackIndexes = {};

// assigns and returns a unique callback name for the input callback
CallbackManager.registerCallback = function(id, callback) {

  if (!this.callbacks[id]) {
    this.callbacks[id] = [];
    this.callbackIndexes[id] = 0;
  } 

    // todo: could be improved (look for the first available spot in the callbacks table, if necessary, expand it)
    var length = this.callbacks[id].push(function(rsp) {f4a_bind(selfDeleteCallback,this,id,callback,rsp)()});

    this.callbackIndexes[id] = length - 1;
    return 'CallbackManager.callbacks[\''+id+'\']['+this.callbackIndexes[id]+']';
    
    function selfDeleteCallback(id,callback,rsp) {
        //delete CallbackManager.callbacks[id][this.callbackIndexes[id]];
        setTimeout(function() { callback(rsp); }, 0);
        return;
    } 
}


 
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

var f4a_id = 'f4a_main';
var f4a = null;

function f4a_init() {    
     
    f4a = new f4a_js_flash({'id':f4a_id,'swfname':'f4a.swf','swfuri':'http://front.playtakeover.com/playtakeover/flash/ajax.swf'});
    
    var e = document.createElement("div");
    e.id = f4a_id+'flashcontent';
    e.style.width = '1px';
    e.style.height = '1px';
    document.getElementsByTagName('body').item(0).appendChild(e);   
    f4a.createSwfObject();
    setTimeout(function() {
        if (f4a.checkFlash()){
            //   
        } else {
            if ( confirm('Adobe Flash is required. Click here to download it.')  ) {
                top.location = 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash';
            }
        }
    }, 15000);
}


function f4a_send_request(url, meth, body, cb) {    
  
    if (typeof cb == 'undefined') cb = function() {};                                                                                                                                 
    var req = {'url':url,'meth':meth,'data':body,'onready':cb};
    f4a.open(req);
}

      
 


         
var Site =  {
    'appUrl' : 'http://front.playtakeover.com/playtakeover/',
    'appId' : '2',
    'pageTracker' : false,
    'auth' : false, 
    'initTries' : 0,
    'history': [],
    'historyCurrentIndex': -1,    
    'timer': false, 
    'pageTimer': false, 
    'cache': {},
    'playerCash': '',      
    'playerLevel': '',
    'playerUpdateTime': 0,
    'playerCashLast': '',      
    'playerLevelLast': '',
    'playerUpdateTimeLast': 0,
    
    
    'init' : function(url, ref) {   
    
        f4a_init();     
        
        if (!url) url = 'ig';   
        if (!ref) ref = '';   
        
        var initUrl = Site.appUrl + 
            '?site=myspace&app_id=2&' +     
            url + '&site_init=1&token=' + eURI( Site.getToken(url) ) + 
            '&ref=' + ref +
            '&nocache=' + (new Date()).getTime();
        
        var params = {};
        params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;
        params[gadgets.io.RequestParameters.AUTHORIZATION] = gadgets.io.AuthorizationType.SIGNED;
        params[gadgets.io.RequestParameters.METHOD] = gadgets.io.MethodType.GET;
          
        gadgets.io.makeRequest(initUrl, function(response) {   
            response = response.text;           
                      
            if (typeof response != 'string' || response.length < 1  ) {  
                Site.nav(url);  
            }
            else {
                Site.history.push(url);               
                Site.historyCurrentIndex = Site.history.length - 1;
                location.href = '#' + Site.historyCurrentIndex; 
                Site.update(response, url);  
            } 

  
        }, params);

    },
    
    'getSelf': function() { 
        // remove &message=...   
        var url = Site.history[Site.historyCurrentIndex].replace(/&message=([^&]*)&?/, '');
        return url;
    },
    
    
    'getToken': function(url) {
        
        var token = false;
        
                
     
        return token;   
    },
    
    
    'getUrl' : function(url) {
         
        var url = typeof url == 'undefined' ? '' : url;         
        
        return Site.appUrl + '?' + url + 
            '&site=myspace&app_id=2&auth=' + eURI(Site.auth) + 
            '&token=' + eURI( Site.getToken(url) ) +
            '&' + (new Date()).getTime();
    
    },
    
    
    'go' : function( value ) {
        var index = Site.historyCurrentIndex + value;
        
        if ( Site.history[ index ] )  {
            Site.loadRequest( Site.history[ index ] );       
            Site.historyCurrentIndex = index;  
            location.href = '#' + index;    
        }
    
    },
    
    
    
    'load': function(url, postBody) {        

        var postBody = typeof postBody == 'undefined' ? '' : postBody;        
                                                
        
        try {
        // remove forward pages if any
        Site.history.length = parseInt(Site.historyCurrentIndex) + 1;
        }
        catch(e) {  
            console.log('error load() ' + parseInt(Site.historyCurrentIndex))  
        } 
        
        
        // add new url
        Site.history.push(url);  
        
        // move pointer up
        Site.historyCurrentIndex = Site.history.length - 1;
        
        // add to url
        location.href = '#' + Site.historyCurrentIndex;  
        
        
        if (!Site.timer) Site.timer = setInterval( function() {
        
            
            var locationIndex = location.hash.replace('#', '');
            if ( location.hash == '' ) locationIndex = 0;   
            
            if ( locationIndex != Site.historyCurrentIndex  ) {  
                
                var url = Site.history[locationIndex];

                Site.historyCurrentIndex = locationIndex;   
                 
                Site.load(url);                             
            
            }
            
        }, 250);
                   
        
                 
        // caching
        /*
        if (postBody == '' && typeof Site.cache[url] != 'undefined') {   
            Site.update(Site.cache[url]);                                             
            return;
        }
         */
                                     
        Site.loadRequest(url, postBody); 
        
        if (Site.pageTracker) Site.pageTracker._trackPageview("/" + url);      
        
    },
    
    'loadRequest' : function(url, postBody) {  
    
        $$('.site_loading').invoke('show');   
    
        var fullUrl = Site.getUrl(url);
                                                                                             
        var method = postBody == '' ? 'GET' : 'POST';            
                 
        f4a_send_request(fullUrl, method, postBody, function(response) {         
        
            $$('.site_loading').invoke('hide');
                                                  
            Site.update(response);  
            
            if (postBody == '') {   
                Site.cache[url] = response;
            }
            else {
                delete Site.cache[url];
            }
                                       
        }); 
         
    },
    
    'deleteCache' : function(url) {
        
        if (typeof Site.cache[url] != 'undefined') {
            delete Site.cache[url];
        }
        else {
            var url = Site.history[Site.historyCurrentIndex]; 
            if (typeof Site.cache[url] != 'undefined') {
                delete Site.cache[url];
            }
        }
    
    },
    'reload' : function(fullWindow) {
                                         
    
        var fullWindow = typeof fullWindow == 'undefined' ? 0 : fullWindow;
    
        if (fullWindow) {
            Site.nav(Site.history[Site.historyCurrentIndex]);
        }
        else {
            Site.load( Site.history[Site.historyCurrentIndex] ); 
        }
    
    },
    
    
    'nav': function(url) {  
        //http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=###&appParams={"url":"p%3Dplayer%26f%3Droster"}
        if (typeof url == 'undefined') url = '';
        
        var supportedViews = gadgets.views.getSupportedViews();   

        var options = {}
        options["url"] = encodeURIComponent(url);       

        gadgets.views.requestNavigateTo(supportedViews.canvas, options);
    },

    

    'setHeight': function(height) {  
        
    
        if (typeof height == 'undefined') height = $('body').getHeight() + 100; 
        
        if (height < 600) height = 600;
                  

        console.log($('body').getHeight());
                  
        gadgets.window.adjustHeight( 3000 );
         
    },
    
    'start': function() { 
                                          
        var params = gadgets.views.getParams();
        
        
        if ( typeof params['installState'] != 'undefined' ) {
            if ( params['installState'] < 1 ) {
                Site.update("<div style='padding: 30px; text-align:center'>Click on <b>Install this Application</b> above to continue. Please make sure that you are logged in. <br><br>It may take up to a minute for MySpace to redirect you to the game. <a href='http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=119422' target='_top' style='font-size:; text-decoration: none; color: #C80F0F; '>Click here to retry.</a></div>");
                return;
            }
        }

        if( typeof params['url'] == 'undefined' ) {  
            params['url'] = '';
        }

        var url = decodeURIComponent(params['url']);
        
        
        // tracking
        var ref = '';
        if( typeof params['ref'] != 'undefined' && params['installState'] == 1 ) {  
            ref = params['ref'];
        }
                                                      
        
        Site.init(url, ref); 
        
              
        

    },         
    
    'update' : function(html, url) {                                            
        
        if (typeof url != 'undefined') {
            Site.cache[url] = html;
        }
    
        $('body').innerHTML =  html;
        html.evalScripts();  
        
       
        
        if (Site.playerUpdateTime > Site.playerUpdateTimeLast ) {   
            $$('.nav_money_container').each(function(e) {
                e.update(Site.playerCash);
            });
                    
            $$('.nav_level_container').each(function(e) {
                e.update(Site.playerLevel);
            });                      
            
            Site.playerCashLast = Site.playerCash;
            Site.playerLevelLast = Site.playerLevel;
            Site.playerUpdateTimeLast = Site.playerUpdateTime;
        }
        else {    
                                      
            $$('.nav_money_container').each(function(e) {
                e.update(Site.playerCashLast);
            });
                    
            $$('.nav_level_container').each(function(e) {
                e.update(Site.playerLevelLast);
            });
            
        }
        
        
                 
                                 
        // adjust height
        Site.setHeight();
    }
                                
}

             




var Viral = {

    'send': function( ids, type, title, body, cb ){     
        var token = MyOpenSpace.MySpaceContainer.OSToken;
        var container = opensocial.Container.get();      
        
        if (typeof type == 'undefined') type = MyOpenSpace.PostTo.Targets.COMMENTS;  
        
        var message = opensocial.newMessage();
        message.setField(opensocial.Message.Field.BODY, body);
        message.setField(opensocial.Message.Field.TITLE, title);
        message.setField(opensocial.Message.Field.TYPE, type);
        
 
 
        container.postTo(token, message, ids, function(data) {
            if (typeof cb == 'function'){
                cb(data, ids);      
            }  
        });
    },
    
    
   
    
    'getPerson': function(id, cb) {  
    
        var req = opensocial.newDataRequest();
        req.add(req.newFetchPersonRequest(id), "people");     
        req.send( function(data) {
          
            var people = data.get("people");
           
            if (typeof cb == 'function'){         
                cb( people.getData() );     
            }                
            
        });   
    }               
                 
}


       

if ( typeof console == 'undefined') var console = {};
if ( typeof console.log == 'undefined') console.log = function(){};





// functions   
var AJ = {
    'request': function( url, opt ) {  
    
        var fullUrl = Site.getUrl(url + '&aj=1' );   

        console.log(fullUrl );
                                        
        var options = { 'postBody' : '', 'onComplete' : false };
        if ( typeof opt != 'undefined' ) {
            if ( typeof opt['onComplete'] != 'undefined' ) {
                options['onComplete'] = opt['onComplete'];
            }
            if ( typeof opt['postBody'] != 'undefined' ) {
                options['postBody'] = opt['postBody'];
            }   
        }
                                   
 
      
  
        var method = options['postBody'] == '' ? 'GET' : 'POST';             
        
        f4a_send_request(fullUrl, method, options['postBody'], function(response) {      
                                                  
            if ( options['onComplete'] ) options['onComplete'](response);     
                                       
        });   

    }

}


            
                     
function indexOf(array, needle) {
    for(var i = 0; i < array.length; i++){
        if(array[i] == needle){
            return i;
        }
    }
    return -1;
}

function shuffle(v){
    for(var j, x, i = v.length; i; j = parseInt(Math.random() * i), x = v[--i], v[i] = v[j], v[j] = x);
    return v;
}

                

function show(id) {
    $(id).show();
}

function hide(id) {
    $(id).hide();
}

function toggle(id) {
    $(id).toggle();
}             



var Window_Info = {
    'getViewportY' : function() { // viewport
        var height = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
            height = window.innerHeight;
        }
        else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
            height = document.documentElement.clientHeight;
        }
        else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
            height = document.body.clientHeight;
        }
        return height;
    },
    'getViewportX' : function() {
        var height = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
            width = window.innerWidth;
        }
        else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
            width = document.documentElement.clientWidth;
        }
        else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
            width = document.body.clientWidth;
        }
        return width;
    },
    'getOffsetY' : function() { // scroll top edge offset
        var scrOfY = 0;
        if( typeof( window.pageYOffset ) == 'number' ) {
            scrOfY = window.pageYOffset;
        }
        else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
            scrOfY = document.body.scrollTop;
        }
        else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
            scrOfY = document.documentElement.scrollTop;
        }
        return scrOfY;
    },
    'getOffsetX' : function() {
        var scrOfX = 0;
        if( typeof( window.pageXOffset ) == 'number' ) {
            scrOfX = window.pageXOffset;
        }
        else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
            scrOfX = document.body.scrollLeft;
        }
        else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
            scrOfX = document.documentElement.scrollLeft;
        }
        return scrOfX;
    },
    'getPageX' : function() { // total length
        return $$("body")[0].getWidth();
    },
    'getPageY' : function() {
        return $$("body")[0].getHeight();
    }
}

                
           
           
function eURI( text ) { 
    return encodeURIComponent( text );
}     
             
          
var Player = {
     'favoriteAdd': function(uid, e) {
       
        e.className = (''); 
        e.update('Adding ...');   
                                           
        AJ.request('p=player&f=favorite_edit', {
            postBody: 'uid=' + uid + '&action=add', 
            onComplete: function( data ) {  
                e.update('Added to Wishlist');  
            }
        }); 
            
              
    } ,

    'favoriteRemove': function(uid, e) {
        
        
        e.className = (''); 
        e.update('Removing ...');   
                                           
        AJ.request('p=player&f=favorite_edit', {
            postBody: 'uid=' + eURI(uid) + '&action=remove', 
            onComplete: function( data ) {  
                $('user_container_' + uid).hide();  
            }
        });  
               
    
    },
    
    'wallAdd': function(f) {
        
        if ( $('wall_form_comment').value == '') {
            $('wall_error').update('Please enter a comment.');
            $('wall_error').show();
            return;
        }     
        
        AJ.request(f.action, {
            postBody: 'wall_form_submit=1&comment=' + eURI( $('wall_form_comment').value ) , 
            onComplete: function( data ) {  
                Site.reload();  
            }
        }); 
        
    },
    
    'wallRemove' : function(id, e) {
        e.update('Deleting');
        e.className = ('');
        AJ.request('p=player&f=wall_remove', {
            postBody: 'id=' + id, 
            onComplete: function( data ) {  
                $('wall_item_' + id ).hide();   
            }
        }); 
    }
}




var Feedback = {
    'submit' : function(text, e) {
        e.update('Your feedback has been submitted. Thank you for taking the time.');      
        AJ.request('p=player&f=feedback', {
            postBody: 'text=' + text, 
            onComplete: function( data ) {  
                
            }
        }); 
           
    }                                     
}





         

var Recruit = {

    'selected' : {},        
    'sent' : {},        
    'message' : '',   
    'submitList' : [],  
    'listSize' : 40,
    
    
    
    'init' : function() {   
        Recruit.displayFriends( 0 );                                        
    },
    
    
    
    'people' : {},
    
    'displayFriends' : function(index) {
    
        if (index  > 100) return;
        
        var params = {}
        params[opensocial.DataRequest.PeopleRequestFields.FIRST] = index * Recruit.listSize;
        
        var req = opensocial.newDataRequest();
        req.add(req.newFetchPeopleRequest('VIEWER_FRIENDS', params), "people");
        req.send( function(data) {
            var people = data.get("people");
            
            if (people.hadError()) return false;
            
            people.getData().each(function(e) {
                Recruit.people[ e.getId() ] = e;
                
                
                
                if ( typeof Recruit.exclude[ e.getId() ] == 'undefined' ) {
                    
         
                
                    var html = "";

                    
                    html += "<div class='user_wrap'>";
                    html += "   <div title='" + e.getDisplayName() + "' ";
                    html += "           id='user_content_" + e.getId() + "' ";
                    html += "           class='user_content relative' ";
                    html += "           onmouseover='Recruit.mouseOver(" + e.getId() + ")' ";
                    html += "           onmouseout='Recruit.mouseOut(" + e.getId() + ")'";
                    html += "           onclick='Recruit.click(" + e.getId() + ")'>";   
                    html += "       <div class='user_content_check_box' id='user_content_check_box_" + e.getId() + "' style='display:none'>";
                    html += "           <input type='checkbox' checked='1' readonly='1' disabled='1' />";
                    html += "       </div>";
                    html += "       <div class='user_image'>";
                    html += "           <img src='" + e.getField(opensocial.Person.Field.THUMBNAIL_URL) + "' width='50' />";
                    html += "       </div> ";
                    html += "       <div class='user_name'>" + e.getDisplayName().substring(0,10) + "";
                    if (typeof Recruit.sent[ e.getId() ] != 'undefined') html += "    <span class='lighter'>sent</span>";
                    html += "       </div>";
                    html += "   </div>"; 
                    html += "</div>";
                    
                    
                    $('friend_select').insert( { 'bottom' : html } );
                
                }

            });
                
                
            if ( ! people.getData().size() ) return;     
            Recruit.displayFriends( index + 1 );
            
        });  
              
    },
    
    'getAllFriendsData' : [], 
    'getAllFriends': function( index, cb) {   
    
        if (typeof index == 'undefined') index = 0;                                              
                                                   
        var params = {}
        params[opensocial.DataRequest.PeopleRequestFields.FIRST] = index * Recruit.listSize;
        
        var req = opensocial.newDataRequest();
        req.add(req.newFetchPeopleRequest('VIEWER_FRIENDS', params), "people");
        req.send( function(data) {
            var people = data.get("people");
            
            if (people.hadError()) return false;
            
            people.getData().each(function(e) {
                Recruit.getAllFriendsData.push(e);
                                                                                         
            });
                
                
            if ( ! people.getData().size() || index > 20  ) {
                if (typeof cb == 'function') cb(Recruit.getAllFriendsData);
                return;  
            }
            Recruit.getAllFriends( index + 1, cb );
            
        });  
    
    
    },
     
    
    'mouseOver' : function(uid) {
        $('user_content_' + uid ).style.background = '#ddd';
    
    },
    'mouseOut' : function(uid) {
        if (this.selected[uid] != true) $('user_content_' + uid ).style.background = '';
    
    },

    'click' : function(uid) {
        this.selected[uid] = this.selected[uid] == true ? false : true;
        
        this.selected[uid] == true ?  $('user_content_check_box_' + uid ).show() : $('user_content_check_box_' + uid ).hide(); 
            
    },
                    
    'sendInvite': function(index) {
        
        if ( !Recruit.submitList ||  Recruit.submitList.length - 1 < index  ) {  
          Site.deleteCache();
          Site.reload();
          return false;
        }
        
        var id = Recruit.submitList[index]; 
                                                      

        Viral.send( Recruit.people[id] , MyOpenSpace.PostTo.Targets.COMMENTS, 'title', Recruit.message, function(data) {
            if (data == 1) {
                // record it
                AJ.request('p=invite&f=invited', {
                    'postBody': 'ids[]=' + Recruit.people[id].getId()
                });
            }
            if (data == -1) {
                //Site.reload();   
            }
            Recruit.sendInvite( index + 1 );  
        });
              
    },
    
    
    
    'submit': function() {   
                                 
      
        var list = [];
        for(var i in Recruit.selected) { 
            if (Recruit.selected[i] == true) list.push(i);
        }
    
        if (list.length) {     
            AJ.request('p=invite&f=invited', {
                'postBody': 'ids[]=' + list.join('&id[]=')
            });
                                                               
            Recruit.submitList = list;  
            Recruit.sendInvite(0);  
        }   
                                       
        
        // reset selected
        Recruit.selected = {};
        $$('.user_content_check_box').invoke('hide');
        $$('.user_content').each(function(e) {
            e.style.background = ''; 
        });
    
    }
    


}


var World_Map = {

    'load' : function( show, sort, page ) {
    
        $$('.map_data_loading').invoke('show');
        AJ.request('p=world&f=map_data&params=uid:;' +
                'show:' + show + ';' +
                'sort:' + sort + ';' +
                'page:' + page, {
            onComplete: function( response ) {
                $('world_map_data').update( response );  
                $$('.map_data_loading').invoke('hide');   
            }});
    
    }          

}                                        

</script> <script type="text/javascript">
                                                                               

setTimeout(function() {
    try {  
        var js = document.createElement('script');
        js.src = 'http://www.google-analytics.com/ga.js';
        document.getElementsByTagName('head')[0].appendChild(js);
    }
    catch(e) { }
}, 5000 );
    



setTimeout(function() {
    try {
        Site.pageTracker = _gat._getTracker("UA-5755075-2");
        Site.pageTracker._trackPageview();
    }
    catch(e) {  }
}, 15000 );
    
    

</script>



<script>

gadgets.util.registeronloadHandler(Site.start);  

</script> 
 
 
 
 
                                                 
<div style="width: 1px; height: 1px;" id="f4a_mainflashcontent"><embed type="application/x-shockwave-flash" src="render_data/ajax.swf" style="" id="f4a_mainf4a_js_flash_f4a" name="f4a_mainf4a_js_flash_f4a" bgcolor="#ffffff" quality="high" allowscriptaccess="always" swliveconnect="true" width="1" height="1"></div><iframe src="render_data/ifpc_relay.htm" style="border: 0px none; visibility: hidden; height: 0px; width: 0px; position: absolute;" onload="this.pool_locked=false"></iframe></body></html>
Edited by apollopimp

Share this post


Link to post
Share on other sites

ok I think I know how to do it brb


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

try this:

#include <IE.au3>

$oIE = _IECreate("http://google.com", 0, 1, 1)
;Or try this if you wan to use an existing browser window look at _IEAttach

MsgBox(0, "", "Click OK when the Reset Game button is ready")
$oElements = _IETagNameGetCollection ($oIE, "input")

For $oElement In $oElements
    If $oElement.value = "Reset Game" Then
        _IEAction($oElement, "Click")
        ExitLoop
    EndIf
Next

basically I'm just searching all the input fields for the value which we do have in the code you posted.

Kenny

EDIT: Corrected one variable in code

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

well it went to my url but it didnt reset the game.. Maybe it didn't work since to show the reset button first i need to click on the settings button

first i need to click on the settings button which brings up the page with the reset button the settings button when i right click it the address is

java script:Site.load('p=player&f=setting');

i dont have a clue ive never tryed to get info from a page before ive only wrote scripts that use the mouse.. so im lost

Edited by apollopimp

Share this post


Link to post
Share on other sites

try the modified code above the script will pause and wait for you to click on settings or whatever you need to do to get the button your trying to click on up.

Kenny


My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

nope its still not resetting.. that must be the wrong value..

whats the best way to get the info i need from the web page?

Share this post


Link to post
Share on other sites

I recommend DebugBar... see my Sig.

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

ii allready got it from your sig and its giving me the same info

i drag it on the target under DOM it gave me

INPUT type=button name=

i click on that and under the source box it gives me this which i had allready

<INPUT style="WIDTH: 170px" class=button onclick="AJ.request('p=player&amp;f=reset', {
                    onComplete: function(response) {    
                      Site.nav('p=player&amp;f=home');      
                    } 
                });" value="Reset Game" type=button>
Edited by apollopimp

Share this post


Link to post
Share on other sites

What same info?

Ah, one change to the example above that may make this work for you:

If String($oElement.value) = "Reset Game" Then

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

nope still didnt reset thanks

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

I just found the game on my space and did some debugging. The script is finding the button.

And the click action is returning 1 but no responce.

I'm on IE8 too.

Do you have a machine with IE 6 or 7 that you can test it with?

______________________

DaleHohm- I know it's still beta but have you been able to do any testing with IE8 yet?

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

i will install ie7 on this comp and see if it works

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

cool that should work, I've never had any problems with these IE functions before.

IE 8 is still a little buggy I've had to use that compatibility mode more times that I would like lol

I think I might go back to 7 too, I just read they moved the release date from november to late 1st quarter early 2nd quarter 2009

Kenny

Edited by ken82m

My Contributions _StringMultiReplace PC Builders Console - Secure PDF Creator - Cisco VPN Installer MS DNS Server Backup Script - MS DHCP Backup Script IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script - IT Help Desk and System Information Tool - Set On Lid Close Power Option - Streaming Media Server & Website "I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains."

Share this post


Link to post
Share on other sites

well im having problems getting ie7 to work now all i get is a white screen.... nothings ever easy

Share this post


Link to post
Share on other sites

I don't expect IE8 to cause trouble for IE.au3. The upgrades from IE5 to 6 to 7 required no changes (although the crappy UAC security implementation in Vista can require the addition of #RequireAdmin).

It may also be the case, particularly with sites that try to defeat automation, like game sites, that there are Javascript checks implemented that try to make this harder (like checking to insure that the mouse pointer is actually over the control when the click is generated). In a case like this you may need to use _IEPropertyGet to get the coordinates of the element, MouseMove to place the mouse there and then use ControlClick to click the element (see the examples with _IEPropertyGet and _IEAction for help).

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

i cant get ie7 to install it keeps freezing but it still don't reset with ie6

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
Sign in to follow this  
Followers 0