Jump to content

Newb need help =D


Recommended Posts

Well i'm trying to make a macro that will "Ctrl+C" some text and will "Ctrl+V" it somewhere else.

I've added a GuiCtrlCreateEdit, so I will be able to put the text there.

The problem is, that even when i select the text, it wont ctrl+c it.

can anyone comeup with an idea?

-Ene

Link to comment
Share on other sites

Well i'm trying to make a macro that will "Ctrl+C" some text and will "Ctrl+V" it somewhere else.

I've added a GuiCtrlCreateEdit, so I will be able to put the text there.

The problem is, that even when i select the text, it wont ctrl+c it.

can anyone comeup with an idea?

-Ene

ClipPut(), ClipGet()
Link to comment
Share on other sites

Well this is my code so far

GUICreate("GUI")

GUICtrlCreateEdit("write a sentence ",0,0)

$ButtonOk=GUICtrlCreateButton("Ok",200,0,50,50)

guisetstate()

$msg = GUIGetMsg()

if $msg = $ButtonOk Then

Send("{LCTRL down}")

Send("{c}")

Send("{LCTRL up}")

EndIf

in that part i wanted it to ctrl+c but it wouldnt =x

Edited by Energized
Link to comment
Share on other sites

Thats not your whole code right? You need a While/Wend loop with a gui else the script won't do anything. Instead of your send commands use Send("^c") the ^ is ctrl.

While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...