Jump to content

airrs

Active Members
  • Posts

    24
  • Joined

  • Last visited

airrs's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. but i do i have a list with data which must be changed sometimes. if someone from my team ison vacation or ill and a change happened in this time, he just need an exported list (export function already works) to import in the existing list. so on list needs to be overwritten. @Spiff59, thanks thats exactly what i needed. yeah, but just using other programs isn't very flexible and kinda lazy
  2. hi guys, i have a little problem with a function here. i have two *.ini files, both filled with different and similar strings. now i want to compare the two lists. if there is a string which isn't in the list, the string should be added to the list. Func _BuIm() local $length $BuImOld = IniReadSection("Directory of the *.ini file","SectionName") $import = FileOpenDialog("Open Bu List", "Directory of the New file", "(*.ini)") $BuImNew = IniReadSection($import, "SectionName") For $k = 1 to $BuImOld[0][0] $length = $length + 1 Next $length = $length - 1 ; it starts with one but my list starts with 0 For $i = 1 to $BuImNew[0][0] For $j = 1 to $BuImOld[0][0] If $BuImNew[$i][1] <> $BuImOld [$j][1] Then $length = $length + 1 $x = $BuImNew[$i][1] _IniWrite("Directory of the *.ini file", "sectionName", $length, $x) ElseIf $BuImNew[$i][1] == $BuImOld [$j][1] Then ExitLoop EndIf Next Next _MainWin() EndFunc the function just do weird things and i dont know where the mistake is. can you please help me?
  3. could the problem be the firefox version?(v14.0.1) or is there at least another way to fix my problem?
  4. hi there i need to change the source of a page, cause it have dynamic IDs. reading the html file is not a problem, the change of the resulting string either. but the FFWriteHTML part doesn't work. for testing i used the ffau3 example page #Include <FF.au3> _FFStart("http://ff-au3-example.thorsten-willert.de/") $sHTML = _FFReadHTML("html") $a = StringInStr($sHTML,"Benutzerdaten") $b = StringReplace($sHTML,$a,"asdfasdfasdf") ;MsgBox(4096,"",$b) _FFWriteHTML($b,"html") can someone tell me what i'm doing wrong? because when i change the source in firebug it works. greets airrs
  5. so you want the red star to swirl out after clicking exit? p.s. can't you just put your request in normal sentences, so i don't have to ask anytime? p.p.s. put your autoit source betweeen "[auto]" and "[/auto]"
  6. i don't know exactly what you want. if i get it right you just have to put the source of the spiraling gui in a func and call it right before you exit the programm. like Func _exit() spiralingGUI() exit EndFunc and by the way your first source have errors. when i paste your source as it is i get an error in line 23 ($Struct &amp;amp;amp;= 'int[2];') and i really dont know what this line should do.
  7. Hi i tried several ways but i don't know how to click this button with FF.au3 <input type="button" onclick="doLogin();" value="Log In" name="login"> i tried FFClick, FFFormSubmit and (don't know why) FFLinkClick and nothing of it worked. i hope someone knows how to do it. greets airrs
  8. i know. it's just for testuse. i add a password to access this commentbox later. and i have a notebook. but i cant copy paste in that so how can i solve my problem?
  9. this is part of a bigger script (you already helped me on this one with the cpu issues) the basic idea of my script is to check if i have pressed CTRL+C, then a pop up window shows up with a selection of different pages. After the selection, the particular page opens in a new firefox tab, fill in the string i've copied before and click on search. the case with the commet field: usually i forget very much things i look up on the internet (videos, articles, websites...) and i just created this simple page with a webpage builder to have a place where i can store such things, to help myself not to forget so much
  10. haven't you read his post?
  11. Hi, my script should open a page and fill in some text in a textarea. the page opens but i get this error all the time __FFSend: try{window.content.top.document.getElementsByName('comment6105272054')[0].value='testtesttest'}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err _FFSetValue ==> No match: $sElement: .getElementsByName('comment6105272054')[0] __FFSend: try{window.content.top.document.forms[0].elements.length;}catch(e){'_FFCmd_Err';}; __FFRecv: _FFCmd_Err _FFFormSubmit ==> No match: No Elements found in form: forms[0] here my source #include <FF.au3> If ProcessExists("firefox.exe") = 0 Then run("C:Program FilesMozilla Firefoxfirefox.exe") EndIf _FFConnect() _FFTabAdd("http://#############",true,true) _FFAction("max") _FFLoadWait() _FFSetValue("testtesttest","comment6105272054","name") _FFFormsubmit() here the source snippet of the textarea <div> <label class="required" for="comment6105272054">Eintrag: *</label> <br> <textarea id="comment6105272054" cols="80" style="width: 99%" rows="6" name="comment"><textarea> </div> and the url of the page, just in case http://############/ i hope someone can help me, because after 2 hours of searching through the web, i have no idea anymore greets airrs
  12. thanks a lot. now my pc is silent again @November don't be sad. next time you're faster
  13. i can't help you with this particularly, but maybe in another way. i used teamviewer too for a short time, but then i had windows remote desktop in school. it's definitly better and not hard to set up. http://windows.microsoft.com/en-us/windows-vista/Connect-to-another-computer-using-Remote-Desktop-Connection
  14. Hi there i made a script for checking if i copied something with ctrl+c. then a window pops up with a selection of some websites. you choose one and then search starts on the chosen site with the copied string. no problems until here. but if the programm runs the cpu usage grows up to 50%, a bit too much for such a tiny programm. i guess the problem lays within the while loop in the _check() function. i hope someone can figure it out and maybe help me here the file i included for checking if the buttons are pressed ( is there another/better way?) IsPressedEx_UDF.au3 here my source #include <FF.au3> #include <IsPressedEx_UDF.au3> Local $hDLL = DllOpen("user32.dll") Global $ram = "" Global $page[10][2] HotKeySet("{ESC}","_Quit") $page[0][0] = "http://www.google.de/" $page[0][1] = "gbqfq" $page[1][0] = "http://wikipedia.de/" $page[1][1] = "txtSearch" $page[2][0] = "www.youtube.com/" $page[2][1] = "masthead-search-term" $page[3][0] = "www.imdb.com" $page[3][1] = "navbar-query" _start() Func _start() $startWin = GUICreate("Start",115,70,-1,-1,0x80880000) GUICtrlCreateLabel("HELLO" & @CRLF & " - Welcome to copyBOX",5,5) $btn = GUICtrlCreateButton("START",65,40,-1,-1,0x0001) GUISetState(@SW_SHOW,$startWin) WHile 1 $msg = GUIGetMsg(1) Select Case $msg[0] = $btn GUISetState(@SW_HIDE,$startWin) GUIDelete($StartWin) _check() Case $msg[0] = -3 ;$GUI_EVENT_CLOSE ExitLoop EndSelect WEnd EndFunc Func _check() Local $pCh = "" While 1 $press = _IsPressedEx("{CTRL}+C", $hDll) If $press = 1 Then $ram = ClipGet() $mPos = MouseGetPos() $choose = GUICreate("choose",200,160,$mPos[0],$mPos[1],0x80880000) $rb1 = GUICtrlCreateRadio("google",40,50) GUICtrlSetState($rb1, 1) ;$GUI_CHECKED $rb2 = GUICtrlCreateRadio("wiki",40,75) $rb3 = GUICtrlCreateRadio("youTube",40,100) $rb4 = GUICtrlCreateRadio("IMDb",40,125) $btn = GUICtrlCreateButton("go",65,20,-1,-1,0x0001) $btn2 = GUICtrlCreateButton("don't",95,20,-1,-1) GUISetState(@SW_SHOW, $choose) While 1 $msg = GUIGetMsg(1) Select Case $msg[0] = $btn If GUICtrlRead($rb1) = 1 Then $pCh = 0 GUISetState(@SW_HIDE, $choose) GUIDelete($choose) _openParse($pCh,$ram) ElseIf GUICtrlRead($rb2) = 1 Then $pCh = 1 GUISetState(@SW_HIDE, $choose) GUIDelete($choose) _openParse($pCh,$ram) ElseIf GUICtrlRead($rb3) = 1 Then $pCh = 2 GUISetState(@SW_HIDE, $choose) GUIDelete($choose) _openParse($pCh,$ram) ElseIf GUICtrlRead($rb4) = 1 Then $pCh = 3 GUISetState(@SW_HIDE, $choose) GUIDelete($choose) _openParse($pCh,$ram) EndIf Case $msg[0] = $btn2 GUISetState(@SW_HIDE, $choose) ExitLoop Case $msg[0] = -3;$GUI_EVENT_CLOSE ExitLoop EndSelect WEnd Endif WEnd EndFunc Func _openParse($p,$r) If ProcessExists("firefox.exe") = 0 Then run("C:\Program Files\Mozilla Firefox\firefox.exe") EndIf _FFConnect() _FFTabAdd($page[$p][0],true,true) _FFAction("max") _FFSetValue($r,$page[$p][1],"id") _FFFormsubmit() _check() EndFunc Func _Quit() DllClose($hDll) Exit EndFunc greets airrs
×
×
  • Create New...