Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/02/2016 in all areas

  1. The number to get is dynamically javascript generated depending on the date $date = "29/06/2016" $code = StringRegExpReplace($date, '(\d+)/(\d+)/(\d+)', "$3$2$1") $url = "http://www.millipiyango.gov.tr/sonuclar/cekilisler/sanstopu/" & $code & ".json" $data = BinaryToString(InetRead($url)) $receivedata = StringRegExp($data, 'hafta":(\d+)', 1) MsgBox(0,"test", "Hafta:" & $receivedata[0])
    1 point
  2. The good syntax for MsgBox should be MsgBox(0,"test", "Hafta:" & $receivedata[0])
    1 point
  3. i think what Danyfirex means is that you save the control id $g_idEdit (which is a number), instead of reading it to save its contents. replace this line: FileWriteLine($file, _NowDate()& " " & _nowTime() & " " &$g_idEdit) with this: FileWriteLine($file, _NowDate()& " " & _nowTime() & " " &GUICtrlRead($g_idEdit))
    1 point
  4. You make it look so simple ;-) Thanks for the help! And the pause in a loop is something I didnt know that the software allready take care of that, every day I learn something new.
    1 point
  5. I said yes, but you also need to understand HTML and CSS. This tutorial explains it all https://developer.chrome.com/extensions/getstarted
    1 point
  6. JLogan3o13

    Shuffle string

    AutoIt is like Burger King, you get so many great ways of doing things, you can have it your way
    1 point
  7. Melba23

    ListView Help

    232showtime, No problem - I am always happy to help those who make an effort. As to an example of dummy controls, does the script you posted not explain how they work? If not, then here is an explanation of what is happening: You create a dummy control in your GUI - this cannot be seen or actioned, other than by the GUICtrlSendToDummy function (or by an Accelerator key), but does have a ControlID which you can detect via GUIGetMsg, When you detect a doubleclick on a ListView item in the Windows message handler, you fire the dummy control and also set a value within it (in this case, the index of the item itself) The dummy control now fires and is detected by GUIGetMsg. The code then runs the _column_gui function and retrieves the stored index to pass as a parameter. The function runs and uses that parameter to retrieve the text of the item. Any clearer? And if you want to edit the retrieved text, I suggest you create the edits in which you display the 3 parts without the $ES_READONLY style. I suggest using the style constants rather then "magic numbers" - then you would have realised that 0x0800 forced the edit to be readonly. M23
    1 point
  8. Hi, I used controlclick with coords in the past without problem but somehow I couldn't get it work today. I am trying to click a button with this code. What happens is that it seems to click on the control (I have a way to tell it) but it doesn't click at the button I want. ControlClick("Digital Oscilloscope", "", "[CLASS:ScrollToolbar; INSTANCE:1]", "Left", "1", 295, 11) In the same script I have the following, controlclick without coords, which works fine. ControlClick("Digital Oscilloscope", "", "[CLASS:ComboBox; INSTANCE:3]") Can anyone help?
    1 point
  9. Hello lichadec, Welcome to the AutoIt Forums The way your script is using the pixel coords may differ from the way you obtained them. Use 'AutoIt Window Info' tool to obtain the correct coords. it has 3 options in which to grab the coords: 1. Screen - Utilizes pixel coords based on your full screen (which is the default for which scripts search with) 2. Window - Utilizes pixel coords based on the entire window in which you are active in. 3. Client - utilizes pixel coords based on the client section of the window which you are active in. After which you can use Opt() or AutoItSetOption() to tell your script how to use pixel coords with these examples: Opt('PixelCoordMode',0) ;Uses pixel coords relative to the defined Window Opt('PixelCoordMode',1) ;Uses pixel coords relative to the absolute screen coordinates Opt('PixelCoordMode',2) ;Uses pixel coords relative to the client area fo the defined Window AutoItSetOption('PixelCoordMode',0) ;Uses pixel coords relative to the defined Window AutoItSetOption('PixelCoordMode',1) ;Uses pixel coords relative to the absolute screen coordinates AutoItSetOption('PixelCoordMode',2) ;Uses pixel coords relative to the client area fo the defined Window Realm
    1 point
×
×
  • Create New...