Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/20/2016 in all areas

  1. This script is based on algorithm code from EnrMa. Updated: January 22, 2018 Made improvements. Changes are in the script header. Known Issues: AutoIt x64 does not work properly with this script. Download: LocalProxyServer_v1.00.zip
    1 point
  2. Sure, that shouldn't be that difficult: #include <EditConstants.au3> Global $Form1 = GUICreate("Test", 250, 137, 181, 124) Global $Label1 = GUICtrlCreateLabel("Number", 18, 44, 45, 27) Global $Input1 = GUICtrlCreateEdit("a", 88, 42, 120, 60,$ES_MULTILINE) Global $Solve = GUICtrlCreateButton("Solve", 160, 112, 80, 17) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case -3 Exit Case $Solve $result = StringSplit(GUICtrlRead($Input1),",;") for $x = 1 to $result[0] Equation($result[$x]) Next EndSwitch WEnd Func Equation($example) $a= $example^2 MsgBox ( 48, "solution", "The solution of " & $example & "^2 is " & $a) EndFunc Jos PS:No need to qoute my post as we can see what I wrote already
    1 point
  3. Something like this: Global $Form1 = GUICreate("Test", 250, 137, 181, 124) Global $Label1 = GUICtrlCreateLabel("Number", 18, 44, 45, 27) Global $Input1 = GUICtrlCreateInput("a", 88, 42, 60, 21) Global $Solve = GUICtrlCreateButton("Solve", 160, 42, 80, 17) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case -3 Exit Case $Solve $result = StringSplit(GUICtrlRead($Input1),",;") for $x = 1 to $result[0] Equation($result[$x]) Next EndSwitch WEnd Func Equation($example) $a= $example^2 MsgBox ( 48, "solution", "The solution of " & $example & "^2 is " & $a) EndFunc Jos
    1 point
  4. This is not a "test it for me" forum, it is a forum for helping people with their scripts. If you don't know whether you even have a problem I would suggest waiting until you can test it yourself.
    1 point
  5. i suggest reading https://www.autoitscript.com/wiki/Interrupting_a_running_function
    1 point
  6. "Send" keystrokes worked into XP CMD windows, but injecting keystrokes into console apps is now blocked by Microsoft, and has been since 2008R2: http://blogs.technet.com/b/askperf/archive/2009/10/05/windows-7-windows-server-2008-r2-console-host.aspx This was a nasty shock for me when I developed a large testing app in XP and it did not work in the 2008R2 deployment environment. However, I found that you can redirect input. My particular use cases required specific, predictable keystrokes to start command line apps and provide command line inputs, so I created text files and started my CMD windows with the input redirected from the text file. This works fine but you have to know the entire input session from beginning to end for this to work, as you can't modify the input files once the session has begun. If you want to start a CMD and inject commands on-the-fly, then you will have to do something tricky, such as start a CMD window with a BAT file that checks another BAT file at intervals, and executes the commands in there.
    1 point
×
×
  • Create New...