Jump to content
Sign in to follow this  

can i use clipget with dircreate

Recommended Posts

my goal is to create a folder on my desktop with somebodys name and the date, like "george 092210". or as plan b, use inputbox so i could type it my self. but my question is, can i use variables with dircreate? i tried to execute this and it didnt create the folder. i removed the "& $name" and it did. do i have to use clipput for this?

$name = clipget()
DirCreate ("C:\Documents and Settings\dtpstaff\Desktop\bc" & $name)

here is the whole thing:

;-------------------first name find text--------------------
WinActivate ("[class:Notepad]")

WinWaitActive ("[CLASS:Notepad]")
send ("{altdown}")
send ("E")
send ("F")
send ("{ALTUP}")
send ("!N")
send ("FIRST name")
send ("!F")
if Winactive ("Find") then 
    send ("{esc}")
send ("{right}")
send ("{SHIFTDOWN}")
send ("{down}")
send ("{shiftup}")
send ("^C")
$name = clipget()

DirCreate ("C:\Documents and Settings\dtpstaff\Desktop\bc" & $name)

<--a good way to start you day

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...