AutoIt Forums: Auto3Lib - AutoIt Forums

Jump to content

  • (49 Pages)
  • +
  • « First
  • 40
  • 41
  • 42
  • 43
  • 44
  • Last »
  • You cannot start a new topic
  • This topic is locked

Auto3Lib A library of functions for AutoIt Rate Topic: ****- 35 Votes

#811 User is offline   Squeeto 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 10
  • Joined: 28-August 06

Posted 16 August 2007 - 07:15 PM

Quote

Try it with "MS Sans Serif" or Courier; it doesn't work.


Maybe PaulIA's _API_CreateFontIndirect, but I see no examples of using this to give it a try.

Any idea how to choose MS Sans Serif, 14?



#include <A3LGDIPlus.au3>

Global $hGUI, $hWnd, $hGraphic, $hBrush, $hFormat, $hFamily, $hFont, $tLayout
Global $sString = "Hello world"

; Create GUI
$hGUI = GUICreate("GDI+", 400, 300)
$hWnd = WinGetHandle("GDI+")
GUISetState()

; Draw a string
_GDIP_Startup()
$hGraphic = _GDIP_GraphicsCreateFromHWND($hWnd)
$hBrush = _GDIP_BrushCreateSolid(0xFF00007F)
$hFormat = _GDIP_StringFormatCreate()
$hFont = _API_CreateFontIndirect(????)
$tLayout = _GDIP_RectFCreate(140, 110, 0, 0)
$aInfo = _GDIP_GraphicsMeasureString($hGraphic, $sString, $hFont, $tLayout, $hFormat)
_GDIP_GraphicsDrawStringEx($hGraphic, $sString, $hFont, $aInfo[0], $hFormat, $hBrush)

; Loop until user exits
do
until GUIGetMsg() = $GUI_EVENT_CLOSE

; Clean up resources
_API_DeleteObject ($hFont )
_GDIP_StringFormatDispose($hFormat )
_GDIP_BrushDispose ($hBrush )
_GDIP_GraphicsDispose ($hGraphic)
_GDIP_Shutdown()

#812 User is offline   LongBowNZ 

  • Spammer!
  • PipPipPip
  • Group: Full Members
  • Posts: 299
  • Joined: 27-July 07

Posted 21 August 2007 - 08:48 AM

Tried to install A3L but it says I have version 3.2.0.1 of autoit but I ran this simple script I made and it tells me I have version 3.2.5.6. Which is what I thought I had. :unsure:

Version display script:
[ autoIt ]    ( Popup )
MsgBox(0, "AutoIt Version", "AutoIt Version is :" & @AutoItVersion)

Any ideas?

#813 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 21 August 2007 - 10:05 AM

View PostLongBowNZ, on Aug 21 2007, 09:48 AM, said:

Tried to install A3L but it says I have version 3.2.0.1 of autoit but I ran this simple script I made and it tells me I have version 3.2.5.6. Which is what I thought I had. :unsure:

Version display script:
[ autoIt ]    ( Popup )
MsgBox(0, "AutoIt Version", "AutoIt Version is :" & @AutoItVersion)

Any ideas?



Autoit (and Scite) has two directories: release and beta
You probably have release: 3.2.0.1 and beta 3.2.5.6
For Auto3Lib you need have your release version 3.2.4.9

#814 User is offline   LongBowNZ 

  • Spammer!
  • PipPipPip
  • Group: Full Members
  • Posts: 299
  • Joined: 27-July 07

Posted 21 August 2007 - 10:13 AM

Quote

Autoit (and Scite) has two directories: release and beta
You probably have release: 3.2.0.1 and beta 3.2.5.6
For Auto3Lib you need have your release version 3.2.4.9

Oh ok, thanks :)

#815 User is offline   Crashcourse 

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 22-August 07

Posted 22 August 2007 - 03:00 PM

Hi.
I have a problem when i try to use
_ScreenCap_Capture on Win2k

These two lines of code work fine under WinXP
[ code='text' ]    ( Popup )
#include <A3LScreenCap.au3> _ScreenCap_Capture("C:\Dokumente und Einstellungen\Crashcourse\Desktop\screeny\Image1.jpg",0, 0, 300, 300)


But produce this error on Win2k:
---------------------------------------
Line 2321 (File "C:\...\A3lGDIPlus.au3");

Return $aResult[0] <> 0
Return $aResult^ ERROR

ERROR: Subscript used with non-Array Variable
----------------------------------------

Thanks for your time.

Crashcourse

#816 User is offline   SmOke_N 

  • It's not what you know .... It's what you can prove!
  • Icon
  • Group: Moderators(Mod)
  • Posts: 15,183
  • Joined: 21-February 05
  • Gender:Male
  • Location:UNITED STATES

Posted 22 August 2007 - 03:02 PM

View PostCrashcourse, on Aug 22 2007, 08:00 AM, said:

Hi.
I have a problem when i try to use
_ScreenCap_Capture on Win2k

These two lines of code work fine under WinXP
[ code='text' ]    ( Popup )
#include <A3LScreenCap.au3> _ScreenCap_Capture("C:\Dokumente und Einstellungen\Crashcourse\Desktop\screeny\Image1.jpg",0, 0, 300, 300)


But produce this error on Win2k:
---------------------------------------
Line 2321 (File "C:\...\A3lGDIPlus.au3");

Return $aResult[0] <> 0
Return $aResult^ ERROR

ERROR: Subscript used with non-Array Variable
----------------------------------------

Thanks for your time.

Crashcourse

I'm pretty sure the gdiplus dll is not included in win2k. You'll need to download it into your system folder.

#817 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 22 August 2007 - 04:01 PM

View PostSmOke_N, on Aug 22 2007, 04:02 PM, said:

I'm pretty sure the gdiplus dll is not included in win2k. You'll need to download it into your system folder.


Here is the link for download from Microsoft site.

#818 User is offline   Crashcourse 

  • Newbie
  • Group: Members
  • Posts: 2
  • Joined: 22-August 07

Post icon  Posted 23 August 2007 - 03:04 PM

View PostZedna, on Aug 22 2007, 07:01 AM, said:

Here is the link for download from Microsoft site.


It worked! Thank you very much Zedna and SmOke_N

#819 User is offline   SandelPerieanu 

  • Advanced Member
  • PipPip
  • Group: Full Members
  • Posts: 169
  • Joined: 20-May 05
  • Location:Romania

Posted 26 August 2007 - 08:27 PM

Auto3Lib don't work with 3.2.6.0 ?

#820 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 26 August 2007 - 10:20 PM

View Postpsandu.ro, on Aug 26 2007, 09:27 PM, said:

Auto3Lib don't work with 3.2.6.0 ?


What's the problem?
Instalation or some runtime error or something else?

#821 User is offline   JohnWPB 

  • Newbie
  • Group: Full Members
  • Posts: 8
  • Joined: 23-January 07

Posted 27 August 2007 - 02:37 AM

View PostZedna, on Aug 26 2007, 05:20 PM, said:

What's the problem?
Instalation or some runtime error or something else?


Same problem here, so I can answer that question :)


The problem is the installer does not seem to be parsing and comparing the version number correctly. I have the latest release installed, and not the beta. I completely removed all traces of AI, installed the latest released version, and again tried the library installer with the same results:

http://img170.imageshack.us/img170/8766/autoiterrorrl2.jpg

As you can see, the error is stating you need at least 3.2.4.9 and currently installed is 3.2.6.0

#822 User is offline   big_daddy 

  • Icon
  • Group: Moderators(Mod)
  • Posts: 2,401
  • Joined: 07-November 05
  • Gender:Male
  • Location:Falcon, MO

Posted 27 August 2007 - 03:24 AM

View Postpsandu.ro, on Aug 26 2007, 02:27 PM, said:

Auto3Lib don't work with 3.2.6.0 ?

Here is a temporary fix.

[ autoIt ]    ( Popup )
$sRegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt" $sRegValue = "Version" $sRegType = "REG_SZ" $sCurrent = RegRead($sRegKey, $sRegValue) RegWrite($sRegKey, $sRegValue, $sRegType, "v3.2.4.9") MsgBox(0, "", "You are ready to install Auto3Lib." & @CRLF & @CRLF & _         'Click "OK" when the installation is complete.') RegWrite($sRegKey, $sRegValue, $sRegType, $sCurrent)


#823 User is offline   JohnWPB 

  • Newbie
  • Group: Full Members
  • Posts: 8
  • Joined: 23-January 07

Posted 27 August 2007 - 06:04 AM

View Postbig_daddy, on Aug 26 2007, 10:24 PM, said:

Here is a temporary fix.

[ autoIt ]    ( Popup )
$sRegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt" $sRegValue = "Version" $sRegType = "REG_SZ" $sCurrent = RegRead($sRegKey, $sRegValue) RegWrite($sRegKey, $sRegValue, $sRegType, "v3.2.4.9") MsgBox(0, "", "You are ready to install Auto3Lib." & @CRLF & @CRLF & _         'Click "OK" when the installation is complete.') RegWrite($sRegKey, $sRegValue, $sRegType, $sCurrent)



A nice simple quick fix, thanks, worked perfectly!

#824 User is offline   JamesBrooks 

  • Do You Wanna Be A Human Controlling An Avatar?
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 8,076
  • Joined: 24-November 06
  • Gender:Male
  • Location:Null

Posted 27 August 2007 - 09:35 AM

Help:

Auto3Lib still wont work on 3.2.6.0.

Fixed: Change the key manally.

This post has been edited by JamesB: 27 August 2007 - 09:36 AM


#825 User is offline   Zedna 

  • AutoIt rulez!
  • Icon
  • Group: AutoIt MVPs(MVP)
  • Posts: 6,592
  • Joined: 17-June 05
  • Location:Czech republic

Posted 27 August 2007 - 10:26 PM

[quote name='big_daddy' post='393902' date='Aug 27 2007, 04:24 AM']Here is a temporary fix.

[ autoIt ]    ( Popup )
$sRegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt" $sRegValue = "Version" $sRegType = "REG_SZ" $sCurrent = RegRead($sRegKey, $sRegValue) RegWrite($sRegKey, $sRegValue, $sRegType, "v3.2.4.9") MsgBox(0, "", "You are ready to install Auto3Lib." & @CRLF & @CRLF & _         'Click "OK" when the installation is complete.') RegWrite($sRegKey, $sRegValue, $sRegType, $sCurrent)ƒo݊÷ Ûú®¢×†­æ­ßtáŠÇ·¦iםjÆå¡§^¯öߢ°.¶Ë‰¸§²Ö¥•êí…êފÄnf¢¶)ìµæ¡ó,€1jëhŠ×6$sRegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt" $sRegValue = "Version" $sRegType = "REG_SZ" $sCurrent = RegRead($sRegKey, $sRegValue) RegWrite($sRegKey, $sRegValue, $sRegType, "v3.2.4.9") RunWait("Auto3Lib.exe") RegWrite($sRegKey, $sRegValue, $sRegType, $sCurrent)


#826 User is offline   sigmason 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 30
  • Joined: 28-August 07
  • Location:Dark side of moon.

Posted 29 August 2007 - 09:30 PM

When you attempt to install the package provided in the first post in this e-mail on a computer running Windows 98 (First Edition) the installed reports that it cannot install because:

Dialog title:
AutoIt Update Required

Dialog static text:
Auto3Lib requires at least version 3.2.4.9 of AutoIt. Your version of AutoIt is v3.2.6.0

Now if you click the Okay button, installation terminates.
However, if you click cancel it asks if you are sure and if you say no, it continues then fails on
the transfer screen hiding the same message under the top most window (the installer progress.)


Excellent library by the way.

#827 User is offline   big_daddy 

  • Icon
  • Group: Moderators(Mod)
  • Posts: 2,401
  • Joined: 07-November 05
  • Gender:Male
  • Location:Falcon, MO

Posted 29 August 2007 - 09:43 PM

Look at the last two posts before yours.

#828 User is offline   jpm 

  • a Real GUI/debug lover
  • Icon
  • Group: Developers(Dev)
  • Posts: 8,585
  • Joined: 03-December 03
  • Location:Hauts de Seine, France

Posted 30 August 2007 - 07:03 AM

I am on the way to help you by delivering an installable package on release or beta installation.
Stay tune. ;)

#829 User is offline   sigmason 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 30
  • Joined: 28-August 07
  • Location:Dark side of moon.

Posted 30 August 2007 - 04:58 PM

I confirmed today that in fact the package I installed AutoIt3 from had in fact changed versions between the time I installed and created the script on one PC and tested it on the Windows 98 PC.

Thanks for all your quick responses, I ended up downgrading to the last package for AutoIt3, since my code was written and working in that..I have little need to address the unrelated issues of the update. That and I'm lazy :evil:

#830 User is offline   Fabian 

  • Member
  • Pip
  • Group: Full Members
  • Posts: 14
  • Joined: 30-August 07
  • Location:Germany

Posted 30 August 2007 - 05:25 PM

Er... it does not work with the newet au3 version 3.2.6.0 :mellow:

  • (49 Pages)
  • +
  • « First
  • 40
  • 41
  • 42
  • 43
  • 44
  • Last »
  • You cannot start a new topic
  • This topic is locked

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users