
fbar
Active Members-
Posts
26 -
Joined
-
Last visited
Everything posted by fbar
-
remove that post please i dont need that kind of advice i havent bumped it once i need a little help somthing this forum dosent like to give
-
could some one give me sample code where data taken from a web page and updated and submitted , but it not a form tho , its a input on a table
-
more failed code [autoit] Next If $oForm.action <> "0" And Not StringInStr($oForm.action, '.php') Then ;submit _IEFormSubmit($oForm, 0) $gotourl1 = GUICtrlRead ( $URL1 ) _IENavigate($oIE,$gotourl1) _IELoadWait($oIE) $sID = "tblARecords_0_hlPointst" $thedata = _IEGetObjById($oIE, $sID ) $setthedata = _IEPropertySet($oIE,$thedata,$ip) ;; collect data ;$sID = "tblARecords_0_hlPointst" ;$thedata = _IEGetObjById($oIE, $sID ) ;MSGBOX(1,"THE DATA",$thedata,2) ;set data $ip = _getip() ;$sID = "tblARecords_0_hlPointst" ;$setthedata = _IEPropertySet($oIE,$sID,$ip) MSGBOX(1,"SET THE DATA",$setthedata,2) MSGBOX(1,"THE IP",$ip,2) _IEQuit($oIE) ExitLoop [autoit] please can some one help me
-
could the code be [autoit] $sID = "tblARecords_0_hlPointst" $thedata = _IEGetObjById($oIE, $sID ) $setthedata = _IEPropertySet($oIE,$thedata,$ip) [ /autoit ] ill test now my code tagg not working
-
i have just had this failed attempt debug message boxes return 0 and nothing happends Next If $oForm.action <> "0" And Not StringInStr($oForm.action, '.php') Then ;submit _IEFormSubmit($oForm, 0) _IELoadWait($oIE) $gotourl1 = GUICtrlRead ( $URL1 ) _IENavigate($oIE,$gotourl1) ;; collect data $sID = "tblARecords_0_hlPointst" $thedata = _IEGetObjById($oIE, $sID ) MSGBOX(1,"THE DATA",$thedata,2) ;set data $ip = _getip $sID = "tblARecords_0_hlPointst" $setthedata = _IEPropertySet($oIE,$sID,$ip) MSGBOX(1,"SET THE DATA",$setthedata,2) MSGBOX(1,"THE IP",$ip,2)
-
FAILED CODE Next If $oForm.action <> "0" And Not StringInStr($oForm.action, '.php') Then ;submit _IEFormSubmit($oForm, 0) _IELoadWait($oIE) $gotourl1 = GUICtrlRead ( $URL1 ) _IENavigate($oIE,$gotourl1) Local $dnsinputform = _IEFormGetObjByName($oIE, "tblARecords_0") Local $dnsinputbox = _IEFormElementGetObjByName($dnsinputform, "tblARecords_0_hlPointsto") _IEFormElementSetValue($dnsinputbox, $ip ,1) MsgBox(1,"new ip just ip call",$ip,2) $newvalue =_IEFormElementgetValue($dnsinputbox) MsgBox(1,"new value set",$dnsinputbox,2) _IEQuit($oIE) guictrlsetdata ($oldip,$ip) I THOUGHT I ADD THIS im just in the process of testing the new code
-
so what you saying is this minght work $sID = "tblARecords_0_hlPointst" $thedata = _IEGetObjById($oIE, $sID ) to get data and to set datas $ip = _getip $sID = "tblARecords_0_hlPointst" $setthedata = _IEPropertySet($oIE,$sID,$ip) i havent tested it i just wrote a reply looks to easy do it look right to you my new friend
-
very sorry all i just figured out what code tags are i was wrong my bad
-
cool tags i like it
-
IS THERE AND WAY I CAN CONTROL CLICK AND CONTROL SEND TO THIS I JUST NEED TO CHANGE THE VALUE <a style="" id="tblARecords_0_hlPointsto" class="textLink" onfocus="ARecordEditFocusRow('tblARecords_0', true, 'ddlTTLId');" onclick="ARecordEditRow('tblARecords_0', true, 'ddlTTLId');" href="#" title="2.125.69.0">2.125.69.0</a> MOUSEMOVE WORKS BUT ITS PESTY I DONT MIND MIXING _IE $oIE UP WITH global $OIE what ever will work silent in the background will do for me Ive tryed controlsend($IOE,"","tblARecords_0_hlPointsto","left",1) but dosent do anything
-
IS IT POSSIBAL TO SIMPLY USE ControlSend ( "title", "text", controlID, "string" [, flag = 0] ) ON A IE PAGE TO CHANGE THE IP THANKS
-
here is the html code of the web page <input onkeypress="EnterKeyLeaves(this.id,event);" onblur="LeaveTextBox(this.id, 'tblARecords_0_hlPointsto', 'tblARecords_0', 'arecord', 'data', 'tblARecords_0_pointstotd', 'Points to');" onfocus="CheckForSameRow('tblARecords_0');" onclick="ARecordNoEdit=true;" onchange="ARecordChange('tblARecords0hdnRecModified', 'tblARecords_0', 0, '0');" style="width: 400px; display: none;" id="tblARecords_0_txtPointsto" value="2.125.69.0" name="tblARecords_0_txtPointsto" type="text"> im trying to change the value="2.125.69.0" id = "tblARecords_0_txtPointsto" how would i change the value ive tryed to submit it has a form but with no joy please any help would be helpful its a table input thanks rob <code sample tag> If $oForm.action <> "0" And Not StringInStr($oForm.action, '.php') Then ;submit _IEFormSubmit($oForm, 0) _IELoadWait($oIE) $gotourl1 = GUICtrlRead ( $URL1 ) _IENavigate($oIE,$gotourl1) Local $dnsinputform = _IEFormGetObjByName($oIE, "form1") Local $dnsinputbox = _IEFormElementGetObjByName($dnsinputform, "tblARecords_0_hlPointsto") _IEFormElementSetValue($dnsinputbox, $ip ,1) MsgBox(1,"new ip just ip call",$ip,2) $newvalue =_IEFormElementgetValue($dnsinputbox) MsgBox(1,"new value set",$dnsinputbox,2) _IEQuit($oIE) guictrlsetdata ($oldip,$ip) </code tag> now i set this up as if its a form but it not a form it a table and i need a little help please <code from firefox under focus code tag> <td id="tblARecords_0_pointstotd" class="datacell OneLinkNoTx" align="left"> <input id="tblARecords0hdnPreviousPointsto" value="2.125.69.0" </code from fire fox> i just need tho change the value thanks rob
-
here is the html code of the web page <input onkeypress="EnterKeyLeaves(this.id,event);" onblur="LeaveTextBox(this.id, 'tblARecords_0_hlPointsto', 'tblARecords_0', 'arecord', 'data', 'tblARecords_0_pointstotd', 'Points to');" onfocus="CheckForSameRow('tblARecords_0');" onclick="ARecordNoEdit=true;" onchange="ARecordChange('tblARecords0hdnRecModified', 'tblARecords_0', 0, '0');" style="width: 400px; display: none;" id="tblARecords_0_txtPointsto" value="2.125.69.0" name="tblARecords_0_txtPointsto" type="text"> im trying to change the value="2.125.69.0" id = "tblARecords_0_txtPointsto" how would i change the value ive tryed to submit it has a form but with no joy please any help would be helpful its a table input thanks rob If $oForm.action <> "0" And Not StringInStr($oForm.action, '.php') Then ;submit _IEFormSubmit($oForm, 0) _IELoadWait($oIE) $gotourl1 = GUICtrlRead ( $URL1 ) _IENavigate($oIE,$gotourl1) Local $dnsinputform = _IEFormGetObjByName($oIE, "form1") Local $dnsinputbox = _IEFormElementGetObjByName($dnsinputform, "tblARecords_0_hlPointsto") _IEFormElementSetValue($dnsinputbox, $ip ,1) MsgBox(1,"new ip just ip call",$ip,2) $newvalue =_IEFormElementgetValue($dnsinputbox) MsgBox(1,"new value set",$dnsinputbox,2) _IEQuit($oIE) guictrlsetdata ($oldip,$ip) now i set this up as if its a form but it not a form it a table and i need a little help please <code from firefox under focus code tag> <td id="tblARecords_0_pointstotd" class="datacell OneLinkNoTx" align="left"> <input id="tblARecords0hdnPreviousPointsto" value="2.125.69.0" i just need tho change the value thanks rob
-
it has an exit loop on error or carnt find file if you dont want it to loop remove wend or add exitloop befor wend i hope this helps when do you need the script to exit what the problem with this script
-
How to use autoit to load link in firefox
fbar replied to sex123's topic in AutoIt General Help and Support
YOULL HAVE TO TRAT IT LIKE A GUI WIN TITLE MATCH MODE AND SO ON EASY REALLY WHY NOT USE IE THO -
How to use autoit to load link in firefox
fbar replied to sex123's topic in AutoIt General Help and Support
_IIECREATE("YOUR URL",?) ; GOINTO HELP FILE AND FIND SETTING FOR LOAD HIDDEN I THINK IT .2 BUT YOU CAN GO INTO YOUR HELP FILE -
How to use autoit to load link in firefox
fbar replied to sex123's topic in AutoIt General Help and Support
#include <ff.au3> Local $uName="CHANGE ME The_E-Mail_adress_to_your_facebook_account" Local $Pwd="CHANGE ME Your facebook password" _FFstart() If _FFConnect(Default, Default, 3000) Then _FF_AutoLogin($uName, $Pwd, "CHANGE ME www.facebook.com","","keypress") if _FFLoadWait() Then MsgBox("","Your CHANGE MEFacebook is loaded","OK") endif JUST CHANGE THE CHANGE ME I HOPE THIS HELPED -
How to use autoit to load link in firefox
fbar replied to sex123's topic in AutoIt General Help and Support
this code below will log you into facebook to download the pdf just creat a link button or simly ad a url to your script for automated download i hoop this helped #include <ff.au3> Local $uName="The_E-Mail_adress_to_your_facebook_account" Local $Pwd="Your facebook password" _FFstart() If _FFConnect(Default, Default, 3000) Then _FF_AutoLogin($uName, $Pwd, "www.facebook.com","","keypress") if _FFLoadWait() Then MsgBox("","Your Facebook is loaded","OK") endif -
$myip = _getip msgbox(1,"my ip",$myip,2)
-
ok this is the html code from within the web page <input onkeypress="EnterKeyLeaves(this.id,event);" onblur="LeaveTextBox(this.id, 'tblARecords_0_hlPointsto', 'tblARecords_0', 'arecord', 'data', 'tblARecords_0_pointstotd', 'Points to');" onfocus="CheckForSameRow('tblARecords_0');" onclick="ARecordNoEdit=true;" onchange="ARecordChange('tblARecords0hdnRecModified', 'tblARecords_0', 0, '0');" style="width: 400px; display: none;" id="tblARecords_0_txtPointsto" value="2.125.69.0" name="tblARecords_0_txtPointsto" type="text"> im trying to chane the value wich is my ip value = "2.125.69.0" i belive its id is "tblARecords_0_txtPointsto" now if it was a form id simply (but its not a form its a table with input i belive) _IELoadWait ($oIE) Local $dnsinputform = _IEFormGetObjByName($oIE, "form1") Local $dnsinputbox = _IEFormElementGetObjByName($dnsinputform, "tblARecords_0_txtPointsto") $newip = _getip _IEFormElementSetValue($dnsinputbox, $newip ,1) please can some one help me with this little hold up thank you very much rob
-
something not right with ie any help good friends
fbar replied to fbar's topic in AutoIt General Help and Support
you are awesome thank you -
something not right with ie any help good friends
fbar replied to fbar's topic in AutoIt General Help and Support
hello kind sir madams can any one help me with this what i belive is is probly a simple fix dont give me source code if you feel you dont want to but please can some one explain to me whats going on thanks rlen.co.uk -
something not right with ie any help good friends
fbar replied to fbar's topic in AutoIt General Help and Support
could i convert this bit of code to work please any help <snip> -
something not right with ie any help good friends
fbar replied to fbar's topic in AutoIt General Help and Support
is this the answer to my question #include <IE.au3> $oIE = _IEAttach("SAP BusinessObjects") $oIE.document.parentWindow.execScript('var hplus = getHeaderPlusFrame();if (LIke) {hplus.onBtnListingClick();}',"javascript") -
Please kind Sir Mandam my mentor im trying to click on a button its not a link for that im sure <button value="1" class="_42ft _4jy0 PageLikeButton _4jy4 _517h _9c6" data-profileid="771956952882393" data-ownerid="u_0_2x" id="u_0_2y" type="submit"><i class="_3-8_ img sp_R2vJ7507u19 sx_d0839b"></i>Like</button> ive not just jumped in for help but i carnt seem to sus this out i keep going aroung in circuls how to i simply click the like button do i have to treat this button like a form and submit ive got 3 examples am trying and none seem to work can a master mentor please tell me what im doing wrong <snip> thank you