Jump to content

Tech63

Members
  • Posts

    15
  • Joined

  • Last visited

Recent Profile Visitors

114 profile views

Tech63's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you all very much! It's working just as i needed, and learned some new things in the process. Thanks for the example codes I really appreciate it!
  2. I have a re-sizable GUI with GRID like input boxes. Each box will only contain 2-3 insertable characters. There are few features i would like to add, just a newbie and can't figure out it. When i resize the gui, the input boxes width expands to size of the GUI, but the Height remains the same, is there anyway to increase to Height when the gui is resized? Also, would like to add a "reset" button at the bottom to Clear any text that has been typed into all the fields. Any help or pointers would be greatly appreciated. Thank you #include <GUIConstants.au3> Example() Func Example() Local $hGUI = GUICreate("DG", 132, 125, -1, -1, $WS_SIZEBOX + $WS_EX_LAYERED) GUISetState(@SW_SHOW, $hGUI) WinSetTrans($hGUI, "", 170) GUICtrlCreateInput("", 0, 0, 33, 25) GUICtrlCreateInput("", 33, 0, 34, 25) GUICtrlCreateInput("", 67, 0, 34, 25) GUICtrlCreateInput("", 100, 0, 34, 25) GUICtrlCreateInput("", 0, 25, 33, 25) GUICtrlCreateInput("", 33, 25, 34, 25) GUICtrlCreateInput("", 67, 25, 34, 25) GUICtrlCreateInput("", 100, 25, 34, 25) GUICtrlCreateInput("", 0, 50, 33, 25) GUICtrlCreateInput("", 33, 50, 34, 25) GUICtrlCreateInput("", 67, 50, 34, 25) GUICtrlCreateInput("", 100, 50, 34, 25) GUICtrlCreateInput("", 0, 75, 33, 25) GUICtrlCreateInput("", 33, 75, 34, 25) GUICtrlCreateInput("", 67, 75, 34, 25) GUICtrlCreateInput("", 100, 75, 34, 25) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete($hGUI) EndFunc ;==>Example
  3. Thanks for the code! This is now working as needed! You guys saved me tons of time. Can't thank you enough!
  4. Thanks! upgraded and ran the script. The files move to the root folder correctly, but the empty folders still exist.
  5. Surya, I changed $rootdir to the correct path, when i try to run i get an error.
  6. Scenario: I have a scans folder on my server, When i scan from my multifunction scanner to my "scans" folder on the server it makes a bunch of random subfolders under the "scans" directory that contain the scanned images .jpg. Ideally i need only the .jpg files on the root of the "scans" folder and not all of the subfolders. Is there a way i can copy only the files(.jpg) of all subfolders (subfolders have random names such as "image-0023445845") back to the root of the "scans" directory and remove the subfolders that were created?
  7. I'm not sure which variant of the WinActivate to use. I want to call a custom function only after a specific window appears. Perhaps an IF Then statement containing some form of WinActive? Thanks!
  8. Thanks Adam, Of course I overlooked that, this stuff drives me nuts sometimes...
  9. Doesn't seem to be working FileInstall("C:\Documents and Settings\User\Desktop\xx.config", "C:\Documents and Settings\User\My Documents\Test\ConfigFolder",1) Just testing it locally, the file is on my desktop and would like to overwrite the existing xx.config file in my docstestconfigfolder Do I have something wrong here?
  10. Hi, I am trying to save a config file for a program overtop of the default config file. The default config file is stored @UserProfileDir & "My Documentsxx.config. The catch... This new config file i have is stored on my pc, I want to save this on many remote pc's that do not have access to my pc. And i'd rather not copy the config file and the script to each pc, I would just like to copy the script and let it run. Is there a way to include it in the script so when i compile it, i wont need to keep the new config file everywhere the script goes? I tried # <include <Filepathxx.config> just returned an error. I know how to write the code to replace the existing config with the new config... that is if the new config was stored in the same location on all the pcs, but sadly it does not exist on all the pcs. Just trying to save some time from doing the manual way.
  11. DirRemove(@UserProfileDir & "\Documents\FOLDER", 1) The path to My Documents differs from XP to 7, the script works well in windows 7 but does not remove this document in XP. I tried a combination of things for xp like : DirRemove(EnvGet("userprofile") & "\MyDocuments\BlueZone", 1) The path in xp is C :Documents and Settings user name My Documents
  12. JLogan3o13, That did the trick, thanks! and i'll play around with the different methods mentioned as well. there is more to the script than the deletion of just 1 folder, so i'm sure ill run into something else along the way thanks again
  13. I will be using DirRemove Script to remove a Folder from various different users on different pc's. The folder that needs deleted is in the same location on each pc. C:Userscurrent logged-in userAppDataLocalTempFolder Is there a wild card of some sort i can insert for current logged-in user? so that for the same script will work regardless of what user is logged in. I know, newbie question. I did some searching and couldn't come up with anything, may be just a common knowledge type thing.
×
×
  • Create New...