AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IronAHK (alpha): cross platform .NET rewrite of AutoHotkey
Goto page Previous  1, 2, 3 ... 20, 21, 22 ... 34, 35, 36  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
ls121
Guest





PostPosted: Tue Aug 17, 2010 4:47 am    Post subject: Reply with quote

I'm using the nightly build. Is there some alternative way I could send the Escape key other than "Send {Escape}"? Thanks for your help.
Back to top
neoarch



Joined: 17 Aug 2010
Posts: 1

PostPosted: Tue Aug 17, 2010 7:26 pm    Post subject: Reply with quote

Lucid Lynx running IronAhk 0.5.7.23

Code:
;GET MOUSE
a::
MouseGetPos, xpos, ypos
Msgbox, The cursor is at X%xpos% Y%ypos%.
return

;SIMPLE CLICK
f::
MouseGetPos, xpos, ypos
Click 344, 468
MouseMove, %xpos%, %ypos%
return


I'm getting an error for GET MOUSE
Code:
Unhandled Exception: System.InvalidProgramException: Invalid IL code in Program:a (object[]): IL_0023: stloc.3   

  at IronAHK.Rusty.Core+KeyboardHook+<KeyReceived>c__AnonStorey14.<>m__12 () [0x00000] in <filename unknown>:0


and SIMPLE CLICK doesn't seem to click anywhere.

What am I doing wrong? This all works fine with my windows install. Has the syntax changed?

Is it just me or are these errors more difficult to read than necessary?
Back to top
View user's profile Send private message
IsNull



Joined: 10 May 2007
Posts: 593
Location: .switzerland

PostPosted: Wed Aug 18, 2010 6:04 am    Post subject: Reply with quote

Hi,

First of all, you should notice that some specific Window-Handling must be implemented for each Window-System seperatly, so it's possible that IronAHK has an Windows Implementation but currently laks the X code.

MouseGetPos isn't implemented for the X-Window System also the Click Command only works on Windows. We're working on a abstract layer to handle every Window-System equal but the code must be written first.


About the ErrorMessage: What you get is the raw .NET Errormessage and not an easy debug Text - Polly plans to implement easy Debuging messages but this is actually low priority.
_________________
http://securityvision.ch
AHK 2D GAME ENGINE
Back to top
View user's profile Send private message Visit poster's website
ls121
Guest





PostPosted: Wed Aug 18, 2010 6:48 pm    Post subject: SPECIAL KEYS Reply with quote

Is there any way to get special keys working with IronAHK?
Back to top
cyberstorm



Joined: 15 Dec 2009
Posts: 12

PostPosted: Sun Aug 29, 2010 9:22 am    Post subject: Reply with quote

again, nightly build -- 403 Forbidden...
Back to top
View user's profile Send private message
meandi



Joined: 20 Oct 2009
Posts: 14

PostPosted: Sun Aug 29, 2010 9:52 am    Post subject: Reply with quote

ye this is true just as i'm about to download it
btw: gosub is not supported?

PS: lol ye it is ofcourse...
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Sun Aug 29, 2010 12:35 pm    Post subject: Reply with quote

ls121 wrote:
It literally sends the keystring "Escape". How do I get it to press the escape key?

It has been reported in issue 14 and will be fixed soon.

cyberstorm wrote:
again, nightly build -- 403 Forbidden...

The nightly builds now happen on my Windows 2008 R2 server so the installers are included in the updates which takes place at least once everyday at 0000 GMT, the version.txt file indicates the build number.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
cyberstorm



Joined: 15 Dec 2009
Posts: 12

PostPosted: Mon Aug 30, 2010 9:49 pm    Post subject: Reply with quote

http://www.ironahk.net/docs/commands/

function URLDownload() not exist, but if we look in source codes - we see function UriDownload()

fix it Wink

p.s.
what about creating analog of function httpQuery?
Back to top
View user's profile Send private message
meandi



Joined: 20 Oct 2009
Posts: 14

PostPosted: Mon Aug 30, 2010 10:49 pm    Post subject: Reply with quote

I'm lost:
Can't seem to find where to download these nightly builds.
(I know it has just been said Confused)
http://code.google.com/p/ironahk/?
Back to top
View user's profile Send private message
ls121
Guest





PostPosted: Tue Aug 31, 2010 3:02 am    Post subject: donation Reply with quote

If I can get my script with special keys working I'm promising at least a $25 donation if you take them. This is a ridiculous "it's about time" program for linux distros.

Very nice work indeed!
Back to top
nowhereman
Guest





PostPosted: Tue Aug 31, 2010 1:14 pm    Post subject: Reply with quote

Hi, I'm loving the effort! nice to see native utf support;

I'm still having problems with sending keys to GTK applications in Windows.

hotstrings doesn't seem to work, the just delete the old characters:

e.g.:

Code:
::a::b


writes 'b' when you type 'a', except in GTK apps (I repeat, GTK apps on Windows).

[/code]
Back to top
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Fri Sep 03, 2010 12:53 pm    Post subject: Reply with quote

Just to highlight error from here: http://www.autohotkey.com/forum/viewtopic.php?t=62107
CovenStine wrote:
Hello,
I am disabled, and thus forced to type with one hand.
The third revision of the script discussed in this thread has been exceptionally helpful, but obviously, AHK is windows-exclusive.
I've tried IronAHK, and working on the assumption that 'if the script doesn't work in windows, it won't work in Ubuntu' I have been trying to make the script work with IronAHK.
Unfortunately, every time, I get a predictable error message, and can't seem to debug it. the message is:

"The following errors occured:
OneHander.ahk:0 - Object reference not set to an instance of an object.
OneHander.ahk:0 - Specified argument was out of range of valid values."

I don't know if anybody has any suggestions, or a better forum for this topic (I couldn't find an IronAHK forum), but any suggestions would be highly appreciated.
Thanks.

_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
22bells
Guest





PostPosted: Fri Sep 03, 2010 4:09 pm    Post subject: WinActivate Reply with quote

I'm curious how to get a WinActivate script to work on Ubuntu. Here is the line of code in particular I'd love to port over from windows:

Code:
CapsLock & k::
IfWinActive ahk_class MozillaUIWindowClass
    WinActivateBottom ahk_class MozillaUIWindowClass
else
IfWinExist ahk_class MozillaUIWindowClass
    WinActivate
else
    Run firefox
return


Does anybody have any ideas on why this isn't working or how I could get it to work?
Back to top
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Fri Sep 03, 2010 4:45 pm    Post subject: Reply with quote

ls121 wrote:
It literally sends the keystring "Escape". How do I get it to press the escape key?

Issue 14 fixed.

cyberstorm wrote:
function URLDownload() not exist, but if we look in source codes - we see function UriDownload()

Thanks, fixed in e3f98580.

cyberstorm wrote:
what about creating analog of function httpQuery?

I expect to have something similar to the curl functions in PHP.

meandi wrote:
Can't seem to find where to download these nightly builds.

The first post only contains links to the nightly builds now. They are all the most up-to-date development versions.

The status page has been updated to provide more information but does not yet indicate the current progress.

nowhereman wrote:
I'm still having problems with sending keys to GTK applications in Windows.

hotstrings doesn't seem to work, the just delete the old characters:

From what I remember AutoHotkey uses PostMessage and keybd_event, IronAHK only uses SendInput with no delays between key presses. I don't know if this is the reason replacements aren't working correctly on Gtk windows (on Windows) but I will check.

22bells wrote:
I'm curious how to get a WinActivate script to work on Ubuntu.

We decided not to mix X11 and Win32 specific API in the Win* methods and instead use an interface similar to the keyboard hook provider. In other words, WinActivate doesn't work on Linux yet Confused
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
22bells
Guest





PostPosted: Fri Sep 03, 2010 6:04 pm    Post subject: Reply with quote

Since WinActivate doesn't work, is there anyway currently to emulate the functionality of the aforementioned script so that pressing capslock & K does the following:

1. Launch firefox if it's not open
2. Activate it if it is
3. Scroll through the active firefox windows if more than one is open

Thanks for all of your contribution!
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 20, 21, 22 ... 34, 35, 36  Next
Page 21 of 36

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group