Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/05/2013 in all areas

  1. jdelaney

    reading data input

    Shot in the dark: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 382, 256) $site = GUICtrlCreateInput("", 16, 48, 169, 21) $Extension = GUICtrlCreateInput("", 200, 50, 161, 21) $Button1 = GUICtrlCreateButton("Link create", 88, 176, 195, 33) $Label1 = GUICtrlCreateLabel("Link:", 24, 88, 27, 17) $Label2 = GUICtrlCreateLabel("Sample Link:http://autoitscript.com", 16, 24, 167, 20) $Label3 = GUICtrlCreateLabel("Extension:AbFrT", 200, 24, 113, 17) $Link = GUICtrlCreateInput("", 24, 112, 337, 21) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($Link, GUICtrlRead($site) & GUICtrlRead($Extension)) EndSwitch WEnd
    1 point
  2. tuffgong, But the label is evidently not! You can use my StringSize UDF to get the size of any text in any font to check how big the label should be - or post your code and I will look into it for you. M23
    1 point
  3. guinness

    Always on top InputBox

    Exit, It can be done with no "magic number" and no additional GUI. Enjoy... InputBox('Test', 'Please enter something', 'Topmost', '', '', '', 100, 100, 0, WinGetHandle(AutoItWinGetTitle()) * WinSetOnTop(AutoItWinGetTitle(), '', 1))
    1 point
  4. boththose, I remember it being explained in another thread a long time ago along these lines: When you declare a variable AutoIt does some checking to see if the name has been used before and in what scope. So declaring it inside a loop just causes unnecessary overhead. Although this overhead is minimal in most cases, as demonstrated by jchd's timings above, why make the CPU work harder than it needs to? Personally I do not agree with his view that declaring the variables inside loop is "pretty useful", but as we are a broad church here and it makes so little difference, I am certainly not going to enter into an argument - there are more important things in life. M23
    1 point
  5. I beg to differ. Local variables within loops are not forcibly wrong practice. Blindly chasing such construct may result in much poorer code.
    1 point
  6. I have absolutely no idea what this script is for, from reading either the title, or the first post.
    1 point
  7. this is just what i was asking Santa for christmas!! jk lol, But really this is absolutely AMAZING!.
    1 point
×
×
  • Create New...