Jump to content

JF Fortier

Members
  • Content Count

    18
  • Joined

  • Last visited

  • Days Won

    1

JF Fortier last won the day on October 9 2019

JF Fortier had the most liked content!

Community Reputation

1 Neutral

About JF Fortier

  • Rank
    Jedi Apprentice
  • Birthday February 25

Profile Information

  • Industry
    Construction
  • Gender
    Male
  • Location
    Québec

FileMaker Experience

  • Skill Level
    Intermediate
  • FM Application
    17

Platform Environment

  • OS Platform
    Windows
  • OS Version
    Win10

FileMaker Partner

  • Certification
    Not Certified
  1. Using this will only bring the process name in a list, no more useless data TaskList = '' Process p = Runtime.getRuntime().exec (System.getenv('windir') +'\\system32\\' + 'tasklist.exe /nh /fo csv' ) BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { line = Eval.me('[' + line + ']') TaskList += line.get(0) + '\n' } return TaskList
  2. By reversing engineering many script and code on the web, I wrote the script like this and it return what I need to have, so for anyone looking to get the list of all running process on windows, use it freely 😁 TaskList = '' Process p = Runtime.getRuntime().exec (System.getenv("windir") +"\\system32\\"+"tasklist.exe /nh " ) BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.readLine()) != null) { TaskList = TaskList + line + '\n' } return TaskList
  3. Hi, Going to FM19, I'm updating some old plugin and I need to know if an application is running or not on the client PC. I used Moo Plug for years and it work https://mooplug.com/docs/functions/moo_processrunning ** Edit: A new x64 version is on the way, Adam send me a beta version ** I'm trying this code try { String line; Process p = Runtime.getRuntime().exec (System.getenv("windir") +"\\system32\\"+"tasklist.exe"); BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = input.rea
  4. Yep! I just did some research, as I was saying, not a Java or JS person...Thanks Google I now know the difference ! Thanks
  5. Hi, Maybe a stupid question, I have no clue, not really a JS guy. With the new FM19, can we run Javascript natively in FM without the use of the plugin ? I run Win10/Server2012 and in the process of updating from FM17, I need to get rid of some old 32 bits plugins first. I created some on the function that I wanted with SMaster into a custom plugin.... but now FMS required a signed plugin, on Windows 🙄 not an easy task, for a newbie like me. So can we run some basic JS code in FM19 directly and get the result ? Or we still need to run them with SMaster.
  6. I need to add, sometime the item in the list is populated by a list of value based on multiple fields. I have a function that returns all the emails a customer may have in his file (multiple work location, commercial customer with a list of multiple employees) So when we need to send a quotation, this dialog open and let the user choose the email from the list of all email that customer as in file. That one I have no idea how, since it can't be a portal or list view. Maybe if I export all that info to a global table and then link and empty the table after ? Seems a lot of work and
  7. Hi, I've been using the Kargas Dialog plugin for years, event if it's no longer supported, it's still working in FMA17, I'm planning to move to FM19 this year and I need to get rid of old 32 bits plugins. It's a lot of work since I use it in so many places. I already replaced large dialog and custom dialog with card windows (Technic by Matt at Filemaker Magazine). Mainly it is used to allow the user to select related information about something. The items in the list are not fixed. For example, we sell an item and we prepare a list of parts the installer will
  8. This is really an old post, but I love the look, we dispatch technician and that time picker will be very neat and easy to set time. We only schedule to 1/4 of an hour, I just remove the unwanted item and Voilà ! Thanks
  9. I found the code that I had that only return the coordinates and screen size. I just add the "import" section, that is what was missing from my previous attempt. import java.awt.GraphicsDevice; import java.awt.GraphicsEnvironment; import java.awt.Rectangle; GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); String boundsString = ""; for (GraphicsDevice gd : ge.getScreenDevices()) { Rectangle bounds = gd.getDefaultConfiguration().getBounds(); boundsString += bounds.x.intValue() + " " + bounds.y.intValue() + "
  10. @john renfrew This is going in the right direction! In your case the retina display, I may be wrong put it's not something like @2x in the Apple docs? so the pixel is 1/2 of the resolution so your 5120 x 2880 return in fact 2560x1440 My Monitor #1 is 1920 x 1080 Monitor #2 (left) is 1680 x 1050 The result is gs[0] = java.awt.Rectangle[x=0,y=0,width=1920,height=1080] gs[1] = java.awt.Rectangle[x=-1680,y=0,width=1680,height=1050] So monitor 1 sets at 0,0 1920x1080 and monitor 2 (left) is the screen resolution 1680 x 1050, since it's on the left s
  11. @Josh Ormond The command line is not working, it's telling me that I have only one monitor connected. I played around that command line tool, but I only get one monitor, one set of resolution ?!? I have tried other way, I might investigate that path and find another command line tool, but if not Win standard, I will have the install that tool in every PC... not the best practice in deploying a solution. @john renfrew The Groovy part is to set up a ScriptMaster plugin that will return the information into a variable and with that info I will script conditions to do what I need. So i
  12. I appreciate your help! The best way to learn is by searching and finding it when someone point you in the right direction. But sometimes people say use the Groovy function get(monitor.xyz){};HelloWorld,zulu... as it may be useful for someone that already knows Groovy, this is not helping me to get a full function that works! I'm trying to achieve a plugin that will return the number of monitors 1 or 2, is the 2nd monitor located to the right or left and maybe the resolution (for future use) for now I don't need it. I want to build my start-up script so that a user with
  13. Hi, I know nothing about Java or Groovy etc! I want to deploy my solution and take advantage of dual screen. So I need to have information, if a 2nd screen is installed, is it to the left or right of the main screen. I have found many script exemples, but every time I copy them in the ScriptMaster file and run them, I get a compilation error. So if you want to help, please just don't say, use this command, or x,y,z... I would need to full script from A to Z, as I know nothing how to write a Groovy script, debug or else ! Thank you for
  14. Thanks, but it's all Chinese to me, I have no clue how to insert any of these info into one working script. I can built an IKEA piece of furniture without the manual, but not java script !! I need to have the full script and copy it... of the "how to" otherwise I add lines of codes and only gets error. Thanks
  15. Thanks, I have seen that post long time ago, but I have no clue HOW to get it inside the Java and put it as a header in the code... that link only tells you that you need to have that header section, not how to get it into Java. And all the example that I found online don't work when I create a new module in the SM. I'm always willing to learn more stuff and make my FM app better... but my main job is driving a HVAC business!! I'm pretty good with FM, 25 years of self learning, but I have my limits My current code is (if I recall, I merge 2 module from the SM demo file
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.