Jump to content

Recommended Posts

Posted

Hello you guys

So i'm working on my first script and got a few unanswered questions i would love to get answered.

First of all, is it possible to create a script that :

1. Opens a specific program from the taskbar (in this case, a text editor)

2. Performs an action/function inside this program (in this case, the text editor)

3. Then tray it minimize/tray it.

Sorry for bad explaining, but idk how else to explain this.

Pretty simple, hope to get some answers.

PS: I would like this done fast, like maybe a few seconds?

Posted

  Quote

Opens a specific program from the taskbar

For a Pinned program u may try the keys {START}+{X} where X is the index of the Pinned Application note that the First application is 1

My code:

  Reveal hidden contents
PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Posted

  On 6/9/2012 at 6:15 AM, 'PhoenixXL said:

For a Pinned program u may try the keys {START}+{X} where X is the index of the Pinned Application note that the First application is 1

oh but i meant the .. traybar thing :

http://screensnapr.com/e/7GnP1X.jpg

The program i wanna open is .. already active

Like if i had notepad open and i minimzed it - then i want it to open again and do something inside it really fast and then minimize it.

In this case i would use the script so it could "open up" notepad, write something inside it and then minimize it in secs.

Tell me if you're confused, i'll try explain better next time lol

  • Moderators
Posted

nacon,

Look at WinSetState in the Help file - that will do what you want. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

  Quote

In this case i would use the script so it could "open up" notepad, write something inside it and then minimize it in secs.

It can create a chance maybe for a Millisecond that someone would notice a Glance of it

So try to it with controls i.e. using ControlSetText or ControlSend or ControlCommand.

To get the Control Id of a Control use the Autoit Window Info Tool.

Example code :

Run("notepad.exe",'',@SW_SHOWMINIMIZED)
WinWait("[CLASS:Notepad]")
ControlSetText("[CLASS:Notepad]", "", "Edit1", "New Text Here" )

Regards

Phoenix XL

Edited by PhoenixXL

My code:

  Reveal hidden contents
PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.

Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners.

MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. 

Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression.

Posted (edited)

  On 6/9/2012 at 6:57 AM, 'Melba23 said:

nacon,

Look at WinSetState in the Help file - that will do what you want. ;)

M23

Exactly! Thanks alot, really helpful!

  On 6/9/2012 at 7:14 AM, 'PhoenixXL said:

It can create a chance maybe for a Millisecond that someone would notice a Glance of it

So try to it with controls i.e. using ControlSetText or ControlSend or ControlCommand.

To get the Control Id of a Control use the Autoit Window Info Tool.

Example code :

Run("notepad.exe",'',@SW_SHOWMINIMIZED)
WinWait("[CLASS:Notepad]")
ControlSetText("[CLASS:Notepad]", "", "Edit1", "New Text Here" )

Regards

Phoenix XL

oh i see what i did wrong there.

I explained wrong and u misunderstood. Not what i was looking for, but i'm really glad you helped anyway! :-)

Got it working and i got a few new issues i will post in a new thread.

once again, thanks so much!

Edited by nacon

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
  • Recently Browsing   0 members

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