Sign in to follow this  
Followers 0
kindalazy

Running my script minimized in the backround.

3 posts in this topic

#1 ·  Posted (edited)

I found this sample on the site:

If Not WinActive("Untitled - Notepad","") Then WinActivate("Untitled - Notepad","")
WinSetState("Untitled - Notepad","",@SW_HIDE)
If Not WinActive("Untitled - Notepad","") Then WinActivate("Untitled - Notepad","")
ControlSend("Untitled - Notepad","","","{CTRLDOWN}a{CTRLUP}Some{SPACE}text.")
sleep(2000)
MouseMove(491,408)
MouseDown("left")
MouseUp("left")
If Not WinActive("Untitled - Notepad","") Then WinActivate("Untitled - Notepad","")
WinSetState("Untitled - Notepad","",@SW_SHOW)

What line would I need to apply it to in my code (sorry I'm a novice, I've been borrowing a lot). Also, it functions perfectly the way I need it to, but if you guys have any suggestions on how to clean up my code, all help will be greatly appreciated. Thanks :graduated:

<removed>
Edited by Valik

Share this post


Link to post
Share on other sites



Hi and Welcome to the forums!!

Please read the Forum Rules and then punch yourself in the face for not reading them before posting.

I have nothing to add to this superb comment except the obligatory topic lock.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0