Jump to content
Macro Express Forums

saleh

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by saleh

  1. On 8/27/2019 at 12:20 AM, terrypin said:

    That's what the Mouse Locator tool is for.

     

    I recommend you read the excellent Help offered in the program.

     

     

    MouseLocator.jpg

     

    I know this tools !!!

    but:
    1-dialog and place of textbox change constantly
    2-my macro execute in different PC with different Screen Resolution
    so I cant use tabbing or mouse move command...!
     
    MEP recognizes the name of 'open windows' well, but MEP can't recognizes textbox ???!!!
     
    Tnx very much
  2. On 8/24/2019 at 6:13 AM, acantor said:

    The method Terry suggests can work nicely, and it's so simple. But when clicking at (x, y) fails, all hell might break lose!

     

    I do major back flips to avoid clicking at (x, y) when scripting macros. Instead of clicking on a coordinate, I might hunt for a pixel colour (and then click), monitor the shape of the mouse cursor (and then click), search for and give focus to text that is at, or near, my target (and then tab to it), or use controls to directly interact with my target. Or a combination of all the above. So rather than clicking blindly on a coordinate, these methods use a modicum of intelligence built into the macro to zero in on a target.


    When these more complex, less intuitive, math-driven methods fails, it's not pretty either. But at least it's satisfying to develop scripts that function reliably under many conditions.

    i just know the name of textbox, and I don't know coordinate of textbox, so I can't use "move mouse" command or tabbing

  3. On 8/24/2019 at 2:28 AM, terrypin said:

    What happens if you do use the mouse commands? In some applications I find that's the only reliable way to get the job done.

     

    For example,

    
    Mouse Move: 123, 456 Relative to Current Window
    Mouse Left Click // Click at end of Name box
    Text Type (Simulate Keystrokes): <SHIFT><HOME> // Select existing text
    etc
    
    

     

    i just know the name of textbox, so I can't use "move mouse" command or tabbing

  4. On 8/24/2019 at 2:28 AM, terrypin said:

    What happens if you do use the mouse commands? In some applications I find that's the only reliable way to get the job done.

     

    For example,

    
    Mouse Move: 123, 456 Relative to Current Window
    Mouse Left Click // Click at end of Name box
    Text Type (Simulate Keystrokes): <SHIFT><HOME> // Select existing text
    etc
    
    

     

     

    On 8/24/2019 at 1:25 AM, acantor said:

    I agree with Cory. See if you you reliably reach the field by tabbing. Or check if Macro Express can recognize any of the fields or screen areas as controls.

     

    You may be able to reset the tab order by clicking somewhere in the left margin (where the labels appear), or in the grey stripe that begins with the word "Specify..."

    No I can't reliably reach field by tabbing or mouse move. i just know the name of textbox

  5. hi

     

    Please help me, how to move mouse cursor in a specific textbox in a active dialog box directly?

    note: Without Being aware of text box position, just with aware of name of the textbox.

    for example when "Create Output ..." windows is shown, mouse cursor insert in "Name" textbox, with aware of name of the textbox ("Name").

     

    tnx very much

    saleh safarian

     

     

    dialog box.png

  6. I don't know. Generally parameters can be passed in any order as long as their formatted correctly. But I don't know in this specific case. I actually specify the MEX file in the registry. In fact I don't use the 'load on start up' option which puts an icon in the system tray but rather opt to add teh MEX start up to the Run section of the Windows registry. More complex and I have a macro to self manage the files listed but it was necessary to make it work in my case.

    Thanks dear cory

    Can say how you specify the MEX file in the registry?

  7. You don't know how to edit a text file? Well OK.... I'll do it for you. See attached.

     

    I can edit this file but I understand your purpose now! Excuse me; my mother language isn't English…

    Thanks, this edited file change preference but if import this file from macro express player encounter with this error:

     

    "Macro Express Pro

    Could not import the program configuration due to the following error:

    Access violation at address 0083E822 in module 'MacExp.exe'. Read of address 00000000

    Filename: C:\Users\Saleh\Downloads\file.wcfg

    OK"

     

    Or if import this file from macro express editor encounter with this error:

     

    "Macro Express Pro Explorer

    Could not import the program configuration due to the following error:

    Access violation at address 0087D374 in module 'macedit.exe'. Read of address 00000000

    Filename: C:\Users\Saleh\Downloads\file.wcfg

    OK"

     

    I don't want display this error.

    Thanks very much.

  8. The error is correct. "$Unknown" is not a valid file name. ISS should have written the MEP code to handle this. This occurs in the Quick_Start_Guide section which is probably not necessary. You can fix this file by deleting lines 2170 through and including 2185. IE <Quick_Start_Guide> to </Quick_Start_Guide>.

    Thanks very much. :)

    Excuse me; I don’t understand your help exactly! :unsure: Can you edit file.wcfg and attach it to your PM please?

  9. file.zip



     

    1. Insight Software Solutions, Inc., the makers of MEP. http://macros.com/support.htm

    2. I'll send you a PM but you could also ZIP the file and upload that.


     

    1. I speak with ISS and answer me !!! :

    " It looks like the .wcfg file was created with v4.3.0.1 of Macro Express Pro. We have made some changes to fix some of these type errors. I would suggest downloading and installing the latest version, 4.4.1.1, which includes these fixes. Try exporting and importing from the later version. This should take care of the problem. "

    2. thanks very much :) , but attach this file in this PM to continue conversation completely.

  10. First I suggest you start a support incident with ISS.

     

    I don't know what that error is but if you attached it I could take a look at it and see if there is anything hinky.

     

    BTW you don't need the entire contents. The WCFG contains all the settings including the defaults so if you only wanted to change a few things delete everything else besides those relevant lines. Odds are this could solve your problem right now.

    1. what is "ISS" ?!

     

    2. I wanted attach this file but encountered with this error:

    "You aren't permitted to upload this kind of file"

    Can give me your email please, to send it for you?

     

    thanks

     

     

  11.  

    For the rest of this conversation let's assume you have the full version of MEP installed on the destination machine. There is no other way. If you have any more questions you can respond by number in my list below.

     

    1. To load a macro file (MEX) simply double click on it. MEX are like Word documents or any other kind of data file. Once installed an association is made to the MEX and MXE extensions. To be clear the user need not have Macro Explorer installed. I envision you email the user the macro, have them save it to their desktop, and double click it. Nothing will appear to happen but it will be loaded. Also understand MEP can have multiple MEX files open at one time.
    2. Once loaded any activation you have for your trial macro will be active. IE the hotkey you assigned will now function.
    3. There are a series of thing you can do to lock down a user installation of MEP. First you can password protect a macro itself for execution. Second you can password protect the macro file for editing. Third you can use the /B command line switch for "Browse Mode" (that term never made sense to me) at start up which will prevent the user from launching the Macro Explorer from the tray icon. See help section "Command Line Parameters" Just remember to also set this parameter to the normal Start Menu shortcut as well. I think that's the standard lot. I'm sure I've forgotten some part as this is just off the top of my head. I take some extra measures myself where I do not use the Start up Group shortcut but rather launch it from the Run section of the registry at start up. I also have a start up macro that ensures no other MEX files are loaded besides the proper corporate MEX file. It also set's up the environment and does a few tests and reports to the admin if anything is awry.
    4. You can run a macro from a command prompt. See help file section "Command Line Parameters". Even from another file that isn't even open. I don't know if that would help in any way.
    5. Consider using the Portable Version. See help section by same name. You would need to give her a thumb drive but it would allow you to have her test without having to install the program, load MEX files, or need of a license.

       

      .

     

    Thanks very much :)

    About case5 please help me. Where i can find the Portable Version that don't need license??!

     

    In this address we have to buy it…:

     

    http://www.macros.com/featuresportable.htm :(
  12. Samrae is correct but to be clear the MEP 'player' is part and parcel with the proper licensed installation. IE there is no free 'player' like some apps have, EG Acrobat Reader.

     

    You can however 'lock down' a full installation to prevent users from seeing the Macro Explorer or editing macros. A tech savvy user can work around some of these measures but password protection of the macro itself I think is pretty safe.

     

    Thanks Cory

    Can explain and clear this section of your answer?

    “You can however 'lock down' a full installation to prevent users from seeing the Macro Explorer or editing macros.”

  13. Yes, you can install just the Macro Express Pro Player so others can run macros you create but not edit or create macros but they need a licensed copy of Macro Express Pro.

     

    You cannot assign an activation to a playable macro (they are meant to be double-clicked). I think you can have them save the .mex file to their desktop and double-click it to run it. But, since they would have a licensed copy of Macro Express Pro anyway, you could just send them a macro file and have them replace the default macex.mex.

     

    Thanks Samrae

    1- But I just want to run a macro with a hotkey (not double-click)…

    2- How I can create and replace the default macex.mex?

×
×
  • Create New...