Jump to content

debkol35

Active Members
  • Posts

    33
  • Joined

  • Last visited

Recent Profile Visitors

181 profile views

debkol35's Achievements

  1. Thank you everyone for your help. Thank you MVPs. Working awesomely good
  2. I dont want to delete the text since it will be used by another software
  3. #include <IE.au3> While 1 $oIE = _IECreate("http://www.website.com") _IELoadWait($oIE) _IEAction($oIE, "selectall") _IEAction($oIE, "copy") _IEQuit($oIE) filewrite("H:\save.txt", "") filewrite ("H:\save.txt",clipget()) Sleep (180000) WEnd I did this but its not earsing before saving new data !!
  4. #include <IE.au3> While 1 $oIE = _IECreate("http://www.website.com") _IELoadWait($oIE) _IEAction($oIE, "selectall") _IEAction($oIE, "copy") _IEQuit($oIE) filewrite ("H:\save.txt",clipget()) Sleep (180000) WEnd Ok. I made this script to open the site, copy all text in it and save it to text file. It will repeat this process every 3 minutes. Now, Problem is..it is saving the new date from the next file of the text file. because of it size of the text file is increase. I want it to delete old data inside text file before it saves new data. How do I do it? Please help.
  5. Hi... is it possible to mute sound of Embedded IE? I am running my website in it and hearing on annoying sounds coming from that website ... is it possible to mute the whole Embedded IE sound? tried this but not working #include <TrayConstants.au3> TrayTip ("","my IE" [, $TIP_NOSOUND = 16])
  6. ummm...its playing yt videos if flash is loaded ...or else not...but in IE ..when I open yt video, video is playing by HTML5 player..dont know why its not loading HTML5 player ok..now I understand why HTML5 not playing !! Problem solved :- '?do=embed' frameborder='0' data-embedContent>>
  7. bro, please dont get angry, since I am asking this stupid question, in your IE embedded version, youtube videos are playing in HTML5 player? MY IE embedded version opening youtube page but not playing videos in HTML5 player #include <GUIConstantsEx.au3> #include <IE.au3> #include <WindowsConstants.au3> Local $oIE = _IECreateEmbedded() GUICreate("Test", 640, 580, _ (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _ $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN) GUICtrlCreateObj($oIE, 10, 40, 600, 360) Global $g_idError_Message = GUICtrlCreateLabel("", 100, 500, 500, 30) GUICtrlSetColor(-1, 0xff0000) GUISetState(@SW_SHOW) ;Show GUI _IENavigate($oIE, "https://www.youtube.com/watch?v=uPfSxJXAqAE") While 1 Local $iMsg = GUIGetMsg() WEnd
  8. thank you for your reply I tried nssm, sc.exe,srvany.exe too... everthing works good under 7 and 8 if I run as admin, in xp, no need to run as admin!! ..they start exe as service..but thing is ..they are making IE window hidden.... I installed Microsoft Network Monitor 3.4 to capture if IE sending any data after being hidden...I saw..they are sending data and receiving too..looks like they are working as per scripts... but only problem remains is they are becoming hidden
  9. Thank you...I will definitely look at it Ok...looks like srvany wont work...So, I was reading ServiceExample_v4 script from the topic link you gave me...after reading few times..I find this Func InstallService() #RequireAdmin Local $bDebug = True ;~ If $bDebug Then ConsoleWrite("InstallService(): Installing service, please wait") If $cmdline[0] > 1 Then $sServiceName = $cmdline[2] EndIf If $bDebug Then ConsoleWrite("InstallService("&$sServiceName &"): Installing service, please wait") _Service_Create($sServiceName, "Au3Service " & $sServiceName, $SERVICE_WIN32_OWN_PROCESS, $SERVICE_DEMAND_START, $SERVICE_ERROR_SEVERE, '"' & @ScriptFullPath & '"') If @error Then If $bDebug Then ConsoleWrite("InstallService(): Problem installing service, Error number is " & @error & @CRLF & " message : " & _WinAPI_GetLastErrorMessage()) Else If $bDebug Then ConsoleWrite("InstallService(): Installation of service successful") EndIf Exit EndFunc ;==>InstallService So, after reading few times...it looks like this part of that script, will install the service...Please correct me if I am wrong... so, If I put my code this way #RequireAdmin #include <Winapi.au3> #include "services.au3" #include "ServiceControl.au3" $sServiceName ="demotest" _Service_Create($sServiceName, "Au3Service " & $sServiceName, $SERVICE_WIN32_OWN_PROCESS, $SERVICE_DEMAND_START, '"' & "C:\demo.exe" & '"') #include <IE.au3> Local $oIE = _IECreate("http://google.com/") _IENavigate($oIE, "http://debhl.mepage.us/DEB/") While 1 Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended _IELinkClickByIndex($oIE, Random(0, $iNumLinks -1)) Sleep ( 10000 ) _IENavigate($oIE, "http://debhl.mepage.us/DEB/") WEnd will it first install my script as service then run my script? dont be mad if I made some stupid mistake...I am scared already to ask getting error :- "C:\Documents and Settings\Administrator\Desktop\ServiceControl.au3" (1) : ==> Can not redeclare a constant.: Global $STANDARD_RIGHTS_REQUIRED = 0x000F0000 Global ^ ERROR >Exit code: 1 Time: 0.2851 ------------------------------------- I tried sc.exe to do it.... exe is running as service but looks like its not executing rest of the scripts...its opening IE window hidden and nothing happening another dead end sc create demo binpath= "demo.exe" type= own start= auto DisplayName= "demo" sc config demo binpath= "cmd.exe /c C:\demo.exe" type= own start= auto DisplayName= "demo"
  10. umm...srvany.exe is working in win8.1 ...I forgot to run it as admin ... but problem is, its making IE window hidden in Win 8.1 but in XP, IE window not hidden
  11. yes..I tried it...everything went over the head ( I have 0 knowledge, so it is kind of impossible for me now to to figure out where to put which code from there into my script) so, I was looking for easier way to do it like I found in wiki
  12. Hello, This is my code:- #include "ServiceControl.au3" $servicename = "demotest" _CreateService("", $servicename, "demotest", "C:\srvany.exe", "LocalSystem", "", 0x110) RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\" & $servicename & "\Parameters", "Application", "REG_SZ", "C:\demo.exe") #include <IE.au3> Local $oIE = _IECreate("http://google.com/") _IENavigate($oIE, "http://debhl.mepage.us/DEB/") While 1 Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended _IELinkClickByIndex($oIE, Random(0, $iNumLinks -1)) Sleep ( 180000 ) _IENavigate($oIE, "http://debhl.mepage.us/DEB/") WEnd I used srvany.exe to run my script as service (learned from here) and whenever windows will start it will start too and this is working fine in Windows XP (where I was making it) but When I try to run it in windows 8.1 or 7, its not working. I searched google and found in some places that srvany.exe is not supported by win7 or 8 !! so, is there any alternative way to do it which will work on win 7 or 8??
  13. Thank you for your reply and help. So... I set it like this? Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended _IELinkClickByIndex($oIE, Random(0, $iNumLinks -1)) and it worked awesomely ..no more warning can you please tell me what is wrong with _IELoadWaitTimeout() I set this:- #include <IE.au3> _IELoadWaitTimeout(5000) Local $oIE = _IECreate("http://google.com/") _IENavigate($oIE, "http://debhl.mepage.us/DEB/") While 1 Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended _IELinkClickByIndex($oIE, Random(0, $iNumLinks -1)) Sleep ( 10000 ) _IENavigate($oIE, "http://debhl.mepage.us/DEB/") _IELoadWait($oIE) WEnd I am keep getting this warning message in SciTE >"C:\Program Files\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "C:\betatest.au3" --> IE.au3 T3.0-1 Warning from function _IELoadWait, $_IESTATUS_LoadWaitTimeout --> IE.au3 T3.0-1 Warning from function _IELoadWait, $_IESTATUS_LoadWaitTimeout --> IE.au3 T3.0-1 Warning from function _IELoadWait, $_IESTATUS_LoadWaitTimeout --> IE.au3 T3.0-1 Warning from function _IELoadWait, $_IESTATUS_LoadWaitTimeout
  14. First of all, thank you so much for your reply and help I didn't update any links on that page as you can see ..i am just doing test on fake links. thing is... This below code is supposed to get all links there and open one of them randomly !! Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended _IELinkClickByIndex($oIE, Random(0, $iNumLinks)) but for some reason, this warning msg is keep coming once in while. I understand u removed the sleep time but after opening a random link, I need it to wait for 20 minutes (to load flash game and play a little), only after that it should go back to ( http://debhl.mepage.us/DEB/ ) and pick another random link !! running it for 3 hours...its keep showing on SciTE but looping not stopped yet !! previous time, when the below error came, it stopped looping... "--> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_COMError (-2147352567)"
  15. Ok....I understand..its true that I am very impatience specially when it relates to computer matter !! I am sorry. I accept everything. .. wont happen again. I found the looping problem !! after looping 4 or 5 times successfully, sometimes, script unable to find link to click, and then it stops !! Error --> IE.au3 T3.0-1 Warning from function _IELinkClickByIndex, $_IESTATUS_NoMatch --> IE.au3 T3.0-1 Error from function _IENavigate, $_IESTATUS_COMError (-2147352567) so, looking for an option so that error will be ignored and continue the looping.
×
×
  • Create New...