Sponsored Content
Full Discussion: Help with xdotool and XOJO
Top Forums Shell Programming and Scripting Help with xdotool and XOJO Post 303001856 by sbrady on Saturday 12th of August 2017 09:12:26 AM
Old 08-12-2017
Help with xdotool and XOJO

I am trying to place and size a window on Mac using XOJO as my coding app. I am NOT in Terminal. Needs to be run as a shell I guess, but I don't know how to get the variable or set the variable.

Here is a line of code that opens a folder:
Code:
Dim sh As New Shell()
  sh.Execute("open /Users/shawn/Desktop/ATP")

how do I get the xdotool to place a size the active window.
Code:
xdotool getwindowpid
xdotool windowmove
xdotool windowsize

Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!


---------- Post updated at 09:12 AM ---------- Previous update was at 09:05 AM ----------

ok mister moderator......dang pesky newbies.....#%$©∑´˙¡™£

Last edited by sbrady; 08-12-2017 at 10:11 AM.. Reason: Added CODE tags.
 

We Also Found This Discussion For You

1. Ubuntu

Wildcard with xdotool

The window id for the particular popup window is different each time, so this scripts often does not work. Is there a way I could use a wildcard ? Ex. xdotool key --window 1677*.* alt+F4 or go through all the relevant window IDs and filter what I need and discard the rest. This... (15 Replies)
Discussion started by: drew77
15 Replies
instruments(1)						    BSD General Commands Manual 					    instruments(1)

NAME
instruments, version 1.0 USAGE
instruments [-t template] [-d document] [-l timeLimit] [-i #] [-w device] [[-p pid] | [-a application [-e variable value] [-g argument]]] DESCRIPTION
Runs an Instruments template from the command line. Options are : -t template The path to the template to run -s Show list of known templates and exit -d document The path to save the trace document data to (This may already exist, in which case a new Run will be added) -l # The limit of milliseconds to record until termination ( infinite is default ) -i # The index of the instrument to apply the following target data to ( default if missing ) -p pid The ID of the process to attach to -a application The path to the application or command to launch -w hardware device The identifier of the hardware to target -e variable value An environment variable setting (You may specify more than one) -g argument Command line argument to be sent to the launched process (You may specify more than one) -v Turn on verbose logging FILES
/usr/bin/instruments Executable SEE ALSO
/Developer/Applications/Instruments.app may be used to perform trace executions in a graphical environment and may also be used to open trace documents created in either instruments or Instruments.app. EXAMPLES
instruments -t mytemplate -a myapp.app Mac OS June 2, 2019 Mac OS
All times are GMT -4. The time now is 11:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy