Help with xdotool and XOJO


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help with xdotool and XOJO
# 1  
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.
# 2  
Old 08-13-2017
Xdotool

here is what I am using that does not work. Am I on the right track, I want to move a window, then I want to resize the window

Code:
  Dim br As New Shell()
  br.Execute ("xdotool getactivewindow windowmove 100 100")

xdotool windowsize 123 800 600

Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

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
Login or Register to Ask a Question