Jump to content

danusko

Active Members
  • Posts

    84
  • Joined

  • Last visited

Profile Information

  • Location
    Slovakia

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

danusko's Achievements

Wayfarer

Wayfarer (2/7)

0

Reputation

  1. Thank you very much, This is exactly what i needed. This part of code is for me very helpfull.
  2. This code retur error on line 20. Array variable has incorrect number of subscripts or subscripts dimension range exceeded. I copied only abou 20 values from excel.
  3. Hi, i try to figured out how to do something like this. I have list of values e.g. in excel. After i copy it to the clipboard (e.g. list of 4 values) my script will take this 4 values and put each of this value to dynamic variable . After this it will be possible to call each of the variable and take out one of you want to use. E.g. i wil have this values 123 321 111 444 i wll copy all this to clipboard and then i will be able to call the first value with variable(1) and the second with variable(2) or with loop i will call step by step each of those variables. I tried something like this, but i am not so good in arrays thx for any help Opt("WinTitleMatchMode", -2) ; -2 = subStr, nocase AutoItSetOption("SendKeyDelay", 10) Global $ICO[1000] WinActivate("Excel") WinWaitActive("Excel") send("^c") ; upper i copy list of values to clip #include <Array.au3> Local $arr = [] ; NOTE this creates an array of size 1 with an empty string $Pamat = ClipGet() _ArrayAdd($arr, $Pamat) _ArrayAdd($arr, $Pamat) Local $ArrayICO = _FileListToArray($Pamat, "*") For $i = 1 To UBound($ArrayICO) - 1 ConsoleWrite('arr[' & $i & '] == ' & $ArrayICO[$i] & @CRLF) Next MsgBox(0, "vysledok ", $arr[2] ) exit
  4. For Notepad it is working but i need it for Chrome. Ok, i understand, that its not so easy to make it for chrome. I dont wanted to use some other programs or exe files to achive my goals. But thank you very much for your help.
  5. Thanks for help. So it doesnt exists solution in Autoit existing commands? it is neccsessary to use this drivers and exe files and so? thx
  6. Hi, i tried search to solve my problem but i wasnt succsessfull. I try to check, if any text on web page exists. i tried a lot of scripts, but nothings worked. Local $text = WinGetText("[Chrome_WidgetWin_1]", "get") MsgBox(0, "Text read was:", $text) my last try is this: Local $text = ControlGetText(WinGetTitle("Checking if Text Exists"), "Text", "[CLASS:Chrome_WidgetWin_1; INSTANCE:1]") I try to check if text "text" exists on the page. But this return blank. But on the page wich i try is this "text". Any suggestions? thx a lot
  7. sorry, now i get it, i should use WinGetTitle("") and no WinGetTitle("[active]") thx
  8. Hi, I have autoit program on my computer only portable version. I use Autoit vs 3.1.1.68 I want to use WinGetTitle but it always return 0. I want to use it for retriev windows title and then i want to switch between windows. E.g. - On start is msgbox where is info - "now choose yourt first window", i click first win - e.g. Excel, then 2. msgbox "now choose your 2. window" and i choose e.g. window folder. Then i want, that my script will switch between this windws and make my routine. But my test code for retrieve win title still return 0. I try this on comp in work. I dont have admin rights but i belive, that this is not a reason, bacause Au3.SPY, show me win title correctly. This is my sample code. Pls. any suggestions? thx a lot Sleep( 2000 ) ; Allows switching to some other window to see if can get its title. $title = WinGetTitle("[active]") If $title Then MsgBox(0, "", $title) Else MsgBox(0, "", "nothing") EndIf
  9. oh my god so simply....thx a lot
  10. hi all, pls. how can i do following. With my script i overwrite file, if is not opened. But now i set the atribute for this file as read-only and i want to overwrite it if is not opened. Is it possible? Because with this code it always return, "not possible to overwrite" thank you While 1 $file = FileOpen("c:\path\file.txt", 1) If $file = -1 Then ToolTip("not possible to overwrite", 350, 0) SLEEP(1000) else $file = FileCopy("c.\path2\file.txt", "c:\path\*.*",1)
  11. Hi all, please how can i show in tooltip bar user name, whos has opened concrete excel workbook? Is it possible with autoit 3.0.1? thx
  12. i´ve got it it works good thx very much
  13. sorry, one more question if i want to check, if the file in destination folder exist and if YES, than copy the file with the same name + date in format DDMMYY so if the name is "file", it will copy as file110309.xls how can i do this? thx a lot
×
×
  • Create New...