AutoHotkey Community

It is currently May 27th, 2012, 11:33 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: December 29th, 2009, 2:01 am 
Offline

Joined: October 22nd, 2009, 10:26 pm
Posts: 95
TLM wrote:
Honestly, like you said before it would probably be better to not allow the user to create their own hotkeys.

Its not as simple as you might think as there are several things to take into consideration. You will have lots of troubleshooting ahead of you to get it working error free!

If it were me, I would 1st focus on min/max and export importing of the files between the apps, just to keep it simple ;).




ill just add the hotkeys inside the code and let the user change the hotkeys to the same ones in his 3d app

can you straight this out?
its not working like i want because i messed with it.

i added these
Send, {CTRLDOWN}e{CTRLUP}
Send, tool.obj{TAB}{TAB}{ENTER}

but it doesnt save or LOAD from C:\

there is a box on top of each app for import and export
and it will allow you to change it to like C:\
but i dunno how in a script ahk

EDIT
i can put C:\MYTool.obj
and it works but im not sure this will work for everyone else

nostroke wrote:
it works but it does not shut down
it loops and keeps asking me the same questions

there is no F1 and it does not ask me what the name of the app is
it ask me the hotkeys only.


i think this might work below but i cant figure out how to save it to C:\
and load it from C:\

Code:
F1::
FileReadLine, var1, C:\Switch.txt, 1
FileReadLine, var2, C:\Switch.txt, 2

SetTitleMatchMode, 2
IfWinActive, %var1%
{
   Send, {CTRLDOWN}e{CTRLUP}
   Send, tool.obj{TAB}{TAB}{ENTER}
   WinMinimize, %var1%
   
   MsgBox, 0, , you exported

   Sleep, 100
   WinMaximize, %var2%

   Return
}

SetTitleMatchMode, 2
IfWinActive, %var2%
{
       Send, {CTRLDOWN}i{CTRLUP}
   Send, tool.obj{TAB}{TAB}{ENTER}
   WinMinimize, %var2%
   MsgBox, 0, , you imported
 
   Sleep, 100
   WinMaximize, %var1%

   Return
}

F2::ExitAPP
Return

F3::
FileDelete, C:\Switch.txt
inputbox, var1, Window 1, What is the name of the first window?`nWindow titles are case sensitive.
inputbox, var2, Window 2, What is the name of the second window?`nWindow titles are case sensitive.
FileAppend, %var1%`n, C:\Switch.txt
FileAppend, %var2%, C:\Switch.txt
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 29th, 2009, 2:42 am 
nostroke wrote:
TLM wrote:
Honestly, like you said before it would probably be better to not allow the user to create their own hotkeys.

Its not as simple as you might think as there are several things to take into consideration. You will have lots of troubleshooting ahead of you to get it working error free!

If it were me, I would 1st focus on min/max and export importing of the files between the apps, just to keep it simple ;).




ill just add the hotkeys inside the code and let the user change the hotkeys to the same ones in his 3d app

can you straight this out?
its not working like i want because i messed with it.

i added these
Send, {CTRLDOWN}e{CTRLUP}
Send, tool.obj{TAB}{TAB}{ENTER}

but it doesnt save or LOAD from C:\

there is a box on top of each app for import and export
and it will allow you to change it to like C:\
but i dunno how in a script ahk

EDIT
i can put C:\MYTool.obj
and it works but im not sure this will work for everyone else
PLUS need to stop it from asking to over write the obj
and just do it

nostroke wrote:
it works but it does not shut down
it loops and keeps asking me the same questions

there is no F1 and it does not ask me what the name of the app is
it ask me the hotkeys only.


i think this might work below but i cant figure out how to save it to C:\
and load it from C:\

Code:
F1::
FileReadLine, var1, C:\Switch.txt, 1
FileReadLine, var2, C:\Switch.txt, 2

SetTitleMatchMode, 2
IfWinActive, %var1%
{
   Send, {CTRLDOWN}e{CTRLUP}
   Send, tool.obj{TAB}{TAB}{ENTER}
   WinMinimize, %var1%
   
   MsgBox, 0, , you exported

   Sleep, 100
   WinMaximize, %var2%

   Return
}

SetTitleMatchMode, 2
IfWinActive, %var2%
{
       Send, {CTRLDOWN}i{CTRLUP}
   Send, tool.obj{TAB}{TAB}{ENTER}
   WinMinimize, %var2%
   MsgBox, 0, , you imported
 
   Sleep, 100
   WinMaximize, %var1%

   Return
}

F2::ExitAPP
Return

F3::
FileDelete, C:\Switch.txt
inputbox, var1, Window 1, What is the name of the first window?`nWindow titles are case sensitive.
inputbox, var2, Window 2, What is the name of the second window?`nWindow titles are case sensitive.
FileAppend, %var1%`n, C:\Switch.txt
FileAppend, %var2%, C:\Switch.txt
Return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 29th, 2009, 2:44 am 
Offline

Joined: October 22nd, 2009, 10:26 pm
Posts: 95
that was me above
i was not sign in and i typed my name to sign in and instead it forced me to post..


i added this>>PLUS need to stop it from asking to over write the obj
and just do it


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 29th, 2009, 11:12 am 
Offline

Joined: August 21st, 2006, 7:07 pm
Posts: 2925
Location: The Shell
nostroke wrote:
i added this>>PLUS need to stop it from asking to over write the obj
and just do it

So its ok to overwrite in every case?
Also which app are you talking about Hexagon or Zbrush? Both may have slightly different dialogs.

Let me know and I will take a look see. I'm reinstalling Hexagon now..

edit

See your pm

_________________
Imageparadigm.shift:=(•_•)┌П┐RTFM||^.*∞


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 20 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group