
WhiteSpace
Members-
Posts
19 -
Joined
-
Last visited
About WhiteSpace
- Birthday 10/02/1975
Profile Information
-
Location
United States
WhiteSpace's Achievements

Seeker (1/7)
0
Reputation
-
WhiteSpace reacted to a post in a topic: sending a value to another process without GUI
-
sending a value to another process without GUI
WhiteSpace replied to Uriziel01's topic in AutoIt General Help and Support
Yashied thank you so much for your post, it will come in handy since I need to pass data between apps. -
WhiteSpace reacted to a post in a topic: GUI beginner attempt, cash register
-
GUI beginner attempt, cash register
WhiteSpace replied to CroatianPig's topic in AutoIt GUI Help and Support
Edano, you just hurt my brain with that awesome display of code, I'm going to attempt to glean some knowledge from that. -
GUI beginner attempt, cash register
WhiteSpace replied to CroatianPig's topic in AutoIt GUI Help and Support
I was thinking along the same lines as Edano, if you use a function to pass your button to you can read that button and add it to your reply. I probably didn't do this as well as some of the pros but it looks like it works on my end. GUICreate ("Articles", 975, 635, 500, 100) ;==> crta GUI Local $font $font = "Comic Sans MS" GUISetFont (20, 400, "", $font) $ware_1 = GUICtrlCreateButton ("Product 1", 5, 5, 250, 100) $ware_2 = GUICtrlCreateButton ("Product 2", 5, 110, 250, 100) $ware_3 = GUICtrlCreateButton ("Product 3", 5, 215, 250, 100) $ware_4 = GUICtrlCreateButton ("Product 4", 5, 320, 250, 100) $ware_5 = GUICtrlCreateButton ("Product 5", 5, 425, 250, 100) $ware_6 = GUICtrlCreateButton ("Product 6", 5, 530, 250, 100) $ware_7 = GUICtrlCreateButton ("Product 7", 260, 5, 250, 100) $ware_8 = GUICtrlCreateButton ("Product 8", 260, 110, 250, 100) $ware_9 = GUICtrlCreateButton ("Product 9", 260, 215, 250, 100) $ware_10 = GUICtrlCreateButton ("Product 10", 260, 320, 250, 100) $ware_11 = GUICtrlCreateButton ("Product 11", 260, 425, 250, 100) $ware_12 = GUICtrlCreateButton ("Product 12", 260, 530, 250, 100) $ware_13 = GUICtrlCreateButton ("Product 13", 515, 5, 250, 100) $ware_14 = GUICtrlCreateButton ("Product 14", 515, 110, 250, 100) $ware_15 = GUICtrlCreateButton ("Product 15", 515, 215, 250, 100) $ware_16 = GUICtrlCreateButton ("Product 16", 515, 320, 250, 100) $ware_17 = GUICtrlCreateButton ("Product 17", 515, 425, 250, 100) $ware_18 = GUICtrlCreateButton ("Product 18", 515, 530, 250, 100) $Kraj = GUICtrlCreateButton ("Finish", 770, 5, 200, 625) GUISetState() ;==> shows GUI while 1 $msg = GUIGetMsg() ;==> proves GUI select case $msg = $ware_1 _EvaluateQuantity($ware_1) case $msg = $ware_2 _EvaluateQuantity($ware_2) case $msg = $ware_3 _EvaluateQuantity($ware_3) case $msg = $ware_4 _EvaluateQuantity($ware_4) case $msg = $ware_5 _EvaluateQuantity($ware_5) case $msg = $ware_6 _EvaluateQuantity($ware_6) case $msg = $ware_7 _EvaluateQuantity($ware_7) case $msg = $ware_8 _EvaluateQuantity($ware_8) case $msg = $ware_9 _EvaluateQuantity($ware_9) case $msg = $ware_10 _EvaluateQuantity($ware_10) case $msg = $ware_11 _EvaluateQuantity($ware_11) case $msg = $ware_12 _EvaluateQuantity($ware_12) case $msg = $ware_13 _EvaluateQuantity($ware_13) case $msg = $ware_14 _EvaluateQuantity($ware_14) case $msg = $ware_15 _EvaluateQuantity($ware_15) case $msg = $ware_16 _EvaluateQuantity($ware_16) case $msg = $ware_17 _EvaluateQuantity($ware_17) case $msg = $ware_18 _EvaluateQuantity($ware_18) case $msg = $Kraj Exit case $msg = -3 ; 3 = little cross (close) Exit EndSelect WEnd ;\\\\\\\\\\\\\\\\\\\\\\\\\\\\ FUNCTIONS \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Func _EvaluateQuantity(ByRef $button) $quantity = InputBox ("", "Quantity", "", "", 500, 250, 500, 200, "", "") $ans = MsgBox (4,"","You chose an article: " & GUICtrlRead($button) & ", and quantity: " & $quantity) EndFunc -
I don't know of a way to see the information with the Autoit Window Info, but Access Databases can usually be connected through via database connection methods. See link for more info
-
If powershell is in your path variables, you should be able to call it with the Run command using the @Comspec macro or ShellExecute statement.
-
Quick questions from a complete newbie!
WhiteSpace replied to skyinthesea's topic in AutoIt General Help and Support
I agree with JLogan, I started out using X and Y coordinates but quickly realized there would be issues and unknowns. I recommend ControlClick or ControlSetText commands. You can find the controls using the AutoIT Window Info applet. -
Embed Dos Command Window to GUI
WhiteSpace replied to Wolfteeth's topic in AutoIt GUI Help and Support
I thought it might give some issues after I posted the code; I wrote it a couple years back and I don't update my AutoIT version or scripts as much as I should. I'm glad I could be of some help though. -
How do you exclude a file type?
WhiteSpace replied to RBrown1375's topic in AutoIt General Help and Support
I'm not sure if this will help exactly the way you are looking for but after your array is built you can use _ArraySearch to find any Batman.PST instances and _ArrayDelete the index. -
Embed Dos Command Window to GUI
WhiteSpace replied to Wolfteeth's topic in AutoIt GUI Help and Support
Here is a quick and dirty script I have for returning command prompt data via the StdoutRead method. #include <GUIConstants.au3> #include <Array.au3> #Include <GuiEdit.au3> #comments-start This script allows DOS commands to be run via a GUI and output to the GUI Edit window. The GUI can also output text in the GUI Edit window to be placed in the clipboard for easy retrieval. #comments-end ;$command = ('dir /w c:') GUICreate("Dir",400,340) $Command = GUICtrlCreateInput("",10,280,300,20) $Output = GUICtrlCreateEdit("",10,10,380,255) $GoBtn = GUICtrlCreateButton("Go",270,305,40,20) $Clip = GUICtrlCreateButton("Clipboard",320,305,65,20) GUICtrlSetState($Clip, $GUI_DISABLE) GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $Clip Then $data = _GUICtrlEdit_GetText($Output) ClipPut($data) MsgBox(0,"","Contents Stored In Clipboard",.5) EndIf If $msg = $GoBtn Then _GUICtrlEdit_SetText($Output,"") $command = GUICtrlRead($Command) ;MsgBox(0,"",$command) _getDOSOutput($command) GUICtrlSetState($Clip, $GUI_ENABLE) EndIf WEnd Func _getDOSOutput($command) Local $text = '', $Pid = Run(@ComSpec & ' /c ' & $command, '', @SW_HIDE, 2 + 4) While 1 $text &= StdoutRead($Pid) If @error Then ExitLoop WEnd GUICtrlSetData($Output,$text) EndFunc;==>_getDOSOutput -
Thank you So much Greenhorn and Aec both for your help. I tried the code you sent me Greenhorn and it fixed my issue! I had attempted to use StderrRead before in another program and just received a number code so I wasn't sure what that was, I didn't think data output would fall under that category.
-
I tried what you suggested and I'm still not getting any output display, could it be that it's because the data is a constant feed and it can't check a continuous feed at specified intervals?
-
Ok, I don't know if this type of issue can be handled by sending standard output to a variable, I am using curl, a command line ftp program to send a zipped file over a secure connection and have the output (which is a data time/sent meter) display in the GUI instead of having to display the command prompt. I've looked through the help files and many posts on the forum but I either see something that doesn't apply or i'm just not grasping the idea. When I attempt to send the standard output to the window I get nothing. Here's a portion of the code, I'm not sure if the standard output will do this since the information is a constant stream, I've even waited until the file was sent but still receive no output of any kind. Do _getDOSOutput('c:\wakeforestftp\curl\curl.exe --ftp-ssl -v -k -T c:\testdata\' & $NameAndDate & '*.zip ftp://ftpserverinfo') Until Not ProcessExists("curl.exe") Sleep(2000) Func _getDOSOutput($command) Local $text = '', $Pid = Run(@ComSpec & ' /c ' & $command, '', @SW_HIDE, 2 + 4) While 1 $text &= StdoutRead($Pid) If @error Then ExitLoop $Arr = StringSplit($text,@LF) _ArrayDisplay($Arr) For $x = 1 To UBound($Arr) - 1 $Arr[$x] = StringTrimRight($Arr[$x],1) _GUICtrlListBox_InsertString($Dataret,$Arr[$x],-1) Next WEnd ;Return GUICtrlSetData($Output,$text) EndFunc ;==>_getDOSOutput
-
Have you tried controlgettext or wingettext?
-
I had to do something similar to this a week ago but for Outlook keys. I'm sure this code is pretty drawn out and lengthy for what it does, but I am still learning and I did get it working. I hope this is remotely close to what you are looking for. Long live AutoIT For $z = 1 to 100 $Ivar = RegEnumKey("HKEY_USERS", $z) If @error <> 0 then ExitLoop If StringLeft($Ivar, 41) = "S-1-5-21-484763869-1708537768-1177238915-" Then $tempvar = StringRight($Ivar, 6) $tempvar = Number($tempvar) If $tempvar <> 0 then Call ("Continue") Next Func Continue () For $a = 1 to 100 $var = RegEnumKey("HKEY_USERS\S-1-5-21-484763869-1708537768-1177238915-" & $tempvar & "\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS MESSAGING SUBSYSTEM\PROFILES", $a) If @error <> 0 then ExitLoop For $b = 1 to 100 $var2 = RegEnumKey("HKEY_USERS\S-1-5-21-484763869-1708537768-1177238915-" & $tempvar & "\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS MESSAGING SUBSYSTEM\PROFILES" & "\" & $var, $b) If @error <> 0 then ExitLoop For $c = 1 to 100 $var3 = RegEnumVal("HKEY_USERS\S-1-5-21-484763869-1708537768-1177238915-" & $tempvar & "\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS MESSAGING SUBSYSTEM\PROFILES\" & $var & "\" & $var2, $c) If @error <> 0 then ExitLoop $var4 = RegRead("HKEY_USERS\S-1-5-21-484763869-1708537768-1177238915-" & $tempvar & "\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS MESSAGING SUBSYSTEM\PROFILES\" & $var & "\" & $var2 & "\", $var3) If StringInStr($var4,"oldserver") Then $tempvar2 = StringReplace($var4,"oldserver","newserver") RegWrite("HKEY_USERS\S-1-5-21-484763869-1708537768-1177238915-" & $tempvar & "\SOFTWARE\MICROSOFT\WINDOWS NT\CURRENTVERSION\WINDOWS MESSAGING SUBSYSTEM\PROFILES\" & $var & "\" & $var2, $var3, "REG_SZ", $tempvar2) EndIf Next Next Next EndFunc
-
Bonebreaker has created a snake game, here is the link where you can check out his code. http://www.autoitscript.com/forum/index.ph...45&hl=snake